Closed rwjblue closed 7 years ago
I'm pretty sure this won't work as expected. I think broccoli-typescript-compiler, at some point, clobbers js files (because tsc obviously can handle js files given that option's availability). I think it only appears to be working because of this line.
I experienced this clobbering most recently in @glimmer/application when I had to bundle the precompiled main template in with the package. I had to resort to compiling the template to a .ts
extension to get it to make it through the compiler, despite using the allowJs
option.
Linking this issue: https://github.com/tildeio/broccoli-typescript-compiler/issues/32
Yep, I agree. Definitely something fishy going on...
I highly doubt you want "allowJs": true
which means that you want typescript to compile your js and output it.
@krisselden That is what we want. We fixed the problem by compiling the hbs to .ts
files (instead of to .js
) so they don't get clobbered in broccoli-typescript-compiler.
Our pipeline actually includes
*.js
files (we transpile*.hbs
->*.js
for example).