mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-13 11:40:35 +00:00
Comment out manual chunking for @heroui in Vite config
The manual chunking logic for '@heroui' modules in the Vite configuration has been commented out. This may be to simplify chunk splitting or address build issues related to custom chunking.
This commit is contained in:
parent
aefa8985b1
commit
377c780d1a
@ -13,7 +13,7 @@ export default defineConfig(({ mode }) => {
|
|||||||
plugins: [
|
plugins: [
|
||||||
react(),
|
react(),
|
||||||
tsconfigPaths(),
|
tsconfigPaths(),
|
||||||
ViteImageOptimizer({}),
|
ViteImageOptimizer({})
|
||||||
],
|
],
|
||||||
base: '/webui/',
|
base: '/webui/',
|
||||||
server: {
|
server: {
|
||||||
@ -40,9 +40,9 @@ export default defineConfig(({ mode }) => {
|
|||||||
output: {
|
output: {
|
||||||
manualChunks (id) {
|
manualChunks (id) {
|
||||||
if (id.includes('node_modules')) {
|
if (id.includes('node_modules')) {
|
||||||
if (id.includes('@heroui/')) {
|
// if (id.includes('@heroui/')) {
|
||||||
return 'heroui';
|
// return 'heroui';
|
||||||
}
|
// }
|
||||||
if (id.includes('react-dom')) {
|
if (id.includes('react-dom')) {
|
||||||
return 'react-dom';
|
return 'react-dom';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user