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!
9
9
10
10
``` shell
11
11
$ 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
13
13
```
14
14
15
15
## Example
@@ -60,7 +60,7 @@ The `options.id` can be an array of ids.
60
60
61
61
###### Babel CLI
62
62
``` sh
63
- $ babel --plugins lodash --presets es2015 script.js
63
+ $ babel --plugins lodash --presets @babel/ es2015 script.js
64
64
```
65
65
66
66
###### Babel API
@@ -91,8 +91,8 @@ require('babel-core').transform('code', {
91
91
> Can this plugin produce ES2015 imports rather than CommonJS imports?
92
92
93
93
This 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)
96
96
preset, transforms ES2015 ` import ` statements to CommonJS. Omit it from your
97
97
preset to preserve ES2015 style imports.
98
98
You can’t perform that action at this time.
0 commit comments