Skip to content

Commit 83bcd03

Browse files
committed
fix: make plugin pure for tree-shaking
1 parent 55bfe6b commit 83bcd03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)