Skip to content

Commit 6ec66d8

Browse files
Remove workaround for _typeof in runtime build script (#14157)
1 parent e6cc107 commit 6ec66d8

3 files changed

Lines changed: 1 addition & 14 deletions

File tree

packages/babel-plugin-transform-runtime/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"@babel/core": "workspace:^",
3535
"@babel/helper-plugin-test-runner": "workspace:^",
3636
"@babel/helpers": "workspace:^",
37-
"@babel/plugin-transform-typeof-symbol": "workspace:^",
3837
"@babel/preset-env": "workspace:^",
3938
"@babel/runtime": "workspace:^",
4039
"@babel/runtime-corejs3": "workspace:^",

packages/babel-plugin-transform-runtime/scripts/build-dist.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -237,23 +237,12 @@ function buildHelper(
237237

238238
return babel.transformFromAst(tree, null, {
239239
filename: helperFilename,
240-
presets: [
241-
[
242-
"@babel/preset-env",
243-
{ modules: false, exclude: ["@babel/plugin-transform-typeof-symbol"] },
244-
],
245-
],
240+
presets: [["@babel/preset-env", { modules: false }]],
246241
plugins: [
247242
[transformRuntime, { corejs, version: runtimeVersion }],
248243
buildRuntimeRewritePlugin(runtimeName, helperName),
249244
esm ? null : addDefaultCJSExport,
250245
].filter(Boolean),
251-
overrides: [
252-
{
253-
exclude: /typeof/,
254-
plugins: ["@babel/plugin-transform-typeof-symbol"],
255-
},
256-
],
257246
}).code;
258247
}
259248

yarn.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2992,7 +2992,6 @@ __metadata:
29922992
"@babel/helper-plugin-test-runner": "workspace:^"
29932993
"@babel/helper-plugin-utils": "workspace:^"
29942994
"@babel/helpers": "workspace:^"
2995-
"@babel/plugin-transform-typeof-symbol": "workspace:^"
29962995
"@babel/preset-env": "workspace:^"
29972996
"@babel/runtime": "workspace:^"
29982997
"@babel/runtime-corejs3": "workspace:^"

0 commit comments

Comments
 (0)