Legacy plugin produces broken build with renderModernChunks=false & polyfills=false #14324
Closed
7 tasks done
Labels
contribution welcome
p3-minor-bug
An edge case that only affects very specific usage (priority)
plugin: legacy
Describe the bug
When using the legacy plugin with these two options, the compiled output is broken because SystemJS is not injected.
Example - note how dist/index.html refers to
System
, but SystemJS is not imported.I'm happy to make a PR to fix this, we are currently bypassing this bug by adding this snippet to packages/plugin-legacy/src/index.ts:594:
Reproduction
https://github.com/k-yle/vite-legacy-broken-build
Steps to reproduce
npm i
npm run build
index.html
- note how SystemJS is missing.System Info
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: