Compile vue components to plain dom
What problem does this feature solve?
In a huge application, there's some "shell code"(e.g. head of a list), are static and no need to be reactivity.Still, we use Vue SFC to write these components. Is there a way to compile these code plain dom? Then, assemble these dom with dom which vue generated like normal.
What does the proposed API look like?
xxx
// no scripts, not any states or events
If a template contains large amount of purely static nodes, they are already optimized into a static node that is created only once. Example
We are also exploring ways to optimize components that do not have state into cheaper runtime representations.
Closing since this is something we already do / will further improve on and the request is not specific enough to have clear action steps.