|
|
||||
|---|---|---|---|---|
| .. | ||||
| 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"]
});