Skip to content

Commit

Permalink
fix(schema): remove obsolete terser option from webpack config (#21407)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jun 7, 2023
1 parent 5872015 commit 6d62b65
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion packages/schema/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
14 changes: 0 additions & 14 deletions packages/schema/src/config/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>}
*/
terser: {},

/**
* Hard-replaces `typeof process`, `typeof window` and `typeof document` to tree-shake bundle.
*/
Expand Down

0 comments on commit 6d62b65

Please sign in to comment.