Skip to content

Commit a1291e4

Browse files
committed
fix: Error when src/sw.js does not exist w/ esm disabled
1 parent 27119cf commit a1291e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/lib/lib/webpack/webpack-client-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async function clientConfig(env) {
6666
]
6767
: [
6868
new InjectManifest({
69-
swSrc: join(src, 'sw.js'),
69+
swSrc: swPath,
7070
include: [
7171
/200\.html$/,
7272
/\.js$/,

0 commit comments

Comments
 (0)