News for hackers. Stuff that matters.
Re:Svelte – A UI framework that compiles into tiny standalon... by notduncansmith on Wednesday November 30, 2016 @03:00PM (#13074173)
> Unfortunately, a compiler wouldn't be able to generate a good picture of the structure of a JSX component – because it's 'just JS' it resists the kind of meaningful static analysis that Svelte can take advantage of.

Can you elaborate more on this? It seems like passing the compiled JS through Esprima and checking the call graph would give you a fairly detailed structural representation of a JSX UI. You may need to do some graph stitching across module boundaries, haven't tried this myself.

What static analysis does Svelte provide?

There are no comments on this comment yet.