Skip to content

Commit

Permalink
chore: return undefined instead the bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Jul 12, 2022
1 parent 5d4ae77 commit f42a206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function _generateSW({ options, viteConfig }: PWAPluginContext) {

export function _generateBundle({ options, viteConfig, useImportRegister }: PWAPluginContext, bundle?: OutputBundle) {
if (options.disable || !bundle)
return undefined
return

if (options.manifest) {
bundle[options.manifestFilename] = {
Expand Down

0 comments on commit f42a206

Please sign in to comment.