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

Fix: esm issue #19593

Merged
merged 1 commit into from
Feb 4, 2024
Merged

Fix: esm issue #19593

merged 1 commit into from
Feb 4, 2024

Conversation

100pah
Copy link
Member

@100pah 100pah commented Feb 4, 2024

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

Previous issue #19513

This PR fixes:

  • (1) Mistake in package.json "exports"."require".
  • (2) Add entry for dist/** for "file extension not specified" usage.
  • (3) Add dist/echarts.esm.mjs (after build). Originally there is only dist/echarts.esm.js, which is a ESM file. Since dist/package.json with {"type": "commonjs"} is added, webpack5 can not recognize it as ESM by default. This is a breaking change. So add dist/echarts.esm.mjs for the uses that get that trouble.

…r dist/** for file extension not specified usage (3) add dist/echarts.esm.mjs for case that not able to recognize as esm after dist/package.json with `{"type": "commonjs"}` added.
Copy link

echarts-bot bot commented Feb 4, 2024

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

The pull request is marked to be PR: author is committer because you are a committer of this project.

To reviewers: If this PR is going to be described in the changelog in the future release, please make sure this PR has one of the following labels: PR: doc ready, PR: awaiting doc, PR: doc unchanged

This message is shown because the PR description doesn't contain the document related template.

Copy link
Contributor

github-actions bot commented Feb 4, 2024

The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-19593@6cefe27

@Ovilia Ovilia merged commit e3fa16c into release Feb 4, 2024
2 checks passed
Copy link

echarts-bot bot commented Feb 4, 2024

Congratulations! Your PR has been merged. Thanks for your contribution! 👍

@Ovilia Ovilia deleted the module_default_esm_fix2 branch February 4, 2024 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants