There was an error while loading. Please reload this page.
var mod = require('mod'); =>
var mod = require('mod');
mod
import mod from 'mod'
import { a, b } from "mod"
mod.a
mod.b
var mod= require('mod').a; => import { a } from "mod";
var mod= require('mod').a;
import { a } from "mod"
const { a } = require('mod'); => import { a } from "mod";
const { a } = require('mod');
if (__DEV__) { var warning = require('warning'); }
function f() { var warning = require('warning'); } => async function f() { var warning = await import('warning'); }
function f() { var warning = require('warning'); }
async function f() { var warning = await import('warning'); }
module.exports = EventPlugin; => export default EventPlugin;
module.exports = EventPlugin;
export default EventPlugin;
require("mod")
require("mod").default
module.exports.blah = 0 => export const blah = 0
module.exports.blah = 0
export const blah = 0
var myModule = module.exports = exports = {}; myModule.a = 0;
module.exports = require('mod'); => export * from 'mod';
module.exports = require('mod');
export * from 'mod';
module.exports = {foo: function () { } ... } => export function foo() {} ?
module.exports = {foo: function () { } ... }
export function foo() {}
var mod = require('mod');=>modis callable thenimport mod from 'mod'modis not callable theimport { a, b } from "mod"and replacemod.aandmod.bvar mod= require('mod').a;=>import { a } from "mod";const { a } = require('mod');=>import { a } from "mod";if (__DEV__) { var warning = require('warning'); }function f() { var warning = require('warning'); }=>async function f() { var warning = await import('warning'); }module.exports = EventPlugin;=>export default EventPlugin;require("mod")torequire("mod").default?module.exports.blah = 0=>export const blah = 0module.exports = require('mod');=>export * from 'mod';module.exports = {foo: function () { } ... }=>export function foo() {}?