In Fresh we do add some properties automatically to certain elements under the hood, like marking a link as "active" when it matches the current route among other things. For that we need to materialize the full vnode to know what kind of element were dealing with and what kind of other props it has.
To address this, this PR adds a new option to the transform which allows the user to pass an array of element names like ["a", "img"] which should be excluded from being be precompiled by the transform. Plan is to add a new option in deno.json#compilerOptions for this.
In Fresh we do add some properties automatically to certain elements under the hood, like marking a link as "active" when it matches the current route among other things. For that we need to materialize the full
vnode
to know what kind of element were dealing with and what kind of other props it has.To address this, this PR adds a new option to the transform which allows the user to pass an array of element names like
["a", "img"]
which should be excluded from being be precompiled by the transform. Plan is to add a new option indeno.json#compilerOptions
for this.