Open andykais opened 4 years ago
update: we are stuck with custom typescript transformers no matter what, since we are using ts specific features like path aliases and typescript-is. We have two options to get proper typescript types emitted by this library.
Stick with webpack:
Use typescript only:
mochapack
is obviously tied to webpack)
ttypescript
everywhere (unless we get https://github.com/microsoft/TypeScript/issues/14419 someday)api-extractor may become a viable option once https://github.com/microsoft/rushstack/issues/1029 is implemented
We can feasibly replace webpack with babel. This has a few benefits:
This would mean no more loader support, so we would need to do #42 and use something like babel-plugin-preval to handle nearley's grammar files.
A note that ideally our only compiler would be typescript. This would only be doable if typescript provided a proper compiler api to handle the above interesting modules &
typescript-is
. It does not currently have that, so we need either babel or webpack.