Any plan to add typescript support? just curious.
Hello!
Typescript is great, but not everyone uses it. It likely won't be added as a high level option in nwb for some time, unless @insin falls for it 鉂わ笍 馃槈 .
For now, you should be able to add the typescript loader to nwb.config.js to achieve integration in a project.
Let me know how it goes. I'll close the issue for now.
For anyone looking...
I tried this and found this config to work for me.
Added dependencies, added tsconfig.json and tslint.json and converted the index.js files in src and demo/src to .tsx
nwb build and serve both work, but serve lost its hot-reload. It does watch and re-transpile, but needs a page refresh.
@Gregor1971: How do you do for build-react-component?
I didn't get that deep with typescript and nwb. I ended up building up an odd boilerplate with react-native-web and chose to go with flow for now.
I'd like a top level, out of the box, typescript support option. :)
Most helpful comment
I'd like a top level, out of the box, typescript support option. :)