Skip to content

Commit a5da284

Browse files
authored
Merge pull request #2009 from silx-kit/vite-8
Upgrade Vite to v8
2 parents 8bc61e7 + 44def63 commit a5da284

10 files changed

Lines changed: 145 additions & 910 deletions

File tree

apps/demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
"@types/node": "^24.12.2",
3030
"@types/react": "^18.3.28",
3131
"@types/react-dom": "^18.3.7",
32-
"@vitejs/plugin-react-swc": "4.3.0",
32+
"@vitejs/plugin-react": "6.0.1",
3333
"eslint": "9.39.2",
3434
"typescript": "5.9.3",
35-
"vite": "7.3.1",
35+
"vite": "8.0.7",
3636
"vite-css-modules": "1.15.0",
3737
"vite-plugin-checker": "0.12.0",
3838
"vite-plugin-eslint": "1.8.1"

apps/demo/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import react from '@vitejs/plugin-react-swc';
1+
import react from '@vitejs/plugin-react';
22
import { defineConfig } from 'vite';
33
import { patchCssModules } from 'vite-css-modules';
44
import { checker } from 'vite-plugin-checker';

apps/storybook/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
},
2929
"devDependencies": {
3030
"@esrf/eslint-config": "2.3.0",
31-
"@storybook/addon-docs": "10.3.3",
32-
"@storybook/addon-links": "10.3.3",
33-
"@storybook/react-vite": "10.3.3",
31+
"@storybook/addon-docs": "10.3.5",
32+
"@storybook/addon-links": "10.3.5",
33+
"@storybook/react-vite": "10.3.5",
3434
"@types/d3-array": "~3.2.2",
3535
"@types/d3-format": "~3.0.4",
3636
"@types/ndarray": "1.0.14",
@@ -40,9 +40,9 @@
4040
"@types/three": "0.183.1",
4141
"eslint": "9.39.2",
4242
"remark-gfm": "4.0.1",
43-
"storybook": "10.3.3",
43+
"storybook": "10.3.5",
4444
"typescript": "5.9.3",
45-
"vite": "7.3.1"
45+
"vite": "8.0.7"
4646
},
4747
"browserslist": {
4848
"production": [

packages/app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"@types/node": "^24.12.2",
7676
"@types/react": "^18.3.28",
7777
"@types/react-dom": "^18.3.7",
78-
"@vitejs/plugin-react-swc": "4.3.0",
78+
"@vitejs/plugin-react": "6.0.1",
7979
"@vitest/browser-playwright": "4.1.3",
8080
"axios": "1.13.5",
8181
"concat": "1.0.3",
@@ -87,7 +87,7 @@
8787
"rollup": "4.60.1",
8888
"rollup-plugin-dts": "6.4.1",
8989
"typescript": "5.9.3",
90-
"vite": "7.3.1",
90+
"vite": "8.0.7",
9191
"vite-css-modules": "1.15.0",
9292
"vitest": "4.1.3",
9393
"vitest-browser-react": "2.2.0"

packages/app/vite.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from 'node:fs';
22
import path from 'node:path';
33

4-
import react from '@vitejs/plugin-react-swc';
4+
import react from '@vitejs/plugin-react';
55
import { defineConfig } from 'vite';
66
import { patchCssModules } from 'vite-css-modules';
77

@@ -26,11 +26,10 @@ export default defineConfig({
2626
fileName: 'index',
2727
cssFileName: 'app', // temp file for `build:css` script
2828
},
29-
rollupOptions: {
29+
rolldownOptions: {
3030
external: [...externals].map(
3131
(dep) => new RegExp(String.raw`^${dep}($|\/)`, 'u'), // e.g. externalize `react-icons/fi`
3232
),
33-
output: { interop: 'compat' }, // for compatibility with Jest in consumer projects (default changed in Rollup 3/Vite 4: https://rollupjs.org/migration/#changed-defaults)
3433
},
3534
sourcemap: true,
3635
},

packages/h5wasm/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@
5959
"@rollup/plugin-alias": "6.0.0",
6060
"@types/node": "^24.12.2",
6161
"@types/react": "^18.3.28",
62-
"@vitejs/plugin-react-swc": "4.3.0",
62+
"@vitejs/plugin-react": "6.0.1",
6363
"dot-json": "1.3.0",
6464
"eslint": "9.39.2",
6565
"react": "18.3.1",
6666
"react-dom": "18.3.1",
6767
"rollup": "4.60.1",
6868
"rollup-plugin-dts": "6.4.1",
6969
"typescript": "5.9.3",
70-
"vite": "7.3.1",
70+
"vite": "8.0.7",
7171
"vitest": "4.1.3"
7272
}
7373
}

packages/h5wasm/vite.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from 'node:fs';
22
import path from 'node:path';
33

4-
import react from '@vitejs/plugin-react-swc';
4+
import react from '@vitejs/plugin-react';
55
import { defineConfig } from 'vite';
66

77
const [pkg, appPkg, sharedPkg] = ['.', '../app', '../shared']
@@ -24,7 +24,7 @@ export default defineConfig({
2424
formats: ['es'],
2525
fileName: 'index',
2626
},
27-
rollupOptions: {
27+
rolldownOptions: {
2828
external: [...externals].map(
2929
(dep) => new RegExp(String.raw`^${dep}($|\/)`, 'u'), // e.g. externalize `react-icons/fi`
3030
),

packages/lib/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"@types/react": "^18.3.28",
9898
"@types/react-dom": "^18.3.7",
9999
"@types/three": "0.183.1",
100-
"@vitejs/plugin-react-swc": "4.3.0",
100+
"@vitejs/plugin-react": "6.0.1",
101101
"dot-json": "1.3.0",
102102
"eslint": "9.39.2",
103103
"react": "18.3.1",
@@ -106,7 +106,7 @@
106106
"rollup-plugin-dts": "6.4.1",
107107
"three": "0.182.0",
108108
"typescript": "5.9.3",
109-
"vite": "7.3.1",
109+
"vite": "8.0.7",
110110
"vite-css-modules": "1.15.0",
111111
"vitest": "4.1.3"
112112
}

packages/lib/vite.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from 'node:fs';
22
import path from 'node:path';
33

4-
import react from '@vitejs/plugin-react-swc';
4+
import react from '@vitejs/plugin-react';
55
import { defineConfig } from 'vite';
66
import { patchCssModules } from 'vite-css-modules';
77

@@ -24,11 +24,10 @@ export default defineConfig({
2424
fileName: 'index',
2525
cssFileName: 'styles',
2626
},
27-
rollupOptions: {
27+
rolldownOptions: {
2828
external: [...externals].map(
2929
(dep) => new RegExp(String.raw`^${dep}($|\/)`, 'u'), // e.g. externalize `react-icons/fi`
3030
),
31-
output: { interop: 'compat' }, // for compatibility with Jest in consumer projects (default changed in Rollup 3/Vite 4: https://rollupjs.org/migration/#changed-defaults)
3231
},
3332
sourcemap: true,
3433
},

0 commit comments

Comments
 (0)