Skip to content

Commit 68b7a6d

Browse files
committed
Add babel class properties plugin
1 parent 0f8c544 commit 68b7a6d

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"license": "BSD-3-Clause",
2323
"dependencies": {
2424
"@babel/core": "^7.13.10",
25+
"@babel/plugin-proposal-class-properties": "^7.13.0",
2526
"@babel/plugin-transform-runtime": "^7.13.10",
2627
"@babel/preset-env": "^7.13.12",
2728
"@babel/runtime": "^7.13.10",

src/utils.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,8 @@ export const babelConfig = (opts = {}) => ({
8686
// corejs: 3,
8787
} ]
8888
],
89-
plugins: [ '@babel/plugin-transform-runtime' ],
89+
plugins: [
90+
'@babel/plugin-transform-runtime',
91+
['@babel/plugin-proposal-class-properties', { loose: true }],
92+
],
9093
})

0 commit comments

Comments
 (0)