fix-mangle-windows.patch 1.0 KB

123456789101112131415161718
  1. diff --git a/build/lib/compilation.js b/build/lib/compilation.js
  2. index d101f6e..cf50b50 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 54fa32d..4c8fd1c 100644
  12. --- a/build/lib/compilation.ts
  13. +++ b/build/lib/compilation.ts
  14. @@ -129,3 +129,3 @@ export function compileTask(src: string, out: string, build: boolean): () => Nod
  15. mangleStream = es.through(function write(data: File & { sourceMap?: RawSourceMap }) {
  16. - const newContents = newContentsByFileName.get(data.path);
  17. + const newContents = newContentsByFileName.get(data.path.replace(/\\/g, '/'));
  18. if (newContents !== undefined) {