frankwallis / plugin-typescript

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

support typings for any extension #164

Closed srolel closed 8 years ago

srolel commented 8 years ago

I always use .d.ts files for my css along with css-modules, for example. I don't see a reason for this restriction.

frankwallis commented 8 years ago

I hadn't thought of that it's an interesting approach, thanks. The reason the check was there was to stop it looking for typings when it has already found a typescript file, this enables compiling across multiple packages. I will update it to !isTypeScript(address) and add a test. Thanks for the PR.

frankwallis commented 8 years ago

I have released it in 5.2.6, let me know if there are any issues, dealing with different file extensions in systemjs/typescript can be quite problematic.