You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just wanted to put it out there that it is technically possible to also make the <template> section (or the render function really, depending on how you look at it) debuggable.
You would need to ensure the generated render AST is not one big return statement, but instead has separate lines corresponding to the individual elements in <template>, and then maintain a lineno mapping while generating the AST statements.
This is how Vue does it, too!
I wouldn't recommend diving into this right away but just wanted to make you aware of the possibility.
The text was updated successfully, but these errors were encountered:
I just wanted to put it out there that it is technically possible to also make the
<template>
section (or therender
function really, depending on how you look at it) debuggable.You would need to ensure the generated render AST is not one big return statement, but instead has separate lines corresponding to the individual elements in
<template>
, and then maintain a lineno mapping while generating the AST statements.This is how Vue does it, too!
I wouldn't recommend diving into this right away but just wanted to make you aware of the possibility.
The text was updated successfully, but these errors were encountered: