jxnblk / mdx-go

:zap: Lightning fast MDX-based dev server for progressive documentation

Home Page:https://mdx-go.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript support?

arvigeus opened this issue · comments

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?

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

@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'

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