-
Notifications
You must be signed in to change notification settings - Fork 801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript example shows the "not preferred" way? #935
Comments
The example was created in December, "preferred way" was found weeks ago. That is the answer. |
Typescript setup looks like not very clear, I think we have to improve the readme. |
I don't see why putting babel before typescript should be considered preferable. If you pass the typescript I don't know much about |
babel-after-ts might be the best way, as long it does not require babel7, but will not work with some boilerplates which don't let you specify dev/build tsconfigs. Lets assume that we just listing possible configs, and which one to use - is up to you. |
The readme suggests adding babel before typescript as the preferred way https://github.com/gaearon/react-hot-loader#typescript. I think everyone would agree, since this allows you to compile to es5 (es6 just isn't supported well enough yet, I imagine only a very small portion of devs are actually compiling straight to es6).
However, in the examples directory https://github.com/gaearon/react-hot-loader/tree/master/examples/typescript, this es6-only not-recommended configuration is what's shown.
It would be nice to have an example of the "recommended" configuration also.
Thanks!
The text was updated successfully, but these errors were encountered: