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 b50f195
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
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."
}
Expand Up @@ -28,6 +28,7 @@
"@babel/core": "workspace:*",
"@babel/helper-plugin-test-runner": "workspace:*",
"@babel/plugin-external-helpers": "workspace:*",
"@babel/plugin-syntax-class-static-block": "^7.14.5",
"@babel/plugin-syntax-object-rest-spread": "^7.8.3"
},
"homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-modules-commonjs",
Expand Down
@@ -1,3 +1,6 @@
{
"plugins": ["transform-modules-commonjs", "syntax-class-static-block"]
"plugins": [
"transform-modules-commonjs",
"@babel/plugin-syntax-class-static-block"
]
}
2 changes: 2 additions & 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 Expand Up @@ -2438,6 +2439,7 @@ __metadata:
"@babel/helper-plugin-utils": "workspace:^7.14.5"
"@babel/helper-simple-access": "workspace:^7.14.8"
"@babel/plugin-external-helpers": "workspace:*"
"@babel/plugin-syntax-class-static-block": ^7.14.5
"@babel/plugin-syntax-object-rest-spread": ^7.8.3
babel-plugin-dynamic-import-node: ^2.3.3
peerDependencies:
Expand Down

0 comments on commit b50f195

Please sign in to comment.