mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
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
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user