From 8f487347ab4f27f64b346fe12173c7dc21bfb7a1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 5 Apr 2026 07:40:37 +0000 Subject: [PATCH] fix: suppress circular dependency warnings from node_modules in rollup config Agent-Logs-Url: https://github.com/marocchino/sticky-pull-request-comment/sessions/d06505e0-ed2a-4dff-841c-baf27a74d54e Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com> --- rollup.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rollup.config.ts b/rollup.config.ts index da1d1cd..1ae3ddc 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -7,6 +7,12 @@ import typescript from "@rollup/plugin-typescript" const config = { context: "globalThis", input: "src/main.ts", + onwarn: (warning, warn) => { + if (warning.code === "CIRCULAR_DEPENDENCY" && warning.ids?.every(id => id.includes("/node_modules/"))) { + return + } + warn(warning) + }, output: { exports: "auto", file: "dist/index.js",