Skip to content

Commit 165cbfc

Browse files
committed
deprecate terser
1 parent c8736b8 commit 165cbfc

File tree

3 files changed

+14
-17
lines changed

3 files changed

+14
-17
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"sass": "1.64.1",
3636
"sass-loader": "13.3.2",
3737
"style-loader": "3.3.3",
38-
"terser-webpack-plugin": "5.3.9",
3938
"ts-node": "10.9.1",
4039
"typescript": "5.1.6",
4140
"vue": "3.3.4",

pnpm-lock.yaml

Lines changed: 5 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webpack.config.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CleanWebpackPlugin } from 'clean-webpack-plugin';
44
import { VueLoaderPlugin } from 'vue-loader';
55
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
66
import { fileURLToPath } from 'url';
7-
import TerserPlugin from 'terser-webpack-plugin';
7+
import { EsbuildPlugin } from 'esbuild-loader';
88

99
const __filename = fileURLToPath(import.meta.url);
1010
const __dirname = path.dirname(__filename);
@@ -42,10 +42,10 @@ export default function (
4242
plugins: [
4343
new CleanWebpackPlugin(),
4444
new VueLoaderPlugin(),
45-
// http://127.0.0.1:8888
4645
isProd
4746
? () => {}
4847
: new BundleAnalyzerPlugin({
48+
// http://127.0.0.1:8888
4949
openAnalyzer: false,
5050
logLevel: 'silent',
5151
}),
@@ -79,12 +79,13 @@ export default function (
7979
optimization: {
8080
splitChunks: false,
8181
minimize: isProd,
82-
minimizer: [
83-
new TerserPlugin({
84-
minify: TerserPlugin.esbuildMinify,
85-
terserOptions: {},
86-
}),
87-
],
82+
minimizer: [new EsbuildPlugin()],
83+
// minimizer: [
84+
// new TerserPlugin({
85+
// minify: TerserPlugin.esbuildMinify,
86+
// terserOptions: {},
87+
// }),
88+
// ],
8889
},
8990

9091
devtool: isProd ? false : 'source-map',

0 commit comments

Comments
 (0)