mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-05-01 01:48:49 +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 = {
|
const config = {
|
||||||
context: "globalThis",
|
context: "globalThis",
|
||||||
input: "src/main.ts",
|
input: "src/main.ts",
|
||||||
|
onwarn: (warning, warn) => {
|
||||||
|
if (warning.code === "CIRCULAR_DEPENDENCY" && warning.ids?.every(id => id.includes("/node_modules/"))) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
warn(warning)
|
||||||
|
},
|
||||||
output: {
|
output: {
|
||||||
exports: "auto",
|
exports: "auto",
|
||||||
file: "dist/index.js",
|
file: "dist/index.js",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue