Skip to content

Commit

Permalink
Remove workaround for _typeof in runtime build script (#14157)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jan 18, 2022
1 parent e6cc107 commit 6ec66d8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
1 change: 0 additions & 1 deletion packages/babel-plugin-transform-runtime/package.json
Expand Up @@ -34,7 +34,6 @@
"@babel/core": "workspace:^",
"@babel/helper-plugin-test-runner": "workspace:^",
"@babel/helpers": "workspace:^",
"@babel/plugin-transform-typeof-symbol": "workspace:^",
"@babel/preset-env": "workspace:^",
"@babel/runtime": "workspace:^",
"@babel/runtime-corejs3": "workspace:^",
Expand Down
13 changes: 1 addition & 12 deletions packages/babel-plugin-transform-runtime/scripts/build-dist.js
Expand Up @@ -237,23 +237,12 @@ function buildHelper(

return babel.transformFromAst(tree, null, {
filename: helperFilename,
presets: [
[
"@babel/preset-env",
{ modules: false, exclude: ["@babel/plugin-transform-typeof-symbol"] },
],
],
presets: [["@babel/preset-env", { modules: false }]],
plugins: [
[transformRuntime, { corejs, version: runtimeVersion }],
buildRuntimeRewritePlugin(runtimeName, helperName),
esm ? null : addDefaultCJSExport,
].filter(Boolean),
overrides: [
{
exclude: /typeof/,
plugins: ["@babel/plugin-transform-typeof-symbol"],
},
],
}).code;
}

Expand Down
1 change: 0 additions & 1 deletion yarn.lock
Expand Up @@ -2992,7 +2992,6 @@ __metadata:
"@babel/helper-plugin-test-runner": "workspace:^"
"@babel/helper-plugin-utils": "workspace:^"
"@babel/helpers": "workspace:^"
"@babel/plugin-transform-typeof-symbol": "workspace:^"
"@babel/preset-env": "workspace:^"
"@babel/runtime": "workspace:^"
"@babel/runtime-corejs3": "workspace:^"
Expand Down

0 comments on commit 6ec66d8

Please sign in to comment.