Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bundler-vite): bump vite to 4.3 and temporarily remove manualChunks #1328

Merged
merged 2 commits into from May 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/bundler-vite/package.json
Expand Up @@ -43,7 +43,7 @@
"postcss": "^8.4.23",
"postcss-load-config": "^4.0.1",
"rollup": "^3.21.6",
"vite": "~4.2.2",
"vite": "~4.3.5",
"vue": "^3.2.47",
"vue-router": "^4.1.6"
},
Expand Down
15 changes: 1 addition & 14 deletions packages/bundler-vite/src/plugins/mainPlugin.ts
Expand Up @@ -97,20 +97,7 @@ import '@vuepress/client/app'
// also add hash to ssr entry file, so that users could build multiple sites in a single process
entryFileNames: `[name].[hash].mjs`,
}
: {
manualChunks(id) {
// move known framework code into a stable chunk
if (
id.includes('plugin-vue:export-helper') ||
/node_modules\/@vuepress\/shared\//.test(id) ||
/node_modules\/vue(-router)?\//.test(id)
) {
return 'framework'
}

return undefined
},
}),
: {}),
},
preserveEntrySignatures: 'allow-extension',
},
Expand Down
48 changes: 7 additions & 41 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.