Created
March 2, 2016 10:51
-
-
Save callumacrae/b3f37c2e07fe2ad43f72 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require('./module1'); | |
| import './module2'; | |
| // Output will be "module two" followed by "module one" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log('module one'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log('module two'); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@export-mike: It's intentional! Check this out: tc39/ecma262#368