Skip to content

Instantly share code, notes, and snippets.

@callumacrae
Created March 2, 2016 10:51
Show Gist options
  • Save callumacrae/b3f37c2e07fe2ad43f72 to your computer and use it in GitHub Desktop.
Save callumacrae/b3f37c2e07fe2ad43f72 to your computer and use it in GitHub Desktop.
require('./module1');
import './module2';
// Output will be "module two" followed by "module one"
console.log('module one');
console.log('module two');
@callumacrae
Copy link
Author

@export-mike: It's intentional! Check this out: tc39/ecma262#368

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment