Skip to content

Commit 22e81f4

Browse files
committed
feat(build): ESM-only builds
BREAKING CHANGE: support for CJS dropped which means ESM only
1 parent e145756 commit 22e81f4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/react-netlify-forms/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@
1717
"author": "Björn Clees <piranhadev@gmail.com> (https://github.com/pyrax/)",
1818
"license": "MIT",
1919
"repository": "Pyrax/react-netlify-forms",
20+
"type": "module",
2021
"main": "dist/index.js",
21-
"module": "dist/index.modern.js",
2222
"source": "src/index.js",
23+
"files": [
24+
"dist"
25+
],
2326
"engines": {
2427
"node": ">=10"
2528
},
2629
"scripts": {
27-
"build": "bun build ./src/index.js --outdir ./dist --target node --format esm,cjs",
28-
"start": "bun build ./src/index.js --outdir ./dist --target node --format esm,cjs --watch"
30+
"build": "bun build ./src/index.js --outdir ./dist --target node",
31+
"start": "bun build ./src/index.js --outdir ./dist --target node --watch"
2932
},
3033
"peerDependencies": {
3134
"react": "^16.8.0 || ^17.0.2 || ^18.0.0 || ^19.0.0"
3235
},
3336
"dependencies": {
3437
"react-google-recaptcha": "^2.1.0"
35-
},
36-
"files": [
37-
"dist"
38-
]
38+
}
3939
}

0 commit comments

Comments
 (0)