You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "wilkie (via GitHub)" <gi...@apache.org> on 2025/07/16 18:06:30 UTC
Re: [I] [Bug] package.json is missing a package "type": "module" description [echarts]
wilkie commented on issue #16709:
URL: https://github.com/apache/echarts/issues/16709#issuecomment-3079714447
Yes, when using the minimized entrypoints with something bundled, it doesn't seem to work. It's expecting common-js and it is getting a module. There would need to be a build of the package where each entrypoint has a common-js build and then the `package.json` would express this in the `exports` section as something like:
```
"exports": {
...
"./charts": {
"import": "./dist/charts.js", // The normal build that already exists
"require": "./dist/charts.cjs" // A new exposed build that is pre-transformed
},
...
}
```
I think.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org