-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
By DesignDeprecated - use "Working as Intended" or "Design Limitation" insteadDeprecated - use "Working as Intended" or "Design Limitation" instead
Description
Consider this code:
import Test from 'test-file';
new Test();
currently it gets compiled to:
var test_file_1 = require('test-file');
new test_file_1.default();
what I would expect is this:
var Test = require('test-file').default;
new Test();
This doesn't fit with the design goals of Typescript. It also causes some problems like #6249 in tsx/jsx.
Any reason for it being the way it is?
Metadata
Metadata
Assignees
Labels
By DesignDeprecated - use "Working as Intended" or "Design Limitation" insteadDeprecated - use "Working as Intended" or "Design Limitation" instead