浏览代码

fix: update patch

Baptiste Augrain 2 年之前
父节点
当前提交
3d745a9a37
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 2 2
      insider.json
  2. 4 4
      patches/remove-mangle.patch

+ 2 - 2
insider.json

@@ -1,4 +1,4 @@
 {
-  "tag": "1.75.0",
-  "commit": "e2816fe719a4026ffa1ee0189dc89bdfdbafb164"
+  "tag": "1.77.0",
+  "commit": "155cd6db223feb1f8c734ca70e108b9efec7b054"
 }

+ 4 - 4
patches/remove-mangle.patch

@@ -1,5 +1,5 @@
 diff --git a/build/lib/compilation.js b/build/lib/compilation.js
-index 8449e98..72424b8 100644
+index cfd735b..d5179ac 100644
 --- a/build/lib/compilation.js
 +++ b/build/lib/compilation.js
 @@ -21,3 +21,2 @@ const File = require("vinyl");
@@ -12,7 +12,7 @@ index 8449e98..72424b8 100644
 -        let mangleStream = es.through();
 -        if (build) {
 -            let ts2tsMangler = new mangleTypeScript_1.Mangler(compile.projectPath, (...data) => fancyLog(ansiColors.blue('[mangler]'), ...data));
--            const newContentsByFileName = ts2tsMangler.computeNewFileContents();
+-            const newContentsByFileName = ts2tsMangler.computeNewFileContents(new Set(['saveState']));
 -            mangleStream = es.through(function write(data) {
 -                const tsNormalPath = ts.normalizePath(data.path);
 -                const newContents = newContentsByFileName.get(tsNormalPath);
@@ -32,7 +32,7 @@ index 8449e98..72424b8 100644
 -            .pipe(mangleStream)
              .pipe(generator.stream)
 diff --git a/build/lib/compilation.ts b/build/lib/compilation.ts
-index 8e2f7bf..27ea44c 100644
+index 4f890b8..27ea44c 100644
 --- a/build/lib/compilation.ts
 +++ b/build/lib/compilation.ts
 @@ -19,4 +19,2 @@ import * as File from 'vinyl';
@@ -46,7 +46,7 @@ index 8e2f7bf..27ea44c 100644
 -		let mangleStream = es.through();
 -		if (build) {
 -			let ts2tsMangler = new Mangler(compile.projectPath, (...data) => fancyLog(ansiColors.blue('[mangler]'), ...data));
--			const newContentsByFileName = ts2tsMangler.computeNewFileContents();
+-			const newContentsByFileName = ts2tsMangler.computeNewFileContents(new Set(['saveState']));
 -			mangleStream = es.through(function write(data: File & { sourceMap?: RawSourceMap }) {
 -				type TypeScriptExt = typeof ts & { normalizePath(path: string): string };
 -				const tsNormalPath = (<TypeScriptExt>ts).normalizePath(data.path);