Skip to content

Commit 5a47e65

Browse files
committed
feat: reduce size using minify and external
1 parent 3a8aef1 commit 5a47e65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-netlify-forms/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"node": ">=10"
2828
},
2929
"scripts": {
30-
"build": "bun build ./src/index.js --outdir ./dist --target node",
31-
"start": "bun build ./src/index.js --outdir ./dist --target node --watch"
30+
"build": "bun build ./src/index.js --outdir ./dist --minify --sourcemap=linked --external react",
31+
"start": "bun build ./src/index.js --outdir ./dist --watch"
3232
},
3333
"peerDependencies": {
3434
"react": "^16.8.0 || ^17.0.2 || ^18.0.0 || ^19.0.0"

0 commit comments

Comments
 (0)