File: outFilerootDirModuleNamesSystem.js

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (47 lines) | stat: -rw-r--r-- 1,121 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//// [tests/cases/conformance/es6/moduleExportsSystem/outFilerootDirModuleNamesSystem.ts] ////

//// [a.ts]
import foo from "./b";
export default class Foo {}
foo();

//// [b.ts]
import Foo from "./a";
export default function foo() { new Foo(); }


//// [output.js]
System.register("b", ["a"], function (exports_1, context_1) {
    "use strict";
    var a_1;
    var __moduleName = context_1 && context_1.id;
    function foo() { new a_1.default(); }
    exports_1("default", foo);
    return {
        setters: [
            function (a_1_1) {
                a_1 = a_1_1;
            }
        ],
        execute: function () {
        }
    };
});
System.register("a", ["b"], function (exports_2, context_2) {
    "use strict";
    var b_1, Foo;
    var __moduleName = context_2 && context_2.id;
    return {
        setters: [
            function (b_1_1) {
                b_1 = b_1_1;
            }
        ],
        execute: function () {
            Foo = class Foo {
            };
            exports_2("default", Foo);
            b_1.default();
        }
    };
});