mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
* feat: add ESM support * build: rename UMD bundle * chore: edit supbackages description * style: disable es/no-import-meta linter rule * test: dynamic import in cjs module * docs: edit integrations page * docs: review fixes * chore: remove useless regex in webpack config * ci: test size-limit only for ESM bundle
8 lines
159 B
JavaScript
8 lines
159 B
JavaScript
import {Chart} from 'chart.js';
|
|
import {valueOrDefault} from 'chart.js/helpers';
|
|
|
|
Chart.register({
|
|
id: 'TEST_PLUGIN',
|
|
dummyValue: valueOrDefault(0, 1)
|
|
});
|