file
./strtable.ts
import * as self from './strtable';
export default self;
console.log(__filename, require.extensions);
cli
output
Expected behavior
should only once , even if .js exists
strtable.ts {
'.ts': [Function],
'.tsx': [Function],
'.js': [Function],
'.json': [Function],
'.node': [Function] }
Actual behavior:
will load self x2 ( .js + .ts )
strtable.js { '.js': [Function],
'.json': [Function],
'.node': [Function],
'.ts': [Function],
'.tsx': [Function] }
strtable.ts { '.js': [Function],
'.json': [Function],
'.node': [Function],
'.ts': [Function],
'.tsx': [Function] }
file
./strtable.ts
cli
output
Expected behavior
should only once , even if .js exists
Actual behavior:
will load self x2 ( .js + .ts )