diff --git a/exchanges/suspense/package.json b/exchanges/suspense/package.json index 6c9f5d45fc..c61d4b9cdb 100644 --- a/exchanges/suspense/package.json +++ b/exchanges/suspense/package.json @@ -20,7 +20,7 @@ "suspense" ], "main": "dist/urql-exchange-suspense.js", - "module": "dist/urql-exchange-suspense.mjs", + "module": "dist/urql-exchange-suspense.es.js", "types": "dist/types/index.d.ts", "source": "src/index.ts", "exports": { diff --git a/scripts/prepare/index.js b/scripts/prepare/index.js index d2dafe7836..992b505de0 100755 --- a/scripts/prepare/index.js +++ b/scripts/prepare/index.js @@ -42,7 +42,7 @@ if (hasReact) { invariant( path.normalize(pkg.module) === `dist/${name}.es.js`, - 'package.json:main path must end in `.es.js` for packages depending on React.' + 'package.json:module path must end in `.es.js` for packages depending on React.' ); } else { invariant(