@vite-pwa/nuxt & @sentry/vite-plugin issue

getsentry/sentry-javascript-bundler-plugins#460

Steps to reproduce issue:

  1. Install dependencies
# npm
npm install
  1. Start development server on http://localhost:3000:
# npm
npm run dev
  1. Open http://localhost:3000 in browser. (I've been using Chrome Version 124.0.6367.79)

  2. Open Developer Tools -> "Console" tab

  3. You should see error dev-sw.js?dev-sw:99 Uncaught SyntaxError: Cannot use import statement outside a module (at dev-sw.js?dev-sw:99:2)

  4. Go to Developer Tools -> "Application" tab

  5. You should see a service worker for http://localhost:3000/ with a "Status" of "#xxx is redundant"