frankwallis / plugin-typescript

TypeScript loader for SystemJS
MIT License
248 stars 47 forks source link

support TS, TSX, JS, JSX in same directory #172

Closed mavericken closed 8 years ago

mavericken commented 8 years ago

Allows plugin-typescript to try file extensions for TS, TSX, JS, JSX in a single directory

mavericken commented 8 years ago

Thinking about it more, I realized there will be complaints if we don't exactly match TypeScript's resolution strategy, which is quite complicated and varies according to configuration:

https://www.typescriptlang.org/docs/handbook/module-resolution.html

My change covers the only the most basic needs, but something much more detailed would be required to accurately match the TypeScript compiler in all cases. Also a hot-reload solution I was using stopped working with this change. Perhaps someone else knows a better way to solve this.