Skip to content

Commit a9e1968

Browse files
authored
Add back old file for compatability
1 parent 204abcc commit a9e1968

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"sideEffects": [
99
"./auto/auto.js",
1010
"./auto/auto.cjs",
11-
"./dist/chart.umd.min.js"
11+
"./dist/chart.umd.min.js",
12+
"./dist/chart.umd.js"
1213
],
1314
"jsdelivr": "./dist/chart.umd.min.js",
1415
"unpkg": "./dist/chart.umd.min.js",

rollup.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,20 @@ export default [
5858
},
5959
},
6060

61+
// UMD build
62+
// dist/chart.umd.js (old filename, deprecated)
63+
{
64+
input: 'src/index.umd.ts',
65+
plugins: plugins(true),
66+
output: {
67+
name: 'Chart',
68+
file: 'dist/chart.umd.js',
69+
format: 'umd',
70+
indent: false,
71+
sourcemap: true,
72+
},
73+
},
74+
6175
// ES6 builds
6276
// dist/chart.js
6377
// helpers/*.js

0 commit comments

Comments
 (0)