-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: TransformsRelates to the public transform APIRelates to the public transform APIFixedA PR has been merged for this issueA PR has been merged for this issue
Description
Expected:
//// [es5ModuleInternalNamedImports.ts]
export module M {
// variable
export var M_V = 0;
....
// Reexports
export {M_V as v};
....
}
//// [es5ModuleInternalNamedImports.js]
define(["require", "exports"], function (require, exports) {
"use strict";
var M;
(function (M) {
// variable
M.M_V = 0;
....
// Reexports
})(M = exports.M || (exports.M = {}));
});
Actual:
//// [es5ModuleInternalNamedImports.ts]
export module M {
// variable
export var M_V = 0;
....
// Reexports
export {M_V as v};
}
//// [es5ModuleInternalNamedImports.js]
define(["require", "exports"], function (require, exports) {
"use strict";
var M;
(function (M) {
// variable
M.M_V = 0;
// Reexports
export { M_V as v } from ;
})(M = exports.M || (exports.M = {}));
});
Failed tests:
- tests\cases\compiler\es5ModuleInternalNamedImports.ts
- tests/cases/compiler/exportDeclarationInInternalModule.ts
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: TransformsRelates to the public transform APIRelates to the public transform APIFixedA PR has been merged for this issueA PR has been merged for this issue