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
11 changes: 11 additions & 0 deletions .chronus/changes/upgrade-deps-vite-8-2026-2-23-16-40-27.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: dependencies
packages:
- "@typespec/bundler"
- "@typespec/compiler"
- "@typespec/html-program-viewer"
- "@typespec/playground"
---

Upgrade vite 8
2 changes: 1 addition & 1 deletion packages/bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"c8": "^11.0.0",
"rimraf": "~6.1.3",
"typescript": "~5.9.3",
"vite": "^7.2.7",
"vite": "^8.0.1",
"vitest": "^4.1.0"
}
}
4 changes: 3 additions & 1 deletion packages/compiler/src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ try {
// @ts-ignore
manifest = (await import("../manifest.js")).default;
} catch {
const name = "../dist/manifest.js";
// Construct path dynamically so bundlers cannot statically resolve this import.
// This fallback is only used when running directly from source during development.
const name = ["../dist", "manifest.js"].join("/");
manifest = (await import(/* @vite-ignore */ /* webpackIgnore: true */ name)).default;
}

Expand Down
4 changes: 2 additions & 2 deletions packages/html-program-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@
"@types/react-dom": "~19.2.3",
"@typespec/compiler": "workspace:^",
"@typespec/react-components": "workspace:^",
"@vitejs/plugin-react": "~5.1.2",
"@vitejs/plugin-react": "~6.0.1",
"@vitest/coverage-v8": "^4.1.0",
"@vitest/ui": "^4.1.0",
"c8": "^11.0.0",
"rimraf": "~6.1.3",
"typescript": "~5.9.3",
"vite": "^7.2.7",
"vite": "^8.0.1",
"vite-plugin-checker": "^0.12.0",
"vite-plugin-dts": "4.5.4",
"vitest": "^4.1.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/html-program-viewer/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineConfig({
formats: ["es"],
},
rollupOptions: {
external: externals,
external: (id) => externals.some((x) => id.startsWith(x)),
},
},
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion packages/pack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"rimraf": "~6.1.3",
"source-map-support": "~0.5.21",
"typescript": "~5.9.3",
"vite": "^7.2.7",
"vite": "^8.0.1",
"vitest": "^4.1.0"
}
}
4 changes: 2 additions & 2 deletions packages/playground-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@
"@types/react": "~19.2.14",
"@types/react-dom": "~19.2.3",
"@types/swagger-ui": "~5.21.1",
"@vitejs/plugin-react": "~5.1.2",
"@vitejs/plugin-react": "~6.0.1",
"@vitest/coverage-v8": "^4.1.0",
"@vitest/ui": "^4.1.0",
"c8": "^11.0.0",
"cross-env": "~10.1.0",
"rimraf": "~6.1.3",
"rollup-plugin-visualizer": "6.0.4",
"typescript": "~5.9.3",
"vite": "^7.2.7",
"vite": "^8.0.1",
"vite-plugin-dts": "4.5.4",
"vitest": "^4.1.0"
}
Expand Down
3 changes: 0 additions & 3 deletions packages/playground-website/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ export default defineConfig(({ mode }) => {
const useLocalLibraries = env["VITE_USE_LOCAL_LIBRARIES"] === "true";
const config = definePlaygroundViteConfig({
...TypeSpecPlaygroundConfig,
links: {
documentationUrl: "https://typespec.io",
},
skipBundleLibraries: !useLocalLibraries,
});

Expand Down
4 changes: 2 additions & 2 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@
"@types/swagger-ui-dist": "~3.30.6",
"@typespec/bundler": "workspace:^",
"@typespec/react-components": "workspace:^",
"@vitejs/plugin-react": "~5.1.2",
"@vitejs/plugin-react": "~6.0.1",
"c8": "^11.0.0",
"cross-env": "~10.1.0",
"es-module-shims": "~2.8.0",
"rimraf": "~6.1.3",
"storybook": "^10.2.19",
"typescript": "~5.9.3",
"vite": "^7.2.7",
"vite": "^8.0.1",
"vite-plugin-checker": "^0.12.0",
"vite-plugin-dts": "4.5.4",
"vitest": "^4.1.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"@types/node": "~25.5.0",
"@types/react": "~19.2.14",
"@types/react-dom": "~19.2.3",
"@vitejs/plugin-react": "~5.1.2",
"@vitejs/plugin-react": "~6.0.1",
"@vitest/coverage-v8": "^4.1.0",
"@vitest/ui": "^4.1.0",
"c8": "^11.0.0",
"rimraf": "~6.1.3",
"typescript": "~5.9.3",
"vite": "^7.2.7",
"vite": "^8.0.1",
"vite-plugin-checker": "^0.12.0",
"vite-plugin-dts": "4.5.4",
"vitest": "^4.1.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-components/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default defineConfig({
},

rollupOptions: {
external: externals,
external: (id) => externals.some((x) => id.startsWith(x)),
Comment thread
markcowl marked this conversation as resolved.
},
},
plugins: [
Expand Down
4 changes: 2 additions & 2 deletions packages/spec-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
"devDependencies": {
"@types/react": "~19.2.14",
"@types/react-dom": "~19.2.3",
"@vitejs/plugin-react": "~5.1.2",
"@vitejs/plugin-react": "~6.0.1",
"rimraf": "~6.1.3",
"rollup-plugin-visualizer": "6.0.4",
"typescript": "~5.9.3",
"vite": "^7.2.7",
"vite": "^8.0.1",
"vite-plugin-checker": "^0.12.0",
"vite-plugin-dts": "4.5.4"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/spec-dashboard/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default defineConfig({
},

rollupOptions: {
external: externals,
external: (id) => externals.some((x) => id.startsWith(x)),
},
},
plugins: [
Expand Down
Loading
Loading