Skip to content

Commit d3f2550

Browse files
alan-agius4angular-robot[bot]
authored andcommitted
fix(@angular-devkit/build-angular): correctly copy safety-worker.js contents
Previously, `safety-worker.js` and `worker-basic.min.js` contained incorrect data due to an incorrect path. Closes #24678
1 parent 545c180 commit d3f2550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/utils/service-worker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export async function augmentAppWithServiceWorkerCore(
167167

168168
return inputputFileSystem === outputFileSystem
169169
? // Native FS (Builder).
170-
inputputFileSystem.copyFile(workerPath, resolvedDest, fsConstants.COPYFILE_FICLONE)
170+
inputputFileSystem.copyFile(src, resolvedDest, fsConstants.COPYFILE_FICLONE)
171171
: // memfs (Webpack): Read the file from the input FS (disk) and write it to the output FS (memory).
172172
outputFileSystem.writeFile(resolvedDest, await inputputFileSystem.readFile(src));
173173
};

0 commit comments

Comments
 (0)