--- /dev/null
+import { Chart } from '../dist/chart.esm';
+
+export * from '../dist/chart.esm';
+export default Chart;
--- /dev/null
+import {Chart, registrables} from '../dist/chart.esm';
+
+Chart.register(...registrables);
+
+export default Chart;
--- /dev/null
+module.exports = require('../dist/chart');
--- /dev/null
+{
+ "name": "chart.js-auto",
+ "private": true,
+ "description": "auto registering package",
+ "main": "auto.js",
+ "module": "auto.esm.js",
+ "types": "auto.esm.d.ts"
+}
Chart.register(...registerables);
```
+And finally there is an separate path to do just the above for you, in one line:
+
+```javascript
+import Chart from 'chart.js/auto';
+```
+
## Require JS
**Important:** RequireJS [can **not** load CommonJS module as is](https://requirejs.org/docs/commonjs.html#intro), so be sure to require one of the UMD builds instead (i.e. `dist/chart.js`, `dist/chart.min.js`, etc.).
"url": "https://github.com/chartjs/Chart.js/issues"
},
"files": [
+ "auto/**/*.js",
+ "auto/**/*.d.ts",
"dist/*.js",
"dist/*.d.ts",
"dist/chunks/*.js",