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

Use the cjs extension for all UMD builds #257

Merged
merged 1 commit into from Aug 31, 2022
Merged

Use the cjs extension for all UMD builds #257

merged 1 commit into from Aug 31, 2022

Conversation

philipwalton
Copy link
Member

This PR fixes #256 by ensuring all UMD builds have the .cjs extension.

I do not believe this requires a breaking change because none of the UMD files in dist were directly referenced in the documentation examples, and technically the names of these files should be an implementation detail.

It's possible some sites were hard-coding these file named in their HTML, but presumably those references include specific versions (also we document that HTML pages should reference the IIFE builds rather than the UMD builds, so in theory this change will only affect node consumers).

If we get reports of any breakage we can always publish both versions, but I'd prefer to see if this will be an issue before adding that for all future v3 builds.

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.

Node.js ERR_REQUIRE_ESM with v3
1 participant