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

unpin echarts #987

Merged
merged 5 commits into from
Mar 6, 2024
Merged

unpin echarts #987

merged 5 commits into from
Mar 6, 2024

Conversation

mbostock
Copy link
Member

@mbostock mbostock commented Mar 6, 2024

Seems like the latest version works, as long as you use the correct entry (dist/echarts.esm.min.js).

@mbostock mbostock requested a review from Fil March 6, 2024 05:23
@Fil
Copy link
Contributor

Fil commented Mar 6, 2024

Do we need to use echarts.esm.min.js? I tried with this (in recommendedLibraries.js)

-export const echarts = () => import("npm:echarts/dist/echarts.esm.min.js");
+export const echarts = () => import("npm:echarts");

and it seems to work. (It's also what we document in http://127.0.0.1:3000/lib/echarts). Maybe I'm confused by some caching mystery, though.

@mbostock
Copy link
Member Author

mbostock commented Mar 6, 2024

They’re the same thing now, with the changes in this PR. I can shorten it.

Copy link
Contributor

@Fil Fil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've pushed two changes:

  • in recommendedLibraries, simplify
  • in the documentation, add a link to the Echarts website

@mbostock mbostock enabled auto-merge (squash) March 6, 2024 13:13
@mbostock mbostock merged commit 466092b into main Mar 6, 2024
4 checks passed
@mbostock mbostock deleted the mbostock/unpin-echarts branch March 6, 2024 13:15
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