TransFlow/node_modules/babel-plugin-syntax-dynamic...
chengdandan 85790148ae 跳转子页面 2022-12-16 14:55:34 +08:00
..
lib 跳转子页面 2022-12-16 14:55:34 +08:00
.npmignore 跳转子页面 2022-12-16 14:55:34 +08:00
README.md 跳转子页面 2022-12-16 14:55:34 +08:00
package.json 跳转子页面 2022-12-16 14:55:34 +08:00

README.md

babel-plugin-syntax-dynamic-import

Allow parsing of import().

Installation

$ npm install babel-plugin-syntax-dynamic-import

Usage

.babelrc

{
  "plugins": ["syntax-dynamic-import"]
}

Via CLI

$ babel --plugins syntax-dynamic-import script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["syntax-dynamic-import"]
});