Skip to content

Commit a52ccff

Browse files
author
Kanchalai Tanglertsampan
committed
Update baseline adding of "__esModule"
1 parent e5cfe5c commit a52ccff

33 files changed

+33
-0
lines changed

tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const d1 = <NoOverload1 {...{goTo:"home"}} extra />; // goTo has type "home" |
4141
//// [file.jsx]
4242
define(["require", "exports", "react"], function (require, exports, React) {
4343
"use strict";
44+
exports.__esModule = true;
4445
function MainButton(props) {
4546
var linkProps = props;
4647
if (linkProps.goTo) {

tests/baselines/reference/tsxAttributeResolution15.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ var __extends = (this && this.__extends) || (function () {
2929
};
3030
})();
3131
var _this = this;
32+
exports.__esModule = true;
3233
var React = require("react");
3334
var BigGreeter = (function (_super) {
3435
__extends(BigGreeter, _super);

tests/baselines/reference/tsxDefaultAttributesResolution1.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var __extends = (this && this.__extends) || (function () {
2626
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2727
};
2828
})();
29+
exports.__esModule = true;
2930
var React = require("react");
3031
var Poisoned = (function (_super) {
3132
__extends(Poisoned, _super);

tests/baselines/reference/tsxDefaultAttributesResolution2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var __extends = (this && this.__extends) || (function () {
2626
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2727
};
2828
})();
29+
exports.__esModule = true;
2930
var React = require("react");
3031
var Poisoned = (function (_super) {
3132
__extends(Poisoned, _super);

tests/baselines/reference/tsxDefaultAttributesResolution3.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var __extends = (this && this.__extends) || (function () {
2626
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2727
};
2828
})();
29+
exports.__esModule = true;
2930
var React = require("react");
3031
var Poisoned = (function (_super) {
3132
__extends(Poisoned, _super);

tests/baselines/reference/tsxSpreadAttributesResolution1.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var __extends = (this && this.__extends) || (function () {
2626
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2727
};
2828
})();
29+
exports.__esModule = true;
2930
var React = require("react");
3031
var Poisoned = (function (_super) {
3132
__extends(Poisoned, _super);

tests/baselines/reference/tsxSpreadAttributesResolution10.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ var __extends = (this && this.__extends) || (function () {
3636
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3737
};
3838
})();
39+
exports.__esModule = true;
3940
var React = require("react");
4041
var Opt = (function (_super) {
4142
__extends(Opt, _super);

tests/baselines/reference/tsxSpreadAttributesResolution11.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ var __extends = (this && this.__extends) || (function () {
4444
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4545
};
4646
})();
47+
exports.__esModule = true;
4748
var React = require("react");
4849
var obj = {};
4950
var obj1 = {

tests/baselines/reference/tsxSpreadAttributesResolution12.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ var __extends = (this && this.__extends) || (function () {
4343
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4444
};
4545
})();
46+
exports.__esModule = true;
4647
var React = require("react");
4748
var obj = {};
4849
var obj1 = {

tests/baselines/reference/tsxSpreadAttributesResolution2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ var __extends = (this && this.__extends) || (function () {
3232
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3333
};
3434
})();
35+
exports.__esModule = true;
3536
var React = require("react");
3637
var Poisoned = (function (_super) {
3738
__extends(Poisoned, _super);

tests/baselines/reference/tsxSpreadAttributesResolution3.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ var __extends = (this && this.__extends) || (function () {
3434
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3535
};
3636
})();
37+
exports.__esModule = true;
3738
var React = require("react");
3839
var Poisoned = (function (_super) {
3940
__extends(Poisoned, _super);

tests/baselines/reference/tsxSpreadAttributesResolution4.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ var __extends = (this && this.__extends) || (function () {
4848
};
4949
})();
5050
var _this = this;
51+
exports.__esModule = true;
5152
var React = require("react");
5253
var Poisoned = (function (_super) {
5354
__extends(Poisoned, _super);

tests/baselines/reference/tsxSpreadAttributesResolution5.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ var __extends = (this && this.__extends) || (function () {
4646
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4747
};
4848
})();
49+
exports.__esModule = true;
4950
var React = require("react");
5051
var Poisoned = (function (_super) {
5152
__extends(Poisoned, _super);

tests/baselines/reference/tsxSpreadAttributesResolution6.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ var __extends = (this && this.__extends) || (function () {
3030
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3131
};
3232
})();
33+
exports.__esModule = true;
3334
var React = require("react");
3435
var TextComponent = (function (_super) {
3536
__extends(TextComponent, _super);

tests/baselines/reference/tsxSpreadAttributesResolution7.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ var __extends = (this && this.__extends) || (function () {
3737
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3838
};
3939
})();
40+
exports.__esModule = true;
4041
var React = require("react");
4142
var TextComponent = (function (_super) {
4243
__extends(TextComponent, _super);

tests/baselines/reference/tsxSpreadAttributesResolution8.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ var __extends = (this && this.__extends) || (function () {
3939
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4040
};
4141
})();
42+
exports.__esModule = true;
4243
var React = require("react");
4344
var obj = {};
4445
var obj1 = {

tests/baselines/reference/tsxSpreadAttributesResolution9.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ var __extends = (this && this.__extends) || (function () {
3737
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3838
};
3939
})();
40+
exports.__esModule = true;
4041
var React = require("react");
4142
var Opt = (function (_super) {
4243
__extends(Opt, _super);

tests/baselines/reference/tsxStatelessFunctionComponentOverload1.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const e6 = <TestingOptional y1 y3 y2={10} />
4343
//// [file.jsx]
4444
define(["require", "exports", "react"], function (require, exports, React) {
4545
"use strict";
46+
exports.__esModule = true;
4647
// OK
4748
var c1 = <OneThing yxx='ok'/>;
4849
var c2 = <OneThing yy={100} yy1="hello"/>;

tests/baselines/reference/tsxStatelessFunctionComponentOverload2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const c10 = <OneThing {...obj2} yy1="boo" />;
3636
//// [file.jsx]
3737
define(["require", "exports", "react"], function (require, exports, React) {
3838
"use strict";
39+
exports.__esModule = true;
3940
var obj = {
4041
yy: 10,
4142
yy1: "hello"

tests/baselines/reference/tsxStatelessFunctionComponentOverload4.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const e2 = <TestingOptional y1="hello" y2={1000} y3 />
3838
//// [file.jsx]
3939
define(["require", "exports", "react"], function (require, exports, React) {
4040
"use strict";
41+
exports.__esModule = true;
4142
var obj = {
4243
yy: 10,
4344
yy1: "hello"

tests/baselines/reference/tsxStatelessFunctionComponentOverload5.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const b8 = <MainButton data-format />; // incorrect type for specified hyphanat
6060
//// [file.jsx]
6161
define(["require", "exports", "react"], function (require, exports, React) {
6262
"use strict";
63+
exports.__esModule = true;
6364
var obj0 = {
6465
to: "world"
6566
};

tests/baselines/reference/tsxStatelessFunctionComponentOverload6.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const b12 = <MainButton data-format="Hello world" />
6161
//// [file.jsx]
6262
define(["require", "exports", "react"], function (require, exports, React) {
6363
"use strict";
64+
exports.__esModule = true;
6465
var obj = {
6566
children: "hi",
6667
to: "boo"

tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments1.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ let i = <InferParamComponent values={[1, 2, 3, 4]} selectHandler={(val) => { }}
3434
//// [file.jsx]
3535
define(["require", "exports", "react"], function (require, exports, React) {
3636
"use strict";
37+
exports.__esModule = true;
3738
// OK
3839
function Baz(key1, value) {
3940
var a0 = <ComponentWithTwoAttributes key1={key1} value={value}/>;

tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ let i = <InferParamComponent values={[1, 2, 3, 4]} selectHandler={(val: string)
3636
//// [file.jsx]
3737
define(["require", "exports", "react"], function (require, exports, React) {
3838
"use strict";
39+
exports.__esModule = true;
3940
// Error
4041
function Bar(arg) {
4142
var a1 = <ComponentSpecific1 {...arg} ignore-prop={10}/>;

tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments3.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ function createLink(func: (a: number)=>void) {
2727
//// [file.jsx]
2828
define(["require", "exports", "react"], function (require, exports, React) {
2929
"use strict";
30+
exports.__esModule = true;
3031
// OK
3132
function Baz(arg1, arg2) {
3233
var a0 = <OverloadComponent {...arg1} a="hello" ignore-prop/>;

tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function Baz<T extends {b: number}, U extends {a: boolean, b:string}>(arg1: T, a
1515
//// [file.jsx]
1616
define(["require", "exports", "react"], function (require, exports, React) {
1717
"use strict";
18+
exports.__esModule = true;
1819
// Error
1920
function Baz(arg1, arg2) {
2021
var a0 = <OverloadComponent a={arg1.b}/>;

tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments5.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function Bar<T extends { prop: number }>(arg: T) {
2323
//// [file.jsx]
2424
define(["require", "exports", "react"], function (require, exports, React) {
2525
"use strict";
26+
exports.__esModule = true;
2627
function createComponent(arg) {
2728
var a1 = <Component {...arg}/>;
2829
var a2 = <Component {...arg} prop1/>;

tests/baselines/reference/tsxUnionElementType1.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ var SFCComp = SFC1 || SFC2;
1515

1616
//// [file.js]
1717
"use strict";
18+
exports.__esModule = true;
1819
var React = require("react");
1920
function SFC1(prop) {
2021
return React.createElement("div", null, "hello");

tests/baselines/reference/tsxUnionElementType2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ var SFCComp = SFC1 || SFC2;
1515

1616
//// [file.js]
1717
"use strict";
18+
exports.__esModule = true;
1819
var React = require("react");
1920
function SFC1(prop) {
2021
return React.createElement("div", null, "hello");

tests/baselines/reference/tsxUnionElementType3.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ var __extends = (this && this.__extends) || (function () {
4949
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5050
};
5151
})();
52+
exports.__esModule = true;
5253
var React = require("react");
5354
var RC1 = (function (_super) {
5455
__extends(RC1, _super);

tests/baselines/reference/tsxUnionElementType4.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ var __extends = (this && this.__extends) || (function () {
4848
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4949
};
5050
})();
51+
exports.__esModule = true;
5152
var React = require("react");
5253
var RC1 = (function (_super) {
5354
__extends(RC1, _super);

tests/baselines/reference/tsxUnionElementType5.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ let b = <SFC2AndEmptyComp x />
2323

2424
//// [file.js]
2525
"use strict";
26+
exports.__esModule = true;
2627
var React = require("react");
2728
function EmptySFC1() {
2829
return React.createElement("div", null, "hello");

tests/baselines/reference/tsxUnionElementType6.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ let d = <SFC2AndEmptyComp data-prop />;
2626

2727
//// [file.js]
2828
"use strict";
29+
exports.__esModule = true;
2930
var React = require("react");
3031
function EmptySFC1() {
3132
return React.createElement("div", null, "Hi");

0 commit comments

Comments
 (0)