Framework-relate bug when importing adapters.
- Dominant language
- JavaScript
- Stars
- 67.7k
- Forks
- 11.9k
- Avg merge
- 7h 39m
- Merged PRs (30d)
- 5
Description
### Expected behavior
The adapter import should modify the correct chart.js instance.
### Current behavior
When importing in a framework like ember, or react, because the package.json points requireJS to the ".cjs" file, and the import in those frameworks happens in node during build time, the adapter does not import the same chart instance, and therefore the adapter does not work.
### Reproducible sample
https://github.com/chartjs/Chart.js/discussions/11376
### Possible Solution
Perhaps both chart.js and chart.cjs in dist can target the same chart instance? I haven't dug too deep on how this is all setup right now. Does require really need the .cjs version?
### chart.js version
v4
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.