Closed ylkhayat closed 3 months ago
Thanks @ylkhayat for noticing this, there's no discussion that according to the art, chart.js should be a peerDependency
. Since I've only recently started maintaining the project and this PR is a bit old, I'll just create a new PR for this, especially as this one also introduces some formatting to other files and also cuts out the dep to chart.js
entirely, while we still want to have it as a peer dep, since this is a plugin to Chart.js, thus it's the end user's thing to have it installed alongside chart.js and at the same time we don't want to have the plugin bundle include chart.js.
We will be tracking this in #134 and will release this in v2.3.0.
Merged #134 to master, this can now be closed as well.
Motivation 🔬
Trying to use this package with
Yarn PnP
setup failed due to differentChart
object reference which gets the subscription of the plugin.Changes & Concerns 💣
chart.js
which drastically reduces the package sizeBefore
After
chart.js
releaseprettier
config