1.0.0 • Published 6 years ago
legacy-dynamic-import-plugin v1.0.0
legacy-dynamic-import-plugin
make the dynamic import of the commonjs in webpack@4+ works like previous versions.
Usage
// in webpack.conf.js
new LegacyDanamicImportPlugin([
'/somepath1/foo',
]);
// in somepath1/foo.js
module.exports = () => {
}
// where you dynamic import foo.js
import('./somepath1/foo')
.then(exports => {
// do your stuff
})
1.0.0
6 years ago