How to append file extensions .js to typescript? -


in typescript write path without extension -

import someclass './some-class';   

how make after compilation, these paths contain extension .js ? builds project using gulp-typescript.

these paths contain extension .js

you don't need to. runtime systems (e.g. node, requirejs, systemjs) automatically assume .js extension if require js file.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

Delphi 7 and decode UTF-8 base64 -