Skip to content

Commit

Permalink
fix(webpack): Ignore warnings should concat instead of overwrite.
Browse files Browse the repository at this point in the history
closes: #18243
  • Loading branch information
ndcunningham committed Nov 28, 2024
1 parent 08a3307 commit 140a3b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/rspack/src/plugins/utils/apply-base-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ function applyNxIndependentConfig(
IGNORED_RSPACK_WARNINGS.some((r) =>
typeof x === 'string' ? r.test(x) : r.test(x.message)
),
...(config.ignoreWarnings ?? []),
];

config.optimization = !isProd
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function applyNxIndependentConfig(
IGNORED_WEBPACK_WARNINGS.some((r) =>
typeof x === 'string' ? r.test(x) : r.test(x.message)
),
...(config.ignoreWarnings ?? []),
];

config.optimization = {
Expand Down

0 comments on commit 140a3b0

Please sign in to comment.