diff --git a/packages/babel-helper-create-class-features-plugin/package.json b/packages/babel-helper-create-class-features-plugin/package.json index a217735112f6..a5a0f3e36148 100644 --- a/packages/babel-helper-create-class-features-plugin/package.json +++ b/packages/babel-helper-create-class-features-plugin/package.json @@ -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": { diff --git a/packages/babel-helper-create-class-features-plugin/test/fixtures/missing-class-static-blocks-plugin/basic/options.json b/packages/babel-helper-create-class-features-plugin/test/fixtures/missing-class-static-blocks-plugin/basic/options.json index 04ef00ef4b69..3f0630235cee 100644 --- a/packages/babel-helper-create-class-features-plugin/test/fixtures/missing-class-static-blocks-plugin/basic/options.json +++ b/packages/babel-helper-create-class-features-plugin/test/fixtures/missing-class-static-blocks-plugin/basic/options.json @@ -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." } diff --git a/yarn.lock b/yarn.lock index 294fb1862ccc..2b609d71d0d3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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