diff options
author | GitLab Dependency Bot <leipert+gitlab-renovate-bot@gitlab.com> | 2022-11-10 18:33:24 +0300 |
---|---|---|
committer | Sarah German <sgerman@gitlab.com> | 2022-11-10 18:33:24 +0300 |
commit | 7238f995c2e40c423e77bf1fc90ce8bb01558f1c (patch) | |
tree | 7da27261d93a667be8992b0534271096aea2eba8 /rollup.config.js | |
parent | 6b7adfe75c1ecfe127bbc65080889738a6d1b3a7 (diff) |
Update NodeJS dependencies
Diffstat (limited to 'rollup.config.js')
-rw-r--r-- | rollup.config.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rollup.config.js b/rollup.config.js index 3d5d2391..81a37a93 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -53,4 +53,16 @@ module.exports = glob.sync('content/frontend/**/*.js').map((file) => ({ }), terser(), ], + onwarn(warning, warn) { + // Ignore specified circular dependency warnings. + // https://github.com/d3/d3-selection/issues/168 + const ignoreCircular = ['d3-selection', 'd3-interpolate', 'd3-transition', 'd3-voronoi']; + if ( + warning.code === 'CIRCULAR_DEPENDENCY' && + ignoreCircular.some((d) => warning.message.includes(d)) + ) { + return; + } + warn(warning); + }, })); |