Last active
December 16, 2015 01:29
-
-
Save samth/5355676 to your computer and use it in GitHub Desktop.
This file contains 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
// A.js | |
import y from "B"; | |
console.log("a"); | |
export var x; | |
// B.js | |
import z from "C"; | |
console.log("b"); | |
export var y; | |
// C.js | |
import x from "A"; | |
console.log("c"); | |
export var z; | |
/*** Gets transformed into: ***/ | |
module "A" { | |
import y from "B"; | |
console.log("a"); | |
export var x; | |
} | |
module "B" { | |
import z from "C"; | |
console.log("b"); | |
export var y; | |
} | |
export module "C" { | |
import x from "A"; | |
console.log("c"); | |
export var z; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment