chartjs-plugin-dragdata
chartjs-plugin-dragdata copied to clipboard
Omit `chart.js` from the package & Expose the plugin for registration
Motivation 🔬
Trying to use this package with Yarn PnP setup failed due to different Chart object reference which gets the subscription of the plugin.
Changes & Concerns 💣
- Remove the
chart.jswhich drastically reduces the package size
Before
After
- Subscription only happens if you register the plugin manually which is exported from the package right now
- This makes this update flexible and dynamic to whichever
chart.jsrelease - Prettified the file according to the standard
prettierconfig