feat(plugin-legacy): add option to output only legacy builds#9458
feat(plugin-legacy): add option to output only legacy builds#9458amirkian007 wants to merge 4 commits intovitejs:mainfrom
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).