DEV Community

Discussion on: Usando relative paths com TypeScript

Collapse
 
turutupa profile image
Turutupa

After doing that, how the heck do you compile it then to JS and make the JS files use the relative path?

Cause after compilation, let's say the Hello component from 'components/hello' will be the same in the JS file, but in that case it will not understand where the root folder is. In fact it will search for a module called components/hello or something like that.

Collapse
 
felipesousa profile image
Felipe Sousa

on compile time, the value of "baseUrl" will be set as a prefix path in all relative imports