|
@@ -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);
|