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

Commit

Permalink
clarify the exact MIME for .mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeck committed Aug 9, 2017
1 parent 6cc060e commit db9a07d
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit db9a07d

Please sign in to comment.