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
2 changes: 1 addition & 1 deletion apps/brunch-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"oxlint": "1.63.0",
"oxlint-tsgolint": "0.22.1",
"typebox": "1.3.7",
"vite": "8.1.0",
"vite": "8.2.2",
"vitest": "4.1.10"
}
}
2 changes: 1 addition & 1 deletion apps/hash-ai-worker-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"rimraf": "6.1.3",
"ts-json-schema-generator": "1.5.1",
"typescript": "5.9.3",
"vite": "8.1.0",
"vite": "8.2.2",
"vitest": "4.1.10",
"wait-on": "9.0.1"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/petrinaut-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"oxlint": "1.63.0",
"oxlint-tsgolint": "0.22.1",
"sharp": "0.35.3",
"vite": "8.1.0",
"vite": "8.2.2",
"vitest": "4.1.10"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@typescript/native-preview": "7.0.0-dev.20260511.1",
"oxlint": "1.63.0",
"oxlint-tsgolint": "0.22.1",
"vite": "8.1.0",
"vite": "8.2.2",
"vitest": "4.1.10"
}
}
2 changes: 1 addition & 1 deletion libs/@hashintel/brunch-agent/packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"fast-check": "4.9.0",
"oxlint": "1.63.0",
"oxlint-tsgolint": "0.22.1",
"vite": "8.1.0",
"vite": "8.2.2",
"vitest": "4.1.10"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@typescript/native-preview": "7.0.0-dev.20260511.1",
"oxlint": "1.63.0",
"oxlint-tsgolint": "0.22.1",
"vite": "8.1.0",
"vite": "8.2.2",
"vitest": "4.1.10"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@typescript/native-preview": "7.0.0-dev.20260511.1",
"oxlint": "1.63.0",
"oxlint-tsgolint": "0.22.1",
"vite": "8.1.0",
"vite": "8.2.2",
"vitest": "4.1.10"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@typescript/native-preview": "7.0.0-dev.20260511.1",
"oxlint": "1.63.0",
"oxlint-tsgolint": "0.22.1",
"vite": "8.1.0",
"vite": "8.2.2",
"vitest": "4.1.10"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@typescript/native-preview": "7.0.0-dev.20260511.1",
"oxlint": "1.63.0",
"oxlint-tsgolint": "0.22.1",
"vite": "8.1.0",
"vite": "8.2.2",
"vitest": "4.1.10"
}
}
5 changes: 3 additions & 2 deletions libs/@hashintel/ds-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,20 +105,21 @@
"@types/node": "22.18.13",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "5.0.4",
"@vitejs/plugin-react": "6.1.0",
"@vitest/browser-playwright": "4.1.10",
"case-anything": "3.1.0",
"esbuild-plugin-svgr": "3.1.1",
"eslint": "9.39.4",
"lorem-ipsum": "2.0.8",
"lucide-react": "0.544.0",
"npm-run-all": "4.1.5",
"oxc-transform-react": "0.145.0",
"react": "19.2.6",
"react-dom": "19.2.6",
"tsup": "^8.5.1",
"tsx": "4.20.6",
"typescript": "5.9.3",
"vite": "7.3.6",
"vite": "8.2.2",
"vite-plugin-dts": "4.5.4",
"vite-plugin-svgr": "5.2.0",
"vitest": "4.1.10",
Expand Down
30 changes: 27 additions & 3 deletions libs/@hashintel/ds-components/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,34 @@
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import svgr from "vite-plugin-svgr";

export default defineConfig({
// Ladle runs this config on its own bundled Vite 6, where plugin-react 6's
// rolldown-native fast-refresh plugin breaks `ladle serve` ("Missing field
// `moduleType`"). Skip the plugin there so Ladle injects its own; Ladle
// detects it in every other context (`vite:react-babel`) and adds nothing.
// `ladle build`, vitest, and plain Vite all run the React Compiler.
const isLadleServe = (command: "build" | "serve") => {
const { VITE_LADLE_APP_ID: ladleAppId } = process.env;
return command === "serve" && ladleAppId !== undefined;
};

export default defineConfig(({ command }) => ({
// Ladle points at this file from `.ladle/config.mjs`. Keep it limited to shared demo/build concerns.
build: {
cssMinify: "esbuild",
},
css: {
postcss: "./postcss.config.cjs",
},
plugins: [svgr({ include: "**/*.svg" })],
});
plugins: [
svgr({ include: "**/*.svg" }),
!isLadleServe(command) &&
react({
compiler: {
target: "19",
compilationMode: "infer",
panicThreshold: "critical_errors",
},
}),
],
Comment thread
cursor[bot] marked this conversation as resolved.
Comment thread
cursor[bot] marked this conversation as resolved.
}));
2 changes: 1 addition & 1 deletion libs/@hashintel/petrinaut-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"oxlint": "1.63.0",
"oxlint-tsgolint": "0.22.1",
"tsx": "4.20.6",
"vite": "8.1.0",
"vite": "8.2.2",
"vitest": "4.1.10"
}
}
4 changes: 1 addition & 3 deletions yarn.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ const allowedUnscriptedDevDependencies = {

const ignoredDependencies = [
"@sentry/webpack-plugin",
// Petrinaut uses Vite 8 and Storybook 10
"vite",
"@vitejs/plugin-react",
Comment thread
cursor[bot] marked this conversation as resolved.
// Petrinaut uses Storybook 10
"storybook",
"@storybook/react-vite",
// Petrinaut uses multiple packages which are many versions behind in other workspaces
Expand Down
Loading
Loading