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
  • Loading branch information
alan-agius4 authored and angular-robot[bot] committed Feb 10, 2023
1 parent 545c180 commit d3f2550
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 d3f2550

Please sign in to comment.