@@ -77,6 +77,13 @@ export default defineConfig(({ mode }) => {
|
||||
return 'vendor'
|
||||
}
|
||||
|
||||
if (id.includes('src/api/')) {
|
||||
return 'api'
|
||||
}
|
||||
if (id.includes('src/utils/')) {
|
||||
return 'utils'
|
||||
}
|
||||
|
||||
// По умолчанию ничего не делим
|
||||
return null
|
||||
},
|
||||
|
||||
+2
-1
@@ -19,5 +19,6 @@
|
||||
"build": "npm run build --workspaces",
|
||||
"test": "npm run test --workspaces",
|
||||
"lint": "npm run lint --workspaces"
|
||||
}
|
||||
},
|
||||
"packageManager": "pnpm@8.15.9"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user