Skip to content

Commit 185ca9c

Browse files
littledanMylesBorins
authored andcommitted
Clarifications from Dan Clark's reviews
1 parent 47bfc18 commit 185ca9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Here, a single string is permitted to describe a single module attribute, as dis
3838

3939
Although unspecified in the module attributes proposal, this intention of the proposal champions is that this string would be interpreted as the module type, as shown in the following examples.
4040

41-
The JavaScript standard would basically be responsible for passing the options bag up to the host environment, which could then decide how to interpret it. Issues [#24](https://github.com/littledan/proposal-module-attributes/issues/24) and [#25](https://github.com/littledan/proposal-module-attributes/issues/25) discuss the Web and Node.js feature and semantic requirements respectively, and issue [#10](https://github.com/littledan/proposal-module-attributes/issues/10) discusses how to allow different JavaScript environments to have interoperability.
41+
The JavaScript standard would basically be responsible for passing the string up to the host environment, which could then decide how to interpret it. Issues [#24](https://github.com/littledan/proposal-module-attributes/issues/24) and [#25](https://github.com/littledan/proposal-module-attributes/issues/25) discuss the Web and Node.js feature and semantic requirements respectively, and issue [#10](https://github.com/littledan/proposal-module-attributes/issues/10) discusses how to allow different JavaScript environments to have interoperability.
4242

4343
### import statements
4444

@@ -48,6 +48,8 @@ The ImportDeclaration would allow a string provided at the end of an import stat
4848
import json from "./foo.json" as "json";
4949
```
5050

51+
The host environment would determine the interpretation of `"json"`. In the Web and similar environments, `as "json"` would be required to load JSON modules, whereas no `as` syntax would be used for JavaScript modules.
52+
5153
### dynamic import()
5254

5355
The `import()` pseudo-function would allow the string as its second argument.

0 commit comments

Comments
 (0)