computmaxer / karma-jspm

Other
74 stars 52 forks source link

jspm 0.17 beta: main entry test files not transpiling JSX #143

Closed m-a-r-c-e-l-i-n-o closed 8 years ago

m-a-r-c-e-l-i-n-o commented 8 years ago

Not sure if this is a jspm beta bug, a configuration issue or a karma-jspm issue, was hoping someone could shed some light. https://github.com/jspm/jspm-cli/issues/1671

edrex commented 8 years ago

how did you work around this @m-a-r-c-e-l-i-n-o? I haven't yet found a way to use JSX in tests.

m-a-r-c-e-l-i-n-o commented 8 years ago

@edrex I gave a brief explanation on what was wrong. Basically, I left the configuration as it was and placed my test folder inside the my app folder (i.e. src), and it transpiled along with the my other app files. Do any of your files transpile?

edrex commented 8 years ago

Thanks @m-a-r-c-e-l-i-n-o. I eventually got the test files to JSX transform by adding a meta key entry for them. Not sure if that should have gone inside the packages key instead, but it got me unstuck.

m-a-r-c-e-l-i-n-o commented 8 years ago

@guybedford ^^ is this a good way to go about adding more files to the JSX transform?

guybedford commented 8 years ago

Yes that's a good approach!