-
Notifications
You must be signed in to change notification settings - Fork 726
ES Module Support #455
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
base: v3.4.x
Are you sure you want to change the base?
ES Module Support #455
Conversation
…evice coordinates
|
Related: I've been using gl-matrix in a library that is going ESM-only and needs to support Node.js, so my workaround for the time being is to configure my build tool (microbundle) to inline the gl-matrix functions I need, rather than keeping the gl-matrix npm package as a production dependency. This is working for now, but I do look forward to full ESM support and |
|
In the same vein, we are about upgrade math.gl 4.0 to |
|
I'm building my project on v4 and it would be awesome to just import from 'gl-matrix' instead of from 'gl-matix/dist/esm'! |
|
This should probably not be merged into the 3.4.x branch, as it would be a breaking change. Full ESM support (including package exports) was merged in #432 and released in version 3.4.0, but reversed in 3.4.{1,2,3} (due to #439). The ESM related changes seem to remain in the master branch, but I'm not sure what the release plan is there. Perhaps @toji or @stefnotch knows more... |
|
Hit this as well - working on ESM support / rolldown bundling for maplibre-gl-js |
Related: #444
The package will support the following usage in Node:
by making the following changes to the published package.json: