Skip to content

Commit 8cf7c10

Browse files
committed
Fix: exluded react and react dom from bundle
1 parent c7141a4 commit 8cf7c10

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

bun.lockb

0 Bytes
Binary file not shown.

esbuild.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ build({
1414
keepNames: true,
1515
loader: {
1616
".png": "file"
17-
}
17+
},
18+
external: ["react", "react-dom"]
1819
});

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,16 @@
6161
"interactjs": "1.10.26",
6262
"lodash": "4.17.21",
6363
"lucide-react": "0.316.0",
64-
"react": "18.0.0",
65-
"react-dom": "18.0.0",
6664
"react-gridlines": "1.1.7",
6765
"react-loader-spinner": "5.3.4",
6866
"react-redux": "9.1.0",
6967
"tailwind-merge": "1.13.2",
7068
"uuid": "9.0.0"
7169
},
70+
"peerDependencies": {
71+
"react": "^18.0.0",
72+
"react-dom": "^18.0.0"
73+
},
7274
"devDependencies": {
7375
"@commitlint/cli": "17.4.2",
7476
"@commitlint/config-conventional": "17.4.2",

0 commit comments

Comments
 (0)