Skip to content

Commit dfcfe1c

Browse files
committed
build: rename UMD bundle
1 parent 96f8538 commit dfcfe1c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

karma.conf.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = function(karma) {
1818
// we will prefer the unminified build which is easier to browse and works
1919
// better with source mapping. In other cases, pick the minified build to
2020
// make sure that the minification process (terser) doesn't break anything.
21-
const regex = /chart\.min\.js$/;
21+
const regex = /chart\.umd\.js$/;
2222
const build = builds.filter(v => v.output.file && v.output.file.match(regex))[0];
2323

2424
if (karma.autoWatch) {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"version": "3.9.0",
66
"license": "MIT",
77
"type": "module",
8-
"jsdelivr": "dist/chart.min.js",
9-
"unpkg": "dist/chart.min.js",
8+
"jsdelivr": "dist/chart.umd.js",
9+
"unpkg": "dist/chart.umd.js",
1010
"main": "dist/chart.js",
1111
"exports": {
1212
".": "./dist/chart.js",

rollup.config.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const banner = `/*!
1313

1414
module.exports = [
1515
// UMD build
16-
// dist/chart.min.js
16+
// dist/chart.umd.js
1717
{
1818
input: 'src/index.umd.js',
1919
plugins: [
@@ -27,7 +27,7 @@ module.exports = [
2727
],
2828
output: {
2929
name: 'Chart',
30-
file: 'dist/chart.min.js',
30+
file: 'dist/chart.umd.js',
3131
format: 'umd',
3232
indent: false,
3333
},

test/BasicChartWebWorker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Sends messages with data of types: { type: 'success' } | { type: 'error', errorMessage: string }
77

88
// eslint-disable-next-line no-undef
9-
importScripts('../src/chart.min.js');
9+
importScripts('../src/chart.umd.js');
1010

1111
onmessage = function(event) {
1212
try {

0 commit comments

Comments
 (0)