Skip to content

Commit f34978b

Browse files
committed
update package
1 parent 4b00cab commit f34978b

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
if (process.env.NODE_ENV === 'production') {
2+
module.exports = {
3+
DevTool: () => null,
4+
}
5+
} else {
6+
module.exports = require('./dist/react-hook-form-devtools.js')
7+
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
"name": "react-hook-form-devtools",
33
"version": "2.0.0",
44
"description": "React Hook Form dev tool to help debugging forms",
5-
"main": "dist/react-hook-form-devtools.js",
6-
"module": "dist/react-hook-form-devtools.es.js",
5+
"main": "index.js",
76
"types": "dist/index.d.ts",
87
"repository": "git@github.com:react-hook-form/react-hook-form-devtools.git",
98
"author": "bluebill1049 <bluebill1049@hotmail.com>",

0 commit comments

Comments
 (0)