Skip to content

Commit 9db0421

Browse files
committed
fix(build): bundle with react-jsx instead of react-jsxdev
1 parent 5f1b161 commit 9db0421

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/react-netlify-forms/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@
2727
"node": ">=10"
2828
},
2929
"scripts": {
30-
"build": "bun build ./src/index.js --outdir ./dist --minify --sourcemap=linked --external react",
31-
"start": "bun build ./src/index.js --outdir ./dist --watch"
30+
"build": "bun build ./src/index.js --outdir ./dist --production --minify --sourcemap=linked --external react --jsx=react-jsx",
31+
"start": "bun run build --watch"
3232
},
3333
"peerDependencies": {
3434
"react": "^16.8.0 || ^17.0.2 || ^18.0.0 || ^19.0.0"
3535
},
3636
"dependencies": {
3737
"react-google-recaptcha": "^2.1.0"
38-
},
39-
"jsxImportSource": "react"
38+
}
4039
}

0 commit comments

Comments
 (0)