File tree 1 file changed +4
-4
lines changed
packages/plugin-legacy/src
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -331,6 +331,10 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
331
331
}
332
332
config = _config
333
333
334
+ modernTargets = options . modernTargets || modernTargetsBabel
335
+ isDebug &&
336
+ console . log ( `[@vitejs/plugin-legacy] modernTargets:` , modernTargets )
337
+
334
338
if ( ! genLegacy || config . build . ssr ) {
335
339
return
336
340
}
@@ -341,10 +345,6 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
341
345
'last 2 versions and not dead, > 0.3%, Firefox ESR'
342
346
isDebug && console . log ( `[@vitejs/plugin-legacy] targets:` , targets )
343
347
344
- modernTargets = options . modernTargets || modernTargetsBabel
345
- isDebug &&
346
- console . log ( `[@vitejs/plugin-legacy] modernTargets:` , modernTargets )
347
-
348
348
const getLegacyOutputFileName = (
349
349
fileNames :
350
350
| string
You can’t perform that action at this time.
0 commit comments