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

Impove webpack bundler #67

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

biharygergo
Copy link
Collaborator

This change makes sure the bundle/script that is generated by webpack exposes UMAP properly on the global object. Previously, the bundler created multiple exports that were unusual. The need for the library property is also documented in the webpack documentation: https://webpack.js.org/configuration/output/#librarytarget-umd

I've also added the globalObject configuration and followed the recommendation here: https://webpack.js.org/configuration/output/#outputglobalobject

With these changes, the created script looks much more like a regular bundled script and works well in our environment.

@cannoneyed cannoneyed merged commit 9201a03 into PAIR-code:main Jun 3, 2024
1 of 4 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
Development

Successfully merging this pull request may close these issues.

2 participants