Skip to content

Commit 35e8fba

Browse files
author
Burhanuddin Udaipurwala
committed
fix: import
1 parent 0057890 commit 35e8fba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

addons/swc-minimize.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ export const packageJson = (json) => {
77

88
export const config = (content) => `${content}
99
10+
var TerserPlugin = require("terser-webpack-plugin");
11+
1012
module.exports.optimization = {
1113
minimizer: [new TerserPlugin({
12-
minify: require("terser-webpack-plugin").swcMinify,
14+
minify: TerserPlugin.swcMinify,
1315
})],
1416
};
1517
`;

0 commit comments

Comments
 (0)