c8r / x0

Document & develop React components without breaking a sweat
https://compositor.io/x0/
MIT License
1.71k stars 65 forks source link

Feature/typescript app template #96

Open tgolbs opened 6 years ago

tgolbs commented 6 years ago

I wanted to use x0 inside of my own typescript projects, but it kinda felt dirty to create a custom _app.js file instead of using TypeScript all along.

The changes i did to make this work are really basic.

The only problem i could see is, that the user must add ts-loader via a custom webpack.config.js. This is kind of contrary to the zero config approach of x0 but i think this is ok for such a quick win.

What do you think of this approach?