jxnblk / mdx-go

:zap: Lightning fast MDX-based dev server for progressive documentation
https://mdx-go.now.sh
MIT License
364 stars 27 forks source link

Typescript support? #28

Closed arvigeus closed 5 years ago

arvigeus commented 5 years ago

I tried to import a tsx/ts component, it didn't work, and couldn't figure out how to make it work. Do you think this should be supported by default?

jxnblk commented 5 years ago

I don't use TS and don't plan on adding support for it while this is in beta – I think you might be able to use a TS webpack loader with a custom config though YMMV

eeegor commented 5 years ago

@arvigeus as a quick hack: you could import from the compiled .js from your dist or build folder e.g.

import { Button } from '../dist/Button'
holic commented 3 years ago

Just want to re-up this and see if ya'll are interested in adding Typescript support.