Skip to content
This repository has been archived by the owner on Jul 31, 2018. It is now read-only.

clarify the exact MIME for .mjs #61

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions 002-es-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ once the Node resolution algorithm reaches file expansion, the path for
path + `.mjs` would throw an error. In order to support loading ESM in CJS files
please use `import()`.

#### 3.2.1 MIME of `.mjs` files

The MIME used to identify `.mjs` files should be a [web compatible JavaScript MIME Type](https://html.spec.whatwg.org/multipage/scripting.html#javascript-mime-type), preferably `application/javascript`.

### 3.3. ES Import Path Resolution


Expand Down