minify: 'terser'
gives [vite:terser] import.meta is only valid inside modules.
error when building
#19028
Closed
7 tasks done
Labels
Describe the bug
After updating to Vite 6.0.4 (still happening in 6.0.5) , trying to run a build gives the following error if
minify: 'terser',
is defined inside build in vite.config.ts. Removing or commenting this line performs the build process without issues.Reproduction
bunx --bun vite build
Steps to reproduce
minify: 'terser'
in vite.configSystem Info
Used Package Manager
bun
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: