andykais / scrape-pages

generalized scraper using a single instruction set for any site that can be statically scraped
https://scrape-pages.js.org
MIT License
6 stars 2 forks source link

Remove webpack? #48

Open andykais opened 4 years ago

andykais commented 4 years ago

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.

andykais commented 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:

andykais commented 4 years ago

api-extractor may become a viable option once https://github.com/microsoft/rushstack/issues/1029 is implemented