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
Since version 1.4.0 the @vitejs/plugin-legacy automatically tries to restore the previous behavior of polyfilling dynamic import.
However this currently ignores the value of renderLegacyChunks. When it is set to false only additional polyfills for modern browsers are applied. In this case the plugin should not overwrite the value set via build.polyfillDynamicImport = false and therefore only bundle dynamic import polyfills when the user explicitly set build.polyfillDynamicImport = true.
Describe the bug
Since version 1.4.0 the @vitejs/plugin-legacy automatically tries to restore the previous behavior of polyfilling dynamic import.
However this currently ignores the value of renderLegacyChunks. When it is set to false only additional polyfills for modern browsers are applied. In this case the plugin should not overwrite the value set via
build.polyfillDynamicImport = false
and therefore only bundle dynamic import polyfills when the user explicitly setbuild.polyfillDynamicImport = true
.Cause:
vite/packages/plugin-legacy/index.js
Line 79 in 32c596c
Reproduction
Logs
As you can see in the logs below
polyfillDynamicImport
is always set totrue
.The text was updated successfully, but these errors were encountered: