mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-03 07:57:22 +00:00
Remove rollupOptions
This commit is contained in:
1 file changed
-20
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user