This repository was archived by the owner on Sep 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ for even smaller cherry-picked builds!
99
1010``` shell
1111$ npm i --save lodash
12- $ npm i --save-dev babel-plugin-lodash babel- cli babel- preset-env
12+ $ npm i --save-dev babel-plugin-lodash @ babel/ cli @ babel/ preset-env
1313```
1414
1515## Example
@@ -60,7 +60,7 @@ The `options.id` can be an array of ids.
6060
6161###### Babel CLI
6262``` sh
63- $ babel --plugins lodash --presets es2015 script.js
63+ $ babel --plugins lodash --presets @babel/ es2015 script.js
6464```
6565
6666###### Babel API
@@ -91,8 +91,8 @@ require('babel-core').transform('code', {
9191> Can this plugin produce ES2015 imports rather than CommonJS imports?
9292
9393This plugin produces ES2015 imports by default. The
94- [ transform-es2015- modules-commonjs] ( https://www.npmjs.com/package/babel- plugin-transform-es2015 -modules-commonjs )
95- plugin, which is included in the Babel [ es2015] ( http ://babeljs.io/docs/plugins /preset-es2015/ )
94+ [ ` @babel/plugin- transform-modules-commonjs` ] ( https://www.npmjs.com/package/@ babel/ plugin-transform-modules-commonjs )
95+ plugin, which is included in the [ ` @babel/preset- es2015` ] ( https ://www.npmjs.com/package/@babel /preset-es2015)
9696preset, transforms ES2015 ` import ` statements to CommonJS. Omit it from your
9797preset to preserve ES2015 style imports.
9898
You can’t perform that action at this time.
0 commit comments