-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix splitbrain between .js
being ESM & CJS inconsistently
#189
Conversation
would it be better to stop using |
That would also be possible but I somehow hate the idea of having to rename the output files of wasm-pack Edit: ended up being explicit on the checked in files, still added |
42eae8c
to
5d2f778
Compare
@richvdh I assigned this to you since you seem to understand it more than me. Feel free to assign another one to me :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no actual changes to the js/cjs/mjs files
This doesn't seem quite right? Could you give the description of the PR an update, please, to give an overview of the approach? (Looks like we're now standardising on .js
meaning ESM, and .cjs
meaning CommonJS?)
Also, please can you add an entry to the changelog?
Have updated the description
Could you please point me to any guidance on doing so? Not seeing anything in the contributing doc |
https://github.com/matrix-org/matrix-rust-sdk/blob/main/CONTRIBUTING.md#writing-changelog-entries is the most relevant guide. TL;DR though: if you could just add an entry under the "UNRELEASED" heading, following the same style as previous entries, that would be be great. |
Co-authored-by: Richard van der Hoff <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
Fixes #188
no actual changes to the
js/cjs/mjs
files barring some ts annotationsSwitches the package type to ESM as that is what wasm-pack is outputting
Convinces the wasm bindgen test to use an ESM runner
Uses explicit extensions on the CJS entrypoints