Skip to content
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

refactor: nest importedCss and importedAssets under viteMetadata #4

Merged

Conversation

ElMassimo
Copy link

@ElMassimo ElMassimo commented Feb 22, 2022

Nested importedCss and importedAssets using viteMetadata as suggested here.

Although it's more verbose, it makes it easier to avoid collisions with rollup or other bundlers like WMR.

Notes ✏️

Added a new vite:build-metadata plugin to initialize this new structure, since the nesting would require both the css and asset plugins (as well as any extensions that are added in the future) to check whether viteMetadata was already set, which is inconvenient and error-prone.

@ElMassimo ElMassimo changed the title refactor: nest importedCss and importedAssts under viteMetadata refactor: nest importedCss and importedAssets under viteMetadata Feb 22, 2022
Although it's more verbose, it makes it easier to avoid collisions with
rollup or other bundlers like WMR.
@aleclarson aleclarson merged commit c23c5de into aleclarson:feat/chunk-assets Feb 22, 2022
@ElMassimo ElMassimo deleted the refactor/vite-metadata branch February 22, 2022 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants