GT2/GT2-iOS/node_modules/babel-plugin-syntax-dynamic...
Ren Ren Juan 30eef7d036 correct tree err 2018-02-12 17:26:06 +00:00
..
lib correct tree err 2018-02-12 17:26:06 +00:00
.npmignore correct tree err 2018-02-12 17:26:06 +00:00
README.md correct tree err 2018-02-12 17:26:06 +00:00
package.json correct tree err 2018-02-12 17:26:06 +00: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"]
});