Skip to content

Commit

Permalink
fix(vite): respect existing package.json type #27057
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Jul 24, 2024
1 parent 15b71d0 commit 98a51fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/executors/build/build.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export async function* viteBuildExecutor(
}
);

builtPackageJson.type = 'module';
builtPackageJson.type ??= 'module';

writeJsonFile(
`${outDirRelativeToWorkspaceRoot}/package.json`,
Expand Down

0 comments on commit 98a51fe

Please sign in to comment.