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

Avoid referencing allDialects outside of function calls #517

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

nene
Copy link
Collaborator

@nene nene commented Nov 8, 2022

That will break tree-shaking as allDialects object gets used regardless of whether any function gets executed, so Webpack ends up bundling all the languages.

Fixes #452

That will break tree-shaking as allDialects object gets used
regardless of whether any function gets executed, so Webpack
ends up bundling all the languages.
@nene
Copy link
Collaborator Author

nene commented Nov 8, 2022

Merging this in to do another beta release that users could try out.

@nene nene merged commit c85c935 into master Nov 8, 2022
@nene nene deleted the fix-tree-shaking branch November 8, 2022 15:05
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.

Explicitly include a single dialect
1 participant