Skip to content

Commit

Permalink
set browser build in exports (#3634)
Browse files Browse the repository at this point in the history
* set browser build in exports

* set "default" to browser condition with Node.js guard

Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com>
  • Loading branch information
guybedford and lukastaegert committed Jun 17, 2020
1 parent 472b4be commit 35f3f06
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package.json
Expand Up @@ -141,9 +141,11 @@
},
"exports": {
".": {
"require": "./dist/rollup.js",
"import": "./dist/es/rollup.js",
"default": "./dist/rollup.js"
"node": {
"require": "./dist/rollup.js",
"import": "./dist/es/rollup.js"
},
"default": "./dist/es/rollup.browser.js"
},
"./dist/": "./dist/"
}
Expand Down

0 comments on commit 35f3f06

Please sign in to comment.