Skip to content

Commit b93bdba

Browse files
committed
build: use microbundle
1 parent f56e941 commit b93bdba

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
"name": "@hookform/error-message",
33
"version": "0.0.4",
44
"description": "React Hook Form error message component",
5+
"source": "src/index.ts",
56
"main": "dist/index.js",
67
"module": "dist/index.esm.js",
7-
"umd:main": "dist/index.umd.production.min.js",
8-
"unpkg": "dist/index.umd.production.min.js",
9-
"jsdelivr": "dist/index.umd.production.min.js",
8+
"esmodule": "dist/index.modern.js",
109
"jsnext:main": "dist/index.esm.js",
11-
"source": "src/index.ts",
10+
"unpkg": "dist/index.umd.js",
11+
"umd:main": "dist/index.umd.js",
12+
"jsdelivr": "dist/index.umd.js",
1213
"types": "dist/index.d.ts",
1314
"sideEffects": false,
1415
"files": [
@@ -20,7 +21,7 @@
2021
"scripts": {
2122
"clean": "rimraf dist",
2223
"prebuild": "npm run clean",
23-
"build": "node rollup/writeCjsEntryFile.js && rollup -c",
24+
"build": "microbundle build --jsx React.createElement",
2425
"lint": "eslint '**/*.{js,ts}'",
2526
"lint:fix": "npm run lint -- --fix",
2627
"lint:types": "tsc --noEmit",

0 commit comments

Comments
 (0)