diff --git a/packages/nitro/src/targets/browser.ts b/packages/nitro/src/targets/browser.ts index 61369b0839..56749f9b96 100644 --- a/packages/nitro/src/targets/browser.ts +++ b/packages/nitro/src/targets/browser.ts @@ -12,7 +12,7 @@ if ('serviceWorker' in navigator) { navigator.serviceWorker.register('${options.routerBase}_nuxt.js'); }); } -`.replace(/\n| +/g, '') +`.replace(/\n| +/g, '') return { targetDir: '{{ publicDir }}',