File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
- const cleanup = require ( 'rollup-plugin-cleanup' ) ;
2
- const json = require ( '@rollup/plugin-json' ) ;
3
- const resolve = require ( '@rollup/plugin-node-resolve' ) . default ;
4
- const terser = require ( 'rollup-plugin-terser' ) . terser ;
5
- const pkg = require ( './package.json' ) ;
1
+ import cleanup from 'rollup-plugin-cleanup' ;
2
+ import json from '@rollup/plugin-json' ;
3
+ import resolve from '@rollup/plugin-node-resolve' ;
4
+ import { terser } from 'rollup-plugin-terser' ;
5
+ import { version , homepage } from './package.json' ;
6
6
7
7
const banner = `/*!
8
- * Chart.js v${ pkg . version }
9
- * ${ pkg . homepage }
8
+ * Chart.js v${ version }
9
+ * ${ homepage }
10
10
* (c) ${ ( new Date ( process . env . SOURCE_DATE_EPOCH ? ( process . env . SOURCE_DATE_EPOCH * 1000 ) : new Date ( ) . getTime ( ) ) ) . getFullYear ( ) } Chart.js Contributors
11
11
* Released under the MIT License
12
12
*/` ;
13
13
14
- module . exports = [
14
+ export default [
15
15
// UMD build
16
16
// dist/chart.umd.js
17
17
{
You can’t perform that action at this time.
0 commit comments