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 @@
-
+
+>
+>
+>
{time}
diff --git a/examples/rollup/src/index.js b/examples/rollup/src/index.js
index aba70f6..5bc80ca 100644
--- a/examples/rollup/src/index.js
+++ b/examples/rollup/src/index.js
@@ -1,5 +1,4 @@
+import { mount } from "svelte";
import App from "./App.svelte";
-const app = new App({ target: document.body });
-
-export default app;
+mount(App, { target: document.body });
diff --git a/examples/sveltekit/bun.lockb b/examples/sveltekit/bun.lockb
index 773b63a..1fe6666 100755
Binary files a/examples/sveltekit/bun.lockb and b/examples/sveltekit/bun.lockb differ
diff --git a/examples/sveltekit/src/routes/+page.svelte b/examples/sveltekit/src/routes/+page.svelte
index 7abd76c..c60a0cd 100644
--- a/examples/sveltekit/src/routes/+page.svelte
+++ b/examples/sveltekit/src/routes/+page.svelte
@@ -19,26 +19,26 @@
-
+
+>
+>
+>
{time}
diff --git a/examples/vite/bun.lockb b/examples/vite/bun.lockb
index 629e213..8a45d56 100755
Binary files a/examples/vite/bun.lockb and b/examples/vite/bun.lockb differ
diff --git a/examples/vite/index.html b/examples/vite/index.html
index 4ef7529..5972d34 100644
--- a/examples/vite/index.html
+++ b/examples/vite/index.html
@@ -6,9 +6,10 @@