wagerfield / nuxt-typescript

TypeScript module for Nuxt
MIT License
90 stars 11 forks source link

fix: tsx in sfc #5

Closed clarkdo closed 6 years ago

clarkdo commented 6 years ago

Fix https://github.com/nuxt/nuxt.js/issues/3256#issuecomment-392018898

wagerfield commented 6 years ago

Thanks so much for this @clarkdo! Pulled your updates, simplifying things further and pushed to NPM nuxt-typescript@0.9.0 🎉

The only thing that remains is having Nuxt compile .ts and .tsx components in the pages directory.

I have created a couple of pages (example/pages/ts.ts and example/pages/tsx.tsx). If you are able to make the necessary updates to Nuxt so that pages work with these file extensions, that would be awesome—then I can publish 1.0.0 and perhaps add it to the official @nuxtjs modules?