denoland / fresh

The next-gen web framework.
https://fresh.deno.dev
MIT License
12.05k stars 607 forks source link

feat: Add option to precompile transform to prevent certain props from being precompiled #2540

Open marvinhagemeister opened 1 week ago

marvinhagemeister commented 1 week ago

Plugins that previously relied on always being able to intercept options.vnode won't work with the precompile transform as the point of that is to not create vnode's in the first place. We should have an option to enforce certain properties like class and className to bypass precompilation and always be treated as dynamic. That way they can be intercepted via options.attr.