diff --git a/packages/schema/build.config.ts b/packages/schema/build.config.ts index cd3b087cbb..dafbb0e911 100644 --- a/packages/schema/build.config.ts +++ b/packages/schema/build.config.ts @@ -35,7 +35,6 @@ export default defineBuildConfig({ '@vitejs/plugin-vue', '@vitejs/plugin-vue-jsx', 'mini-css-extract-plugin', - 'terser-webpack-plugin', 'css-minimizer-webpack-plugin', 'webpack-dev-middleware', 'h3', diff --git a/packages/schema/src/config/webpack.ts b/packages/schema/src/config/webpack.ts index ef3b0bb43e..eacfaf322a 100644 --- a/packages/schema/src/config/webpack.ts +++ b/packages/schema/src/config/webpack.ts @@ -212,20 +212,6 @@ export default defineUntypedSchema({ */ plugins: [], - /** - * Terser plugin options. - * - * Set to false to disable this plugin, or pass an object of options. - * - * @see [terser-webpack-plugin documentation](https://github.com/webpack-contrib/terser-webpack-plugin). - * - * @note Enabling sourceMap will leave `//# sourceMappingURL` linking comment at - * the end of each output file if webpack `config.devtool` is set to `source-map`. - * - * @type {false | typeof import('terser-webpack-plugin').BasePluginOptions & typeof import('terser-webpack-plugin').DefinedDefaultMinimizerAndOptions} - */ - terser: {}, - /** * Hard-replaces `typeof process`, `typeof window` and `typeof document` to tree-shake bundle. */