We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b00cab commit f34978bCopy full SHA for f34978b
2 files changed
index.js
@@ -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
@@ -2,8 +2,7 @@
"name": "react-hook-form-devtools",
"version": "2.0.0",
"description": "React Hook Form dev tool to help debugging forms",
- "main": "dist/react-hook-form-devtools.js",
- "module": "dist/react-hook-form-devtools.es.js",
+ "main": "index.js",
"types": "dist/index.d.ts",
8
"repository": "git@github.com:react-hook-form/react-hook-form-devtools.git",
9
"author": "bluebill1049 <bluebill1049@hotmail.com>",
0 commit comments