|
|
|
|
|
by azangru
1106 days ago
|
|
He isn't talking about named exports; he is talking about immediate invocation of the imported module. require("module-name")(someOptions)
is instead represented as import { someModule as someModuleFactory } from 'module-name';
const someInitializedModule = someModuleFactory(someOptions);
|
|