Skip to content

Commit 4a1af83

Browse files
Bump the production-dependencies group with 5 updates (#497)
| Package | From | To | | --- | --- | --- | | [@dagrejs/dagre](https://github.com/dagrejs/dagre) | `1.1.8` | `2.0.3` | | [@nanostores/persistent](https://github.com/nanostores/persistent) | `1.2.0` | `1.3.0` | | [react](https://github.com/facebook/react/tree/HEAD/packages/react) | `19.2.3` | `19.2.4` | | [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) | `19.2.3` | `19.2.4` | | [zod](https://github.com/colinhacks/zod) | `4.3.5` | `4.3.6` | * Fix dagre alias for Vite bundling Use an absolute alias to the CJS build to avoid dynamic require errors when Vite resolves dagre. This is required as of the dagre v2 release. Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Blake Gentry <blakesgentry@gmail.com>
1 parent 8f256f6 commit 4a1af83

3 files changed

Lines changed: 42 additions & 31 deletions

File tree

package-lock.json

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"version": "0.0.0",
55
"type": "module",
66
"dependencies": {
7-
"@dagrejs/dagre": "^1.1.8",
7+
"@dagrejs/dagre": "^2.0.3",
88
"@headlessui/react": "^2.2.9",
99
"@heroicons/react": "^2.2.0",
10-
"@nanostores/persistent": "^1.2.0",
10+
"@nanostores/persistent": "^1.3.0",
1111
"@nanostores/react": "^1.0.0",
1212
"@tailwindcss/typography": "^0.5.19",
1313
"@tanstack/react-query": "^5.90.20",
@@ -18,11 +18,11 @@
1818
"nanostores": "^1.1.0",
1919
"next-themes": "^0.4.6",
2020
"query-string": "^9.3.1",
21-
"react": "^19.2.3",
22-
"react-dom": "^19.2.3",
21+
"react": "^19.2.4",
22+
"react-dom": "^19.2.4",
2323
"react-hot-toast": "^2.6.0",
2424
"react-time-sync": "^5.2.1",
25-
"zod": "^4.3.5"
25+
"zod": "^4.3.6"
2626
},
2727
"devDependencies": {
2828
"@chromatic-com/storybook": "^5.0.0",
@@ -44,7 +44,7 @@
4444
"@testing-library/react": "^16.3.2",
4545
"@types/eslint__js": "^9.14.0",
4646
"@types/node": "^25.2.0",
47-
"@types/react": "^19.2.8",
47+
"@types/react": "^19.2.10",
4848
"@types/react-dom": "^19.2.3",
4949
"@vitejs/plugin-react-swc": "^4.2.2",
5050
"concurrently": "^9.2.1",

vite.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import tailwindcss from "@tailwindcss/vite";
22
import { tanstackRouter } from "@tanstack/router-plugin/vite";
33
import react from "@vitejs/plugin-react-swc";
4+
import path from "node:path";
45
import { defineConfig } from "vite";
56
import tsconfigPaths from "vite-tsconfig-paths";
67

8+
const dagreCjsPath = path.resolve(
9+
process.cwd(),
10+
"node_modules/@dagrejs/dagre/dist/dagre.cjs.js",
11+
);
12+
713
// https://vitejs.dev/config/
814
export default defineConfig({
915
base: "",
@@ -32,4 +38,9 @@ export default defineConfig({
3238
}),
3339
tsconfigPaths(),
3440
],
41+
resolve: {
42+
alias: {
43+
"@dagrejs/dagre": dagreCjsPath,
44+
},
45+
},
3546
});

0 commit comments

Comments
 (0)