fix(vite): do not set default target (#18454)

This commit is contained in:
Katerina Skroumpelou 2023-08-03 15:14:33 +03:00 committed by GitHub
parent ccad52e93c
commit bf5111c342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,7 @@ export function getViteBuildOptions(
emptyOutDir: options.emptyOutDir,
reportCompressedSize: true,
cssCodeSplit: options.cssCodeSplit,
target: options.target ?? 'esnext',
target: options.target,
commonjsOptions: {
transformMixedEsModules: true,
},