Skip to content

Commit

Permalink
chore: reference Next.js dist/package.json impl.
Browse files Browse the repository at this point in the history
  • Loading branch information
ctjlewis committed Feb 15, 2022
1 parent 122da0d commit fc3abdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/commands/build/index.ts
Expand Up @@ -193,6 +193,9 @@ export const build = async ({

/**
* Ensure that the dist/ package.json has { type: module }.
*
* @see https://github.com/vercel/next.js/pull/33637
* @see https://github.com/timneutkens/next.js/blob/99dceb60faae6b00faed75db795ef24107934227/packages/next/build/index.ts#L537-L540
*/
const rewrotePkgJson = forceTypeModuleInDist();
if (rewrotePkgJson) {
Expand Down

0 comments on commit fc3abdf

Please sign in to comment.