瀏覽代碼

fix: patch mangle for windows (#1370)

Baptiste Augrain 2 年之前
父節點
當前提交
15addf4476
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      patches/fix-mangle-windows.patch

+ 9 - 0
patches/fix-mangle-windows.patch

@@ -0,0 +1,9 @@
+diff --git a/build/lib/compilation.ts b/build/lib/compilation.ts
+index 2cc04d2c977..9029c6231ed 100644
+--- a/build/lib/compilation.ts
++++ b/build/lib/compilation.ts
+@@ -128,3 +128,3 @@ export function compileTask(src: string, out: string, build: boolean): () => Nod
+ 			mangleStream = es.through(function write(data: File) {
+-				const newContents = newContentsByFileName.get(data.path);
++				const newContents = newContentsByFileName.get(data.path.replace(/\\/g, '/'));
+ 				if (newContents !== undefined) {