V
V
vasIvas2015-08-20 18:22:36
typescript
vasIvas, 2015-08-20 18:22:36

How to force typescript to add extensions to module paths?

I needed to make a utility for myself and the choice fell on pixijs + typescript.
And so I was disappointed that it still does not support import like in es6
when compiling to es5, that I decided to compile it to es6, and then to es5
using babel. But there is one catch, in the end result System.js
does not see files without extensions. Can I somehow specify in the settings that
either ts attribute them or systemjs loads them without an extension?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-08-20
Protko @Fesor

does not see files without extensions

Read the systemjs configuration doc
https://github.com/systemjs/systemjs/blob/master/d...
Who is he"? https://github.com/Microsoft/TypeScript/issues/2242

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question