You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the issue is related to 1.x -> 2.0 upgrade, read the Migration Guide first.
Describe the bug
I'm getting a lot of logs in the production build when using @vitejs/plugin-legacy of the form:
[BABEL] Note: The code generator has deoptimised the styling of undefined as it exceeds the max of 500KB.
This originates from babel's generatorOpts.compact option that is set to 'auto' by default. As you probably always want a compact output in the production build I would suggest to set this to true regardless of the size of the code.
This is not really a big issue, but I also cannot manually override this setting or suppress the logs otherwise.
Reproduction
Just analyze a codebase with sufficiently large dependencies.
System Info
vite version: 2.0.0-beta60
Operating System: MacOS
Node version: 14.15
Package manager (npm/yarn/pnpm) and version: yarn
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm getting a lot of logs in the production build when using
@vitejs/plugin-legacy
of the form:This originates from babel's
generatorOpts.compact
option that is set to'auto'
by default. As you probably always want a compact output in the production build I would suggest to set this totrue
regardless of the size of the code.This is not really a big issue, but I also cannot manually override this setting or suppress the logs otherwise.
Reproduction
Just analyze a codebase with sufficiently large dependencies.
System Info
vite
version: 2.0.0-beta60The text was updated successfully, but these errors were encountered: