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>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-05 07:40:37 +00:00 committed by GitHub
parent 6e06a5b4b9
commit 8f487347ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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",