Skip to content

Commit 3add71d

Browse files
committed
Hide circular import warnings in Rollup
See d3/d3-selection#168 (comment) for details
1 parent 9665087 commit 3add71d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rollup.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ const configurator = (file, format, plugins = []) => ({
2626
},
2727
plugins: [...basePlugins(), ...plugins],
2828
external: ['pub-sub-es', 'regl'],
29+
onwarn: (warning, warn) => {
30+
if (warning.code === 'CIRCULAR_DEPENDENCY') return;
31+
warn(warning);
32+
},
2933
});
3034

3135
const devConfig = configurator('dist/regl-scatterplot.js', 'umd', [

0 commit comments

Comments
 (0)