Skip to content

Commit

Permalink
Update $service-worker module to reflect docs (#658)
Browse files Browse the repository at this point in the history
* change $service-worker exports to reflect docs - fixes #646

* changeset
  • Loading branch information
Rich Harris authored Mar 25, 2021
1 parent 84e9023 commit 272148b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sharp-days-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Rename \$service-worker::assets to files, per the docs
2 changes: 1 addition & 1 deletion packages/kit/src/core/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ async function build_service_worker(
.join(',\n\t\t\t\t')}
];
export const assets = [
export const files = [
${manifest.assets
.map((asset) => `${s(`${config.kit.paths.base}/${asset.file}`)}`)
.join(',\n\t\t\t\t')}
Expand Down

1 comment on commit 272148b

@vercel
Copy link

@vercel vercel bot commented on 272148b Mar 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.