diff --git a/common/tools/dev-tool/src/config/rollup.base.config.ts b/common/tools/dev-tool/src/config/rollup.base.config.ts index 6eda27d8902d..0782165d36ab 100644 --- a/common/tools/dev-tool/src/config/rollup.base.config.ts +++ b/common/tools/dev-tool/src/config/rollup.base.config.ts @@ -69,8 +69,7 @@ export function sourcemapsExtra() { export type WarningInhibitor = (warning: RollupWarning) => boolean; function matchesPathSegments(str: string | undefined, segments: string[]): boolean { - // Reported warnings use "/" - return str?.includes(segments.join("/")) ?? false; + return !str ? false : str.includes(segments.join("/")) || str.includes(segments.join("\\")); } function ignoreNiseSinonEval(warning: RollupWarning): boolean {