Skip to content

Commit 99cbaaa

Browse files
committed
Add comments to 'tiny-colors' / 'yoctocolors-cjs' replacement
1 parent 439b1e5 commit 99cbaaa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.config/rollup.base.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,10 @@ export default function baseConfig(extendConfig = {}) {
231231
preventAssignment: false,
232232
values: builtinAliases
233233
}),
234-
// Replace ESM package require('tiny-colors') with CJS package require('yoctocolors-cjs').
234+
// Replace require calls to ESM 'tiny-colors' with CJS 'yoctocolors-cjs'
235+
// because we npm override 'tiny-colors' with 'yoctocolors-cjs' for dist
236+
// builds which causes 'tiny-colors' to be treated as an external, not bundled,
237+
// require.
235238
socketModifyPlugin({
236239
find: requireTinyColorsRegExp,
237240
replace: "require('yoctocolors-cjs')"

0 commit comments

Comments
 (0)