-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.RescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Milestone
Description
TypeScript Version: 3.7.3
Search Terms:
esModuleInterop export default
Code (javascript)
index.js
export {
default as myFunction
} from 'somewhere';Expected behavior:
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
define(["require", "exports", "somewhere"], function (require, exports, somewhere_1) {
"use strict";
exports.__esModule = true;
exports.myFunction = __importDefault(somewhere_1)["default"];
});Actual behavior:
define(["require", "exports", "somewhere"], function (require, exports, somewhere_1) {
"use strict";
exports.__esModule = true;
exports.myFunction = somewhere_1["default"];
});Compiler options:
{
"compilerOptions": {
"outDir": "./out",
"allowJs": true,
"checkJs": false,
"module": "amd",
"esModuleInterop": true,
"allowSyntheticDefaultImports": false
},
"include": [
"index.js"
]
}Metadata
Metadata
Assignees
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.RescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone