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
When use @vitejs/plugin-legacy and build project will report a error like title
Reproduction
init a project
npm create svelte@latest myapp
select SvelteKit demo app and use js with jsdoc without eslint prettier
cd myapp
npm i
npm add -D terser @vitejs/plugin-legacy
In more details: SvelteKit doesn't really support Vite plugin-legacy, in so many ways...
The starting point it doesn't fit along, is that plugin-legacy duplicates the rollup outputs, one for legacy and one for modern, but SvelteKit assumes the output is only one.
In more details: SvelteKit doesn't really support Vite plugin-legacy, in so many ways...
The starting point it doesn't fit along, is that plugin-legacy duplicates the rollup outputs, one for legacy and one for modern, but SvelteKit assumes the output is only one.
Thanks for this tip on where the issue lies. For my case I was able to resolve then by skipping those legacy chunks because what I really needed support for was the modern polyfills
eltigerchino
changed the title
[vite-plugin-sveltekit-compile] Cannot read properties of undefined (reading 'filter')
@vitejs/plugin-legacy compatibility
Oct 29, 2024
Describe the bug
When use @vitejs/plugin-legacy and build project will report a error like title
Reproduction
init a project
and this is my vite.config.js
then run
npm run build
Logs
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: