Skip to content

Commit dafa732

Browse files
authored
Add semicolons to import helpers (microsoft#22212)
1 parent 4b3d3bc commit dafa732

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/compiler/transformers/module/module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
17281728
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
17291729
result["default"] = mod;
17301730
return result;
1731-
}`
1731+
};`
17321732
};
17331733

17341734
// emit helper for `import Name from "foo"`
@@ -1738,6 +1738,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
17381738
text: `
17391739
var __importDefault = (this && this.__importDefault) || function (mod) {
17401740
return (mod && mod.__esModule) ? mod : { "default": mod };
1741-
}`
1741+
};`
17421742
};
17431743
}

tests/baselines/reference/esModuleInterop.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ fs;
2222
"use strict";
2323
var __importDefault = (this && this.__importDefault) || function (mod) {
2424
return (mod && mod.__esModule) ? mod : { "default": mod };
25-
}
25+
};
2626
var __importStar = (this && this.__importStar) || function (mod) {
2727
if (mod && mod.__esModule) return mod;
2828
var result = {};
2929
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
3030
result["default"] = mod;
3131
return result;
32-
}
32+
};
3333
exports.__esModule = true;
3434
var hybrid_1 = require("./hybrid");
3535
var path_1 = __importDefault(require("./path"));

tests/baselines/reference/esModuleInteropImportCall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
1717
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
1818
result["default"] = mod;
1919
return result;
20-
}
20+
};
2121
Promise.resolve().then(function () { return __importStar(require("./foo")); }).then(function (f) {
2222
f["default"];
2323
});

tests/baselines/reference/esModuleInteropImportNamespace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
1818
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
1919
result["default"] = mod;
2020
return result;
21-
}
21+
};
2222
exports.__esModule = true;
2323
var foo = __importStar(require("./foo"));
2424
foo["default"];

tests/baselines/reference/esModuleInteropNamedDefaultImports.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ exports.Bar = Bar;
3131
"use strict";
3232
var __importDefault = (this && this.__importDefault) || function (mod) {
3333
return (mod && mod.__esModule) ? mod : { "default": mod };
34-
}
34+
};
3535
var __importStar = (this && this.__importStar) || function (mod) {
3636
if (mod && mod.__esModule) return mod;
3737
var result = {};
3838
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
3939
result["default"] = mod;
4040
return result;
41-
}
41+
};
4242
exports.__esModule = true;
4343
var mod_1 = __importDefault(require("./mod"));
4444
var mod_2 = __importDefault(require("./mod"));

tests/baselines/reference/esModuleIntersectionCrash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
2020
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
2121
result["default"] = mod;
2222
return result;
23-
}
23+
};
2424
exports.__esModule = true;
2525
var mod = __importStar(require("./mod"));
2626
mod.a;

0 commit comments

Comments
 (0)