We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6f3320 commit 0f1c32eCopy full SHA for 0f1c32e
packages/core/vite.config.ts
@@ -57,20 +57,12 @@ export default defineConfig({
57
...Object.keys(pkg.peerDependencies ?? {}),
58
],
59
output: {
60
- manualChunks(id) {
61
- if (id.includes('node_modules')) {
62
- // vendor kodlarını gruplayalım
63
- return 'vendor'
64
- }
65
- // src altındaki ana klasörleri ayrı chunk'lara bölelim
66
- const match = id.match(/[/\\]src[/\\](.*?)[/\\]/)
67
- if (match && match[1]) {
68
- return match[1]
69
+ manualChunks: (id) => {
+ const chunks = id.match(/[/\\]src[/\\](.*?)[/\\]/)
+ return chunks ? chunks[1] : null
70
},
71
exports: 'named',
72
chunkFileNames: '[name].mjs',
73
- hoistTransitiveImports: true,
74
minifyInternalExports: true,
75
76
0 commit comments