diff --git a/examples/rollup/bun.lockb b/examples/rollup/bun.lockb index 40e8014..b12dee5 100755 Binary files a/examples/rollup/bun.lockb and b/examples/rollup/bun.lockb differ diff --git a/examples/rollup/rollup.config.js b/examples/rollup/rollup.config.js index 92b7435..65de6b9 100644 --- a/examples/rollup/rollup.config.js +++ b/examples/rollup/rollup.config.js @@ -13,6 +13,15 @@ export default { name: "app", file: "public/build/bundle.js", }, + // ignore Rollup warnings for d3 circular dependencies + onwarn: (warning, warn) => { + if (warning.code === "CIRCULAR_DEPENDENCY") { + if (warning.ids.some((id) => /node_modules\/(svelte)/.test(id))) { + return; + } + } + warn(warning); + }, plugins: [ svelte({ emitCss: false, diff --git a/examples/rollup/src/App.svelte b/examples/rollup/src/App.svelte index 4a19e39..b2b7488 100644 --- a/examples/rollup/src/App.svelte +++ b/examples/rollup/src/App.svelte @@ -20,26 +20,26 @@