From fecadca184aedb953e6b6a09b1c28965d0685311 Mon Sep 17 00:00:00 2001 From: pieh Date: Thu, 18 Jul 2024 11:33:15 +0200 Subject: [PATCH] fix: apply type: module only to runtime modules --- src/build/functions/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build/functions/server.ts b/src/build/functions/server.ts index dbdba6553f..95fbc3fc1a 100644 --- a/src/build/functions/server.ts +++ b/src/build/functions/server.ts @@ -87,7 +87,7 @@ const writeHandlerManifest = async (ctx: PluginContext) => { const writePackageMetadata = async (ctx: PluginContext) => { await writeFile( - join(ctx.serverHandlerRootDir, 'package.json'), + join(ctx.serverHandlerRootDir, '.netlify', 'package.json'), JSON.stringify({ type: 'module' }), ) }