Skip to content

Commit

Permalink
feat(bundler-vite): bump vite to 4.3 and temporarily remove manualChu…
Browse files Browse the repository at this point in the history
…nks (#1328)
  • Loading branch information
Mister-Hope committed May 11, 2023
1 parent 45de110 commit 031563e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 56 deletions.
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.

0 comments on commit 031563e

Please sign in to comment.