From 520dac7ceca4890963db64f3a30332c0d133be9a Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 18 Aug 2020 12:16:51 +0200 Subject: [PATCH] dont use mjs extension for ES modules, some (most) servers serve them with the wrong mimetype --- scripts/build.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.mjs b/scripts/build.mjs index 3ae55cad..fc7e223b 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -183,7 +183,7 @@ async function buildJs() { name: `${PROJECT_ID}Bundle` }); const code = output[0].code; - const bundlePath = resource(`${PROJECT_ID}.mjs`, code); + const bundlePath = resource(`${PROJECT_ID}.js`, code); await fs.writeFile(bundlePath, code, "utf8"); return bundlePath; }