Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit 673c122

Browse files
Josh Justicebahmutov
authored andcommitted
Update readme for babel 7 (#30)
1 parent 3096b85 commit 673c122

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
@@ -64,8 +64,8 @@ const webpackOptions = {
6464
test: /\.(js|jsx|mjs)$/,
6565
loader: 'babel-loader',
6666
options: {
67-
presets: ['env', 'react'],
68-
plugins: ['transform-class-properties'],
67+
presets: ['@babel/preset-env', '@babel/preset-react'],
68+
plugins: ['@babel/plugin-proposal-class-properties'],
6969
},
7070
}
7171
]
@@ -88,8 +88,8 @@ Install dev dependencies
8888

8989
```shell
9090
npm i -D @cypress/webpack-preprocessor \
91-
babel-loader babel-preset-es2015 babel-preset-react \
92-
babel-plugin-transform-class-properties
91+
babel-loader @babel/preset-env @babel/preset-react \
92+
@babel/plugin-proposal-class-properties
9393
```
9494

9595
And write a component using class properties

0 commit comments

Comments
 (0)