Skip to content

Commit 535a001

Browse files
author
Kanchalai Tanglertsampan
committed
Update baselines (3)
1 parent c0ac84f commit 535a001

File tree

453 files changed

+491
-41
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

453 files changed

+491
-41
lines changed

src/harness/unittests/compileOnSave.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ namespace ts.projectSystem {
520520

521521
const expectedEmittedFileName = "/a/b/f1.js";
522522
assert.isTrue(host.fileExists(expectedEmittedFileName));
523-
assert.equal(host.readFile(expectedEmittedFileName), `"use strict";\r\nfunction Foo() { return 10; }\r\nexports.Foo = Foo;\r\n`);
523+
assert.equal(host.readFile(expectedEmittedFileName), `"use strict";\r\nfunction Foo() { return 10; }\r\nexports.Foo = Foo;\r\nexports.__esModule = true;\r\n`);
524524
});
525525

526526
it("shoud not emit js files in external projects", () => {

tests/baselines/reference/declFileForExportedImport.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ exports.a = require("./declFileForExportedImport_0");
2121
var y = exports.a.x;
2222
exports.b = exports.a;
2323
var z = exports.b.x;
24+
exports.__esModule = true;
2425

2526

2627
//// [declFileForExportedImport_0.d.ts]

tests/baselines/reference/externalModuleQualification.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ var NavigateAction = (function () {
2828
};
2929
return NavigateAction;
3030
}());
31+
exports.__esModule = true;

tests/baselines/reference/externalModuleReferenceOfImportDeclarationWithExportModifier.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ define(["require", "exports"], function (require, exports) {
1414
function foo() { }
1515
exports.foo = foo;
1616
;
17+
exports.__esModule = true;
1718
});
1819
//// [externalModuleReferenceOfImportDeclarationWithExportModifier_1.js]
1920
define(["require", "exports", "externalModuleReferenceOfImportDeclarationWithExportModifier_0"], function (require, exports, file1) {

tests/baselines/reference/importDeclWithClassModifiers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ define(["require", "exports"], function (require, exports) {
1616
exports.b = x.c;
1717
exports.c = x.c;
1818
var b;
19+
exports.__esModule = true;
1920
});

tests/baselines/reference/importDeclWithDeclareModifier.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ var b: a;
1111
"use strict";
1212
exports.a = x.c;
1313
var b;
14+
exports.__esModule = true;

tests/baselines/reference/importDeclWithExportModifier.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ define(["require", "exports"], function (require, exports) {
1212
"use strict";
1313
exports.a = x.c;
1414
var b;
15+
exports.__esModule = true;
1516
});

tests/baselines/reference/importDeclWithExportModifierAndExportAssignment.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ export = x;
99
//// [importDeclWithExportModifierAndExportAssignment.js]
1010
"use strict";
1111
exports.a = x.c;
12+
exports.__esModule = true;

tests/baselines/reference/project/baseline/amd/decl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ define(["require", "exports"], function (require, exports) {
55
return { x: x, y: y };
66
}
77
exports.point = point;
8+
exports.__esModule = true;
89
});

tests/baselines/reference/project/baseline/node/decl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ function point(x, y) {
44
return { x: x, y: y };
55
}
66
exports.point = point;
7+
exports.__esModule = true;

0 commit comments

Comments
 (0)