We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88f32cc commit ed384cfCopy full SHA for ed384cf
packages/plugin-legacy/index.js
@@ -97,7 +97,7 @@ function viteLegacyPlugin(options = {}) {
97
apply: 'build',
98
99
configResolved(config) {
100
- if (!config.build.ssr && config.build.minify === 'esbuild') {
+ if (!config.build.ssr && genLegacy && config.build.minify === 'esbuild') {
101
throw new Error(
102
`Can't use esbuild as the minifier when targeting legacy browsers ` +
103
`because esbuild minification is not legacy safe.`
0 commit comments