Skip to content

Commit

Permalink
Revert usage of babel runtine for legacy bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed May 6, 2024
1 parent 7310c9c commit 2d318a6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions build-scripts/webpack.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const WebpackBar = require("webpackbar");
const {
TransformAsyncModulesPlugin,
} = require("transform-async-modules-webpack-plugin");
const { dependencies } = require("../package.json");
const paths = require("./paths.cjs");
const bundle = require("./bundle.cjs");

Expand Down Expand Up @@ -157,10 +156,7 @@ const createWebpackConfig = ({
transform: (stats) => JSON.stringify(filterStats(stats)),
}),
!latestBuild &&
new TransformAsyncModulesPlugin({
browserslistEnv: "legacy",
runtime: { version: dependencies["@babel/runtime"] },
}),
new TransformAsyncModulesPlugin({ browserslistEnv: "legacy" }),
].filter(Boolean),
resolve: {
extensions: [".ts", ".js", ".json"],
Expand Down

0 comments on commit 2d318a6

Please sign in to comment.