Skip to content

Commit

Permalink
Revert "fix: build service workers in IIFE format (#11129)"
Browse files Browse the repository at this point in the history
This reverts commit 5f052a3.
  • Loading branch information
Rich-Harris authored Dec 19, 2023
1 parent 5f052a3 commit f7f1252
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .changeset/tricky-meals-perform.md

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kit/src/exports/vite/build/build_service_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ export async function build_service_worker(
'service-worker': service_worker_entry_file
},
output: {
// default 'es' format would be nicer
// iife is workaround for https://github.com/vitejs/vite/issues/15379
format: 'iife',
entryFileNames: '[name].js',
assetFileNames: `${kit.appDir}/immutable/assets/[name].[hash][extname]`,
inlineDynamicImports: true
Expand Down

0 comments on commit f7f1252

Please sign in to comment.