Skip to content

Commit

Permalink
fix: apply type: module only to runtime modules
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Jul 19, 2024
1 parent a54b0d0 commit 5936c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build/functions/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const writeHandlerManifest = async (ctx: PluginContext) => {

const writePackageMetadata = async (ctx: PluginContext) => {
await writeFile(
join(ctx.serverHandlerRootDir, 'package.json'),
join(ctx.serverHandlerDir, '.netlify', 'package.json'),
JSON.stringify({ type: 'module' }),
)
}
Expand Down

0 comments on commit 5936c4c

Please sign in to comment.