Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): correctly copy safety-worker.js
Browse files Browse the repository at this point in the history
… contents

Previously, `safety-worker.js` and `worker-basic.min.js` contained incorrect data due to an incorrect path.

Closes #24678

(cherry picked from commit d3f2550)
  • Loading branch information
alan-agius4 authored and dgp1130 committed Feb 10, 2023
1 parent df07ab1 commit 34a4a1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export async function augmentAppWithServiceWorkerCore(

return inputputFileSystem === outputFileSystem
? // Native FS (Builder).
inputputFileSystem.copyFile(workerPath, resolvedDest, fsConstants.COPYFILE_FICLONE)
inputputFileSystem.copyFile(src, resolvedDest, fsConstants.COPYFILE_FICLONE)
: // memfs (Webpack): Read the file from the input FS (disk) and write it to the output FS (memory).
outputFileSystem.writeFile(resolvedDest, await inputputFileSystem.readFile(src));
};
Expand Down

0 comments on commit 34a4a1b

Please sign in to comment.