Skip to content

Commit

Permalink
(fix) - Fix internal and graphcache/extras main path (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored Apr 21, 2020
1 parent 0d85911 commit 78629bf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/loud-doors-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@urql/core': patch
'@urql/exchange-graphcache': patch
---

Make the extension of the main export unknown, which fixes a Webpack issue where the resolver won't pick `module` fields in `package.json` files once it's importing from another `.mjs` file.
2 changes: 1 addition & 1 deletion exchanges/graphcache/extras/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "urql-exchange-graphcache-extras",
"private": true,
"main": "../dist/urql-exchange-graphcache-extras.js",
"main": "../dist/urql-exchange-graphcache-extras",
"module": "../dist/urql-exchange-graphcache-extras.mjs",
"types": "../dist/types/extras/index.d.ts",
"source": "../src/extras/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/internal/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "urql-core-internal",
"private": true,
"main": "../dist/urql-core-internal.js",
"main": "../dist/urql-core-internal",
"module": "../dist/urql-core-internal.mjs",
"types": "../dist/types/internal/index.d.ts",
"source": "../src/internal/index.ts",
Expand Down

0 comments on commit 78629bf

Please sign in to comment.