Skip to content

Commit 031563e

Browse files
authored
feat(bundler-vite): bump vite to 4.3 and temporarily remove manualChunks (#1328)
1 parent 45de110 commit 031563e

File tree

3 files changed

+9
-56
lines changed

3 files changed

+9
-56
lines changed

packages/bundler-vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"postcss": "^8.4.23",
4444
"postcss-load-config": "^4.0.1",
4545
"rollup": "^3.21.6",
46-
"vite": "~4.2.2",
46+
"vite": "~4.3.5",
4747
"vue": "^3.2.47",
4848
"vue-router": "^4.1.6"
4949
},

packages/bundler-vite/src/plugins/mainPlugin.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -97,20 +97,7 @@ import '@vuepress/client/app'
9797
// also add hash to ssr entry file, so that users could build multiple sites in a single process
9898
entryFileNames: `[name].[hash].mjs`,
9999
}
100-
: {
101-
manualChunks(id) {
102-
// move known framework code into a stable chunk
103-
if (
104-
id.includes('plugin-vue:export-helper') ||
105-
/node_modules\/@vuepress\/shared\//.test(id) ||
106-
/node_modules\/vue(-router)?\//.test(id)
107-
) {
108-
return 'framework'
109-
}
110-
111-
return undefined
112-
},
113-
}),
100+
: {}),
114101
},
115102
preserveEntrySignatures: 'allow-extension',
116103
},

pnpm-lock.yaml

Lines changed: 7 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)