From 0ab52b7773414075bfb53104d8cdae44ec118b0b Mon Sep 17 00:00:00 2001 From: kpal Date: Thu, 23 May 2024 15:09:10 +0100 Subject: [PATCH] replaces slashes for windows --- utils/plugins/rollup-treeshake-ignore.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/plugins/rollup-treeshake-ignore.mjs b/utils/plugins/rollup-treeshake-ignore.mjs index 2f3e2c24721..827ae90ecfe 100644 --- a/utils/plugins/rollup-treeshake-ignore.mjs +++ b/utils/plugins/rollup-treeshake-ignore.mjs @@ -8,7 +8,7 @@ export function treeshakeIgnore(pathRegexList = []) { return { name: 'treeshake-ignore', transform(code, id) { - if (pathRegexList.some(regex => regex.test(id))) { + if (pathRegexList.some(regex => regex.test(id.replace(/\\/g, '/')))) { return { code, map: null,