Skip to content

Commit

Permalink
allow service workers to use the $lib alias
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanJPNM committed Aug 30, 2021
1 parent c086b18 commit 9574c2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/kit/src/core/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,8 @@ async function build_service_worker(
},
resolve: {
alias: {
'$service-worker': path.resolve(`${build_dir}/runtime/service-worker`)
'$service-worker': path.resolve(`${build_dir}/runtime/service-worker`),
$lib: config.kit.files.lib
}
}
});
Expand Down

0 comments on commit 9574c2c

Please sign in to comment.