|
||||
---|---|---|---|---|
.. | ||||
lib | 11e3a9652a | 7 年 前 | ||
.npmignore | 11e3a9652a | 7 年 前 | ||
README.md | 11e3a9652a | 7 年 前 | ||
package.json | 11e3a9652a | 7 年 前 |
Allow parsing of import()
.
$ npm install babel-plugin-syntax-dynamic-import
.babelrc
(Recommended).babelrc
{
"plugins": ["syntax-dynamic-import"]
}
$ babel --plugins syntax-dynamic-import script.js
require("babel-core").transform("code", {
plugins: ["syntax-dynamic-import"]
});