Pass options to ES6 module imports
There is no way to do this with a single import statement, it does not allow for invocations. So you wouldn’t call it directly, but you can basically do just the same what commonjs does with default exports: // module.js export default function(options) { return { // actual module } } // main.js import m … Read more