Skip to content

Commit

Permalink
Fix: exluded react and react dom from bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Feb 24, 2024
1 parent c7141a4 commit 8cf7c10
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion esbuild.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ build({
keepNames: true,
loader: {
".png": "file"
}
},
external: ["react", "react-dom"]
});
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,16 @@
"interactjs": "1.10.26",
"lodash": "4.17.21",
"lucide-react": "0.316.0",
"react": "18.0.0",
"react-dom": "18.0.0",
"react-gridlines": "1.1.7",
"react-loader-spinner": "5.3.4",
"react-redux": "9.1.0",
"tailwind-merge": "1.13.2",
"uuid": "9.0.0"
},
"peerDependencies": {
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"devDependencies": {
"@commitlint/cli": "17.4.2",
"@commitlint/config-conventional": "17.4.2",
Expand Down

0 comments on commit 8cf7c10

Please sign in to comment.