-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(plugin-legacy): add option to output only legacy builds #9458
Conversation
Thanks for the PR!
Would you expand on this? BTW lint is failing because of a different reason. Merging main branch will fix this. |
reproduction |
It seems this was not working because
Maybe we could completely skip modern chunk generation by removing modern chunk from |
after using import.meta error |
@sapphi-red We could manipulate output options using |
We are appending the legacy output option here. I wonder if it is possible to replace vite/packages/plugin-legacy/src/index.ts Lines 287 to 305 in ef52db1
|
@sapphi-red I tested it and it is not possible to replace rollupOptions.output(the one that is for modern chunks => [name].[hash].js) from there... |
Closing as #10139 implements in a more performant way. |
Description
fix #9050
Additional context
i tried to remove the modern chunks before the transformIndexHtml happens but ended up breaking the generated html file .
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).