mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-09 17:56:51 +01:00
Allow ESM files to be used in Node.js (#10479)
Allow ESM files to be used in Node.js
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
// Add Chart components needed in samples here.
|
||||
// Usable through `components[name]`.
|
||||
export {Tooltip} from '../../dist/chart.esm';
|
||||
export {Tooltip} from '../../dist/chart.mjs';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// Add helpers needed in samples here.
|
||||
// Usable through `helpers[name]`.
|
||||
export {color, getHoverColor, easingEffects} from '../../dist/helpers.esm';
|
||||
|
||||
export {color, getHoverColor, easingEffects} from '../../dist/helpers.mjs';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Chart, registerables} from '../../dist/chart.esm';
|
||||
import {Chart, registerables} from '../../dist/chart.mjs';
|
||||
import Log2Axis from './log2';
|
||||
import './derived-bubble';
|
||||
import analyzer from './analyzer';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import colorLib from '@kurkle/color';
|
||||
import {DateTime} from 'luxon';
|
||||
import 'chartjs-adapter-luxon';
|
||||
import {valueOrDefault} from '../../dist/helpers.esm';
|
||||
import {valueOrDefault} from '../../dist/helpers.mjs';
|
||||
|
||||
// Adapted from http://indiegamr.com/generate-repeatable-random-numbers-in-js/
|
||||
var _seed = Date.now();
|
||||
|
||||
Reference in New Issue
Block a user