Skip to content

Commit 36ed065

Browse files
committed
fix: make plugin pure for tree-shaking
1 parent 8e73b04 commit 36ed065

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.size-limit.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function modifyWebpackConfig(config) {
77
module.exports = [
88
{
99
path: 'dist/chart.js',
10-
limit: '77.5 KB',
10+
limit: '77.7 KB',
1111
webpack: false,
1212
running: false
1313
},

src/plugins/plugin.colors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const BORDER_COLORS = [
1313
];
1414

1515
// Primary colors with 50% transparency
16-
const BACKGROUND_COLORS = BORDER_COLORS.map(_ => _.replace(')', ', 0.5)'));
16+
const BACKGROUND_COLORS = /* #__PURE__ */ BORDER_COLORS.map(_ => _.replace(')', ', 0.5)'));
1717

1818
function getBorderColor(i: number) {
1919
return BORDER_COLORS[i % BORDER_COLORS.length];

0 commit comments

Comments
 (0)