fix-mangle-windows.patch 1000 B

123456789101112131415161718
  1. diff --git a/build/lib/compilation.js b/build/lib/compilation.js
  2. index f26b7ac..15d930c 100644
  3. --- a/build/lib/compilation.js
  4. +++ b/build/lib/compilation.js
  5. @@ -109,3 +109,3 @@ function compileTask(src, out, build) {
  6. mangleStream = es.through(function write(data) {
  7. - const newContents = newContentsByFileName.get(data.path);
  8. + const newContents = newContentsByFileName.get(data.path.replace(/\\/g, '/'));
  9. if (newContents !== undefined) {
  10. diff --git a/build/lib/compilation.ts b/build/lib/compilation.ts
  11. index 2cc04d2..9029c62 100644
  12. --- a/build/lib/compilation.ts
  13. +++ b/build/lib/compilation.ts
  14. @@ -128,3 +128,3 @@ export function compileTask(src: string, out: string, build: boolean): () => Nod
  15. mangleStream = es.through(function write(data: File) {
  16. - const newContents = newContentsByFileName.get(data.path);
  17. + const newContents = newContentsByFileName.get(data.path.replace(/\\/g, '/'));
  18. if (newContents !== undefined) {