forked from mystiq/hydrogen-web
dont use mjs extension for ES modules, some (most) servers serve them with the wrong mimetype
This commit is contained in:
parent
054ba8d17d
commit
520dac7cec
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ async function buildJs() {
|
||||||
name: `${PROJECT_ID}Bundle`
|
name: `${PROJECT_ID}Bundle`
|
||||||
});
|
});
|
||||||
const code = output[0].code;
|
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");
|
await fs.writeFile(bundlePath, code, "utf8");
|
||||||
return bundlePath;
|
return bundlePath;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue