4 ms·
You can only do so many compiler-y things in a dynamically typed language like Javascript. And even less of it within the context of a single file, unless you i
by 698969 3y ago
You can only do so many compiler-y things in a dynamically typed language like Javascript. And even less of it within the context of a single file, unless you implement a bundler (web jargon equivalent of linker). Otherwise by the time the run-of-the-mill bundler is done connecting parts of your component tree into a single file, so much of the high-level information of the component is lost that you can't really do much analysis on it.
At least that were the reasons I saw when I was thinking about the same. If anyone has ideas around it, please get in touch.
- mhh__ 3y agoBut with a svelte component it knows a lot about the state, inputs, outputs etc. The default paths should be pretty easy to analyze as long as you pick sensible defaults.