Skip to content

Commit c9bca59

Browse files
Bump Vite & Vitest (major) (#46965)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Brijesh Bittu <[email protected]>
1 parent 79400ba commit c9bca59

File tree

4 files changed

+67
-399
lines changed

4 files changed

+67
-399
lines changed

apps/pigment-css-vite-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
"@types/react": "^19.1.13",
3232
"@types/react-dom": "^19.1.9",
3333
"@types/webfontloader": "^1.6.38",
34-
"@vitejs/plugin-react": "^4.7.0",
34+
"@vitejs/plugin-react": "^5.0.4",
3535
"postcss": "^8.5.6",
3636
"postcss-combine-media-query": "^2.0.0",
37-
"vite": "5.4.20",
37+
"vite": "7.1.9",
3838
"vite-plugin-node-polyfills": "0.24.0",
3939
"vite-plugin-pages": "^0.33.1"
4040
},

apps/pigment-css-vite-app/vite.config.ts

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { defineConfig, splitVendorChunkPlugin } from 'vite';
1+
import { defineConfig } from 'vite';
22
import reactPlugin from '@vitejs/plugin-react';
33
import Pages from 'vite-plugin-pages';
44
import { nodePolyfills } from 'vite-plugin-node-polyfills';
55
import { pigment } from '@pigment-css/vite-plugin';
66
import { extendTheme } from '@mui/material/styles';
77

88
const theme = extendTheme({
9-
getSelector: function getSelector(colorScheme, css) {
9+
getSelector: function getSelector(colorScheme: string, css: string) {
1010
if (colorScheme) {
1111
return {
1212
[`@media (prefers-color-scheme: ${colorScheme})`]: {
@@ -43,10 +43,27 @@ export default defineConfig({
4343
sourceMap: true,
4444
displayName: true,
4545
}),
46-
splitVendorChunkPlugin(),
4746
Pages({
4847
exclude: ['**/*.test.*'],
4948
}),
5049
nodePolyfills(),
5150
],
51+
build: {
52+
rollupOptions: {
53+
output: {
54+
manualChunks: {
55+
mui: [
56+
'@mui/base',
57+
'@mui/icons-material',
58+
'@mui/lab',
59+
'@mui/material',
60+
'@mui/system',
61+
'@mui/utils',
62+
],
63+
react: ['react', 'react-dom', 'react-error-boundary', 'react-router-dom'],
64+
vendor: ['clsx'],
65+
},
66+
},
67+
},
68+
},
5269
});

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
"@types/node": "^20.19.19",
129129
"@types/react": "^19.1.13",
130130
"@types/yargs": "^17.0.33",
131-
"@vitejs/plugin-react": "^4.7.0",
131+
"@vitejs/plugin-react": "^5.0.4",
132132
"@vitest/browser": "^3.2.4",
133133
"@vitest/coverage-v8": "^3.2.4",
134134
"@vvago/vale": "^3.12.0",
@@ -178,7 +178,7 @@
178178
"tsconfig-paths-webpack-plugin": "^4.2.0",
179179
"tsx": "^4.20.4",
180180
"typescript": "^5.9.2",
181-
"vite": "^6.3.6",
181+
"vite": "^7.1.9",
182182
"vitest": "^3.2.4",
183183
"vitest-fail-on-console": "^0.10.1",
184184
"webpack": "^5.101.3",

0 commit comments

Comments
 (0)