Publishing an extension
You’d probably want your extension to be listed in the awesome (opens new window).
ESM
If you are utilizing ESM, you probably still want to publish an UMD bundle of your extension. Because Chart.js v3 is tree shakeable, the interface is a bit different. UMD package’s global includes everything, while ESM package exports all the things separately. Fortunately, most of the exports can be mapped automatically by the bundlers.
In UMD, helpers are available through Chart.helpers
. In ESM, they are imported from .
output.globals
can be used to convert the helpers.