Skip to content

Commit

Permalink
use npm syntax-class-static-block
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Aug 31, 2021
1 parent f017dd2 commit 20d4cb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Expand Up @@ -31,6 +31,7 @@
"devDependencies": {
"@babel/core": "workspace:*",
"@babel/helper-plugin-test-runner": "workspace:*",
"@babel/plugin-syntax-class-static-block": "^7.14.5",
"@babel/preset-env": "workspace:*"
},
"engines": {
Expand Down
@@ -1,4 +1,7 @@
{
"plugins": ["proposal-class-properties", "syntax-class-static-block"],
"plugins": [
"proposal-class-properties",
"@babel/plugin-syntax-class-static-block"
],
"throws": "Static class blocks are not enabled. Please add `@babel/plugin-proposal-class-static-block` to your configuration."
}
1 change: 1 addition & 0 deletions yarn.lock
Expand Up @@ -492,6 +492,7 @@ __metadata:
"@babel/helper-plugin-test-runner": "workspace:*"
"@babel/helper-replace-supers": "workspace:^7.15.0"
"@babel/helper-split-export-declaration": "workspace:^7.14.5"
"@babel/plugin-syntax-class-static-block": ^7.14.5
"@babel/preset-env": "workspace:*"
peerDependencies:
"@babel/core": ^7.0.0
Expand Down

0 comments on commit 20d4cb1

Please sign in to comment.