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

Added ./dist/translations directory to exports to allow dynamic importing of directory contents #2210

Merged
merged 4 commits into from
Oct 10, 2024

Conversation

Zozman
Copy link
Contributor

@Zozman Zozman commented Oct 6, 2024

As mentioned in #2208, currently you cannot dynamically import the contents of the ./dist/translations/ directory as bundlers such as Webpack refuse to import the entire directory's contents and will only allow individual explicit files to be imported because of the ./dist/translations/* export rule. Therefore this PR adds an additional export rule to allow the entire directory to be imported to resolve this issue.

Feel free to let me know if this is TOTALLY not the correct way to resolve this.

Proposal to fix #2208

Copy link

vercel bot commented Oct 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
shoelace ✅ Ready (Inspect) Visit Preview Oct 10, 2024 5:19pm

@claviska
Copy link
Member

claviska commented Oct 7, 2024

This seems fine to me. @KonnorRogers feel free to merge unless you have concerns.

@KonnorRogers
Copy link
Collaborator

Just to get ahead of this, I added the other directories to the exportmaps. Thank you for the PR!

@KonnorRogers KonnorRogers merged commit 53aae15 into shoelace-style:next Oct 10, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants