Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit 0c6f7b4

Browse files
author
sluger
committed
add mjs to rollup
1 parent b6429c7 commit 0c6f7b4

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

rollup.config.js

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,34 @@ import resolve from 'rollup-plugin-node-resolve';
33
import commonjs from 'rollup-plugin-commonjs';
44
import babel from 'rollup-plugin-babel';
55

6-
export default {
7-
external: ['chart.js'],
6+
export default [{
87
output: {
98
file: 'build/Plugin.Errorbars.js',
9+
name: 'PluginErrorbars',
1010
format: 'umd',
1111
globals: {
1212
'chart.js': 'Chart'
13-
},
14-
name: 'PluginErrorbars'
13+
}
14+
},
15+
external: ['chart.js'],
16+
plugins: [
17+
resolve(),
18+
commonjs(),
19+
babel()
20+
]
21+
}, {
22+
output: {
23+
file: 'build/Plugin.Errorbars.mjs',
24+
name: 'PluginErrorbars',
25+
format: 'esm',
26+
globals: {
27+
'chart.js': 'Chart'
28+
}
1529
},
30+
external: ['chart.js'],
1631
plugins: [
1732
resolve(),
1833
commonjs(),
1934
babel()
2035
]
21-
};
36+
}];

0 commit comments

Comments
 (0)