You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,16 @@ This allows old-style modules to `import` from new-style modules.
33
33
34
34
This provides the context that the module being loaded is a module, where in future this could be set by default.
35
35
36
+
## Implementation
37
+
38
+
An experimental implementation of this proposal is available at https://github.com/guybedford/node/tree/module-default, supporting NodeJS usage:
39
+
40
+
```
41
+
node --experimental-modules --module x.js
42
+
node --experimental-modules -m x.js
43
+
node --experimental-modules -m -e "export var hello = 'world'"
0 commit comments