Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/desktop-tauri/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
"rimraf": "^6.1.3",
"tailwindcss": "^4.3.0",
"typescript": "^5.9.3",
"vite": "^7.3.2",
"vite-plugin-virtual": "^0.4.0",
"vite": "^8.0.16",
"vite-plugin-virtual": "^0.5.0",
"vitest": "^4.1.6"
}
}
13 changes: 9 additions & 4 deletions apps/desktop-tauri/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ export default defineConfig({
build: {
outDir: 'build',
sourcemap: true,
// Tauri uses Chromium on Windows/Linux and WebKit on macOS
target: process.env.TAURI_PLATFORM === 'windows' ? 'chrome105' : 'safari14',
// Tauri uses Chromium on Windows/Linux and WebKit on macOS.
// safari15 is the floor: Vite 8's worker bundler (esbuild) cannot lower
// the inlined dcm2niix worker to safari14, and macOS 12+ ships Safari 15+.
target: process.env.TAURI_PLATFORM === 'windows' ? 'chrome105' : 'safari15',
// Don't minify for debug builds
minify: !process.env.TAURI_DEBUG ? 'esbuild' : false,
chunkSizeWarningLimit: 1000,
Expand All @@ -97,8 +99,11 @@ export default defineConfig({
entryFileNames: 'assets/[name]-[hash].js',
chunkFileNames: 'assets/[name]-[hash].js',
assetFileNames: 'assets/[name]-[hash].[ext]',
manualChunks: {
vendor: ['preact', '@preact/signals'],
// Rolldown (Vite 8) requires manualChunks to be a function, not an object
manualChunks: (id) => {
if (id.includes('/preact/') || id.includes('/@preact/signals')) {
return 'vendor'
}
},
},
onwarn: (warning, warn) => {
Expand Down
4 changes: 2 additions & 2 deletions apps/pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
"rimraf": "^6.1.3",
"tailwindcss": "^4.3.0",
"typescript": "^5.9.3",
"vite": "^7.3.2",
"vite": "^8.0.16",
"vite-plugin-pwa": "^1.3.0",
"vite-plugin-virtual": "^0.4.0",
"vite-plugin-virtual": "^0.5.0",
"vitest": "^4.1.6",
"workbox-build": "^7.4.1",
"workbox-window": "^7.4.1"
Expand Down
9 changes: 6 additions & 3 deletions apps/pwa/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const gitRepoUrl = getGitRepoUrl()
const isProd = process.env.NODE_ENV === 'production'
// Support PR previews with PR_NUMBER environment variable
const prNumber = process.env.PR_NUMBER
const baseUrl = isProd
const baseUrl = isProd
? (prNumber ? `/niivue-vscode/pr-${prNumber}/` : '/niivue-vscode/')
: '/'

Expand Down Expand Up @@ -212,8 +212,11 @@ export default defineConfig({
entryFileNames: 'assets/[name]-[hash].js',
chunkFileNames: 'assets/[name]-[hash].js',
assetFileNames: 'assets/[name]-[hash].[ext]',
manualChunks: {
vendor: ['preact', '@preact/signals'],
// Rolldown (Vite 8) requires manualChunks to be a function, not an object
manualChunks: (id) => {
if (id.includes('/preact/') || id.includes('/@preact/signals')) {
return 'vendor'
}
},
},
// Ensure virtual modules are properly handled
Expand Down
2 changes: 1 addition & 1 deletion apps/streamlit/niivue_component/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"rimraf": "^6.1.3",
"tailwindcss": "^4.3.0",
"typescript": "^5.9.3",
"vite": "^7.3.2",
"vite": "^8.0.16",
"vite-plugin-virtual": "^0.5.0",
"vitest": "^4.1.6"
}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@types/node": "^25.8.0",
"@typescript-eslint/eslint-plugin": "^8.59.3",
"@typescript-eslint/parser": "^8.59.3",
"@vitejs/plugin-legacy": "^7.2.1",
"@vitejs/plugin-legacy": "^8.0.2",
"concurrently": "^9.2.1",
"eslint": "^10.4.0",
"eslint-config-prettier": "^10.1.8",
Expand All @@ -70,8 +70,8 @@
"turbo": "^2.9.14",
"typescript": "^5.9.3",
"typescript-eslint": "^8.59.3",
"vite": "^7.3.2",
"vite-plugin-dts": "^4.5.4"
"vite": "^8.0.16",
"vite-plugin-dts": "^5.0.2"
},
"engines": {
"node": ">=18.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/niivue-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"devDependencies": {
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/preact": "^3.2.4",
"@vitejs/plugin-legacy": "^7.2.1",
"@vitejs/plugin-legacy": "^8.0.2",
"@vitest/coverage-v8": "^4.1.6",
"@vitest/ui": "^4.1.6",
"autoprefixer": "^10.5.0",
Expand All @@ -82,7 +82,7 @@
"postcss": "^8.5.14",
"rimraf": "^6.1.3",
"tailwindcss": "^4.3.0",
"vite-plugin-virtual": "^0.4.0",
"vite-plugin-virtual": "^0.5.0",
"vitest": "^4.1.6",
"workbox-window": "^7.4.1"
},
Expand Down
Loading