Skip to content

Commit

Permalink
Merge pull request #4337 from GordonSmith/GRAPH_NODE_ISSUE
Browse files Browse the repository at this point in the history
fix: Prevent React from being included in the bundle
  • Loading branch information
GordonSmith authored Jan 31, 2025
2 parents 2207041 + 280db7a commit b132c33
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"@hpcc-js/react": "^3.2.1",
"@hpcc-js/util": "^3.3.0"
},
"optionalPeerDependencies": {
"react": ">=18.0.0"
},
"devDependencies": {
"@hpcc-js/esbuild-plugins": "^1.4.0",
"@hpcc-js/wasm-graphviz": "1.6.1",
Expand All @@ -59,7 +62,6 @@
"dagre": "0.8.5",
"lit-html": "3.2.1"
},
"peerDependencies": {},
"repository": {
"type": "git",
"url": "git+https://github.com/hpcc-systems/Visualization.git"
Expand Down
2 changes: 1 addition & 1 deletion packages/graph/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "types",
"jsx": "react-jsx",
"jsx": "react",
"strict": true,
"noImplicitAny": false,
"strictNullChecks": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/graph/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineConfig({
fileName: "index",
},
rollupOptions: {
external,
external: [...external, "react", "react-dom"],
output: {
globals,
},
Expand Down

0 comments on commit b132c33

Please sign in to comment.