Skip to content

Commit

Permalink
use "type": "module" for all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers authored and benjamn committed Jun 23, 2021
1 parent 87a411d commit 36b14f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/prepareDist.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ entryPoints.forEach(function buildPackageJson({
path.join(distRoot, ...dirs, 'package.json'),
JSON.stringify({
name: path.posix.join('@apollo', 'client', ...dirs),
type: "module",
main: `${bundleName}.cjs.js`,
module: 'index.js',
types: 'index.d.ts',
sideEffects,
...dirs.includes('core') && { type: "module" },
}, null, 2) + "\n",
);
});

0 comments on commit 36b14f4

Please sign in to comment.