mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-07 06:59:25 +00:00
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:
parent
6e06a5b4b9
commit
8f487347ab
1 changed files with 6 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue