8000 Update more Babel references to v7. · lodash/babel-plugin-lodash@ba2f74b · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit ba2f74b

Browse files
committed
Update more Babel references to v7.
1 parent 856e126 commit ba2f74b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
9393
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)
9696
preset, transforms ES2015 `import` statements to CommonJS. Omit it from your
9797
preset to preserve ES2015 style imports.
9898

0 commit comments

Comments
 (0)
0