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

fix(lib): Include hash in assets name #16

Merged
merged 1 commit into from
Sep 16, 2023

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Sep 16, 2023

When using css inlining and multiple output formats (e.g. esm and cjs) the assets order is not deterministic. This causes issues if the assets are named the same, e.g. if you have multiple "index" entry points the assets will be called index1, index2... So when not using hashes the last output format might override the assets with a changed order, causing the previous output formats to be invalid.

When using css inlining and multiple output formats (e.g. esm and cjs) the assets order is not deterministic.
This causes issues if the assets are named the same, e.g. if you have multiple "index" entry points the assets will be called index1, index2...
So when not using hashes the last output format might override the assets with a changed order, causing the previous output formats to be invalid.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux added bug Something isn't working 3. to review Ready to review labels Sep 16, 2023
@susnux susnux merged commit a816607 into main Sep 16, 2023
7 checks passed
@susnux susnux deleted the fix/library-splitted-css-naming branch September 16, 2023 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Ready to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant