Open
Description
Hi! I am running latest version (1.3.7) and I am getting this error in Sentry (242 Events and 76 Users affected). I have a SPA Vite (no SSR). Pretty simple, I have the vite-plugin-pwa using a simple sw too.
I couldn't reproduce it locally, but I think it's only on the production bundle, if it's kinda related to #44, I just post my build config from vite.config file
build: {
outDir: 'build',
sourcemap: true,
minify: true,
cssMinify: true,
rollupOptions: {
output: {
manualChunks: (id) => {
if (id.indexOf('node_modules') !== -1) {
const basic = id.toString().split('node_modules/')[1];
const sub1 = basic.split('/')[0];
if (sub1 !== '.pnpm') {
return sub1.toString();
}
const name2 = basic.split('/')[1];
return name2.split('@')[name2[0] === '@' ? 1 : 0].toString();
}
}
}
}
}
Any ideas?
Activity