`.mjs` is the file extension that is used for ES6 modules. Emscripten should probably output an `.mjs` file when `-s EXPORT_ES6=1` is set. //edit: Emscripten currently outputs LLVM IR code when specifying `-o file.mjs`.