[import()] Initial support for dynamic-import (#4699)
* [import()] Initial support for function-like import * [import()] Renaming import-functions to dynamic-import * [stage-2] Fixing lint error * add to package.json
This commit is contained in:
committed by
Henry Zhu
parent
b8eeddf960
commit
391e5bd813
7
packages/babel-plugin-syntax-dynamic-import/src/index.js
Normal file
7
packages/babel-plugin-syntax-dynamic-import/src/index.js
Normal file
@@ -0,0 +1,7 @@
|
||||
export default function () {
|
||||
return {
|
||||
manipulateOptions(opts, parserOpts) {
|
||||
parserOpts.plugins.push("dynamicImport");
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user