Skip to content

Commit 5936c4c

Browse files
committed
fix: apply type: module only to runtime modules
1 parent a54b0d0 commit 5936c4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build/functions/server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const writeHandlerManifest = async (ctx: PluginContext) => {
8787

8888
const writePackageMetadata = async (ctx: PluginContext) => {
8989
await writeFile(
90-
join(ctx.serverHandlerRootDir, 'package.json'),
90+
join(ctx.serverHandlerDir, '.netlify', 'package.json'),
9191
JSON.stringify({ type: 'module' }),
9292
)
9393
}

0 commit comments

Comments
 (0)