Skip to content

Commit ab61f66

Browse files
committed
improve esm docs
- clarify extension resolving
1 parent 02e4d73 commit ab61f66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/guides/ecma-script-modules.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ In DataURIs using the `text/javascript` or `application/javascript` mime type wi
7979

8080
In addition to the module format, flagging modules as ESM also affect the resolving logic, interop logic and the available symbols in modules.
8181

82-
Imports in ESM are resolved more strictly. Relative requests must include a filename and file extension.
82+
Imports in ESM are resolved more strictly and require file extension (e.g. `*.js` or `*.mjs`) if you specify relative request. Relative requests must include a filename and file extension.
8383

8484
T> Requests to packages e.g. `import "lodash"` are still supported.
8585

0 commit comments

Comments
 (0)