Skip to content

Commit

Permalink
Hide circular import warnings in Rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
flekschas committed Jan 5, 2023
1 parent 9665087 commit 3add71d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ const configurator = (file, format, plugins = []) => ({
},
plugins: [...basePlugins(), ...plugins],
external: ['pub-sub-es', 'regl'],
onwarn: (warning, warn) => {
if (warning.code === 'CIRCULAR_DEPENDENCY') return;
warn(warning);
},
});

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

0 comments on commit 3add71d

Please sign in to comment.