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

Add default export for JS/CSS dist files #4542

Merged
merged 2 commits into from
Jul 21, 2024

Conversation

jonatanschroeder
Copy link
Contributor

As a followup to #4538: exports for CSS/JS files in dist have been set for import and require, but this does not include cases like bundling using esbuild, where the context is neither import nor require (it is browser/default). This causes an error when trying to import these files in the CSS or JS asset to be compiled/bundled.

This change ensures these files can be exported regardless of context.

@jonatanschroeder jonatanschroeder marked this pull request as draft July 17, 2024 18:38
@jonatanschroeder jonatanschroeder marked this pull request as ready for review July 17, 2024 18:40
@olifolkerd olifolkerd merged commit 932410e into olifolkerd:master Jul 21, 2024
3 checks passed
@jonatanschroeder jonatanschroeder deleted the default-export branch July 21, 2024 12:58
@olifolkerd
Copy link
Owner

This has been included in the 6.2.5 patch release today. thanks for the PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants