Re:Web frameworks are transforming from runtime libraries in...
by rich_harris on Monday September 11, 2017 @09:56AM
(#15218496)
Svelte does now offer an option to compile directly to web components, though it's experimental at this time. You could give StencilJS a go - it's web components through and through, and uses Typescript.
Re:Web frameworks are transforming from runtime libraries in...
by yesimahuman on Monday September 11, 2017 @09:56AM
(#15218500)
This is how we're approaching it with Stencil: https://stenciljs.com/
* Pervasively typed with TypeScript, written in TypeScript, completely first-class. (It is very easy to consume TypeScript base code from JavaScript, but tacking types onto something written without them almost always yields a much lesser experience.)
* Output standards-compliant web components by default. (Perhaps with room to also output some other variation of component, if there is some API aspect where that helps.)
(Distraction for another day: I think the future of SPA development will be web components at the widget/component level, while application frameworks start evolving upward to provide more features around building applications - because there is less for them to do around building components.)