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 #2209

Closed

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.

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 6, 2024 7:54am

@Zozman
Copy link
Contributor Author

Zozman commented Oct 6, 2024

Replaced this with #2210 to fix my code editor being dumb and adding extra changed lines.

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.

1 participant