Skip to content

Commit 643c45d

Browse files
chore: Silence circular dependency warning from d3-interpolate (#3789)
1 parent 2838072 commit 643c45d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

vendor/rollup.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ export default ['d3-scale', 'react-virtual'].map(entry => ({
1717
format: 'es',
1818
},
1919
external: ['react', 'react-dom'],
20+
onwarn(warning, warn) {
21+
// Suppress circular dependency warnings for d3-interpolate
22+
// These are known harmless circular dependencies acknowledged by d3 maintainers
23+
// See: https://github.com/d3/d3-interpolate/issues/58, https://github.com/d3/d3-interpolate/issues/71
24+
if (warning.code === 'CIRCULAR_DEPENDENCY' && warning.ids.some(id => id.includes('d3-interpolate'))) {
25+
return;
26+
}
27+
warn(warning);
28+
},
2029
plugins: [
2130
resolve({
2231
extensions: ['.js'],

0 commit comments

Comments
 (0)