Skip to content

Commit

Permalink
fix: devtools exports to allow devtools in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianOsipiuk committed Jul 21, 2022
1 parent cf76e2e commit 6e73c78
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions packages/react-query-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,21 @@
"src"
],
"exports": {
"development": {
"require": "./build/cjs/packages/react-query-devtools/src/index.js",
"default": "./build/esm/index.mjs"
".": {
"development": {
"require": "./build/cjs/packages/react-query-devtools/src/index.js",
"default": "./build/esm/index.mjs"
},
"default": {
"require": "./build/cjs/packages/react-query-devtools/src/noop.js",
"default": "./build/esm/noop.mjs"
}
},
"default": {
"require": "./build/cjs/packages/react-query-devtools/src/noop.js",
"default": "./build/esm/noop.mjs"
}
"./devtools": {
"import": "./build/esm/index.mjs",
"default": "./build/cjs/packages/react-query-devtools/src/index.js"
},
"./package.json": "./package.json"
},
"scripts": {
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
Expand Down

0 comments on commit 6e73c78

Please sign in to comment.