Skip to content

Commit 566f407

Browse files
committed
Revert vendor.js split
1 parent 2c49f7b commit 566f407

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Servers/UI/OJS.Servers.Ui/ClientApp/vite.config.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,6 @@ export default defineConfig({
3030
main: resolve(__dirname, 'index.html'),
3131
admin: resolve(__dirname, 'admin.html')
3232
},
33-
output: {
34-
manualChunks(id) {
35-
if (id.includes('node_modules')) {
36-
if (id.includes('react')) {
37-
return 'react-vendor'; // React and its ecosystem
38-
}
39-
40-
if (id.includes('material')) {
41-
return 'material-vendor'; // Material
42-
}
43-
44-
if (id.includes('@mui')) {
45-
return 'mui-vendor'; // Material UI
46-
}
47-
48-
return 'vendor'; // Other libraries
49-
}
50-
}
51-
},
5233
onwarn(warning, warn) {
5334
if (warning.code === 'MODULE_LEVEL_DIRECTIVE') {
5435
return

0 commit comments

Comments
 (0)