Created
September 10, 2019 07:55
-
-
Save cblanquera/543f11ff6eee8855cd4ae329e80c4893 to your computer and use it in GitHub Desktop.
ES6 + Node import always ran first
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('bar') |
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
$ node --experimental-modules foo.mjs |
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('foo') | |
import './bar.mjs' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Results: