We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5bfc5e commit 9ee7234Copy full SHA for 9ee7234
packages/playground/legacy/vite.config.js
@@ -10,9 +10,6 @@ module.exports = {
10
],
11
12
build: {
13
- // make tests faster
14
- minify: false,
15
-
16
rollupOptions: {
17
output: {
18
chunkFileNames(chunkInfo) {
packages/plugin-legacy/index.js
@@ -96,6 +96,14 @@ function viteLegacyPlugin(options = {}) {
96
name: 'vite:legacy-generate-polyfill-chunk',
97
apply: 'build',
98
99
+ config() {
100
+ return {
101
+ build: {
102
+ minify: 'terser'
103
+ }
104
105
+ },
106
+
107
configResolved(config) {
108
if (!config.build.ssr && genLegacy && config.build.minify === 'esbuild') {
109
throw new Error(
0 commit comments