Remove rollupOptions

This commit is contained in:
Alex Gleason committed 2025-10-25 11:20:11 -05:00
1 parent caa555986a
commit 84bebe02cb
1 file changed
-20
-20
View File
@@ -44,26 +44,6 @@ export default defineConfig(() => ({
],
build: {
sourcemap: true,
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes('node_modules')) {
// get the path after "node_modules/"
const parts = id.toString().split('node_modules/')[1].split('/');
// handle scoped packages (@scope/name)
const pkgName = parts[0].startsWith('@')
? `${parts[0]}/${parts[1]}`
: parts[0];
return `npm/${pkgName.replace('@', '')}`;
}
if (id.includes('/src/')) {
return 'app';
}
},
},
},
},
test: {
globals: true,