Skip to content

Commit

Permalink
Add babel class properties plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Mar 24, 2021
1 parent 0f8c544 commit 68b7a6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"license": "BSD-3-Clause",
"dependencies": {
"@babel/core": "^7.13.10",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-transform-runtime": "^7.13.10",
"@babel/preset-env": "^7.13.12",
"@babel/runtime": "^7.13.10",
Expand Down
5 changes: 4 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,8 @@ export const babelConfig = (opts = {}) => ({
// corejs: 3,
} ]
],
plugins: [ '@babel/plugin-transform-runtime' ],
plugins: [
'@babel/plugin-transform-runtime',
['@babel/plugin-proposal-class-properties', { loose: true }],
],
})

0 comments on commit 68b7a6d

Please sign in to comment.