Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(compiler-vapor): add jsx support for setText and createTextNode #12893

Open
wants to merge 3 commits into
base: vapor
Choose a base branch
from

Conversation

zhiyuanzmj
Copy link
Contributor

@zhiyuanzmj zhiyuanzmj commented Feb 17, 2025

For jsx-vapor, createTextNode and setText support render DOM, so they need to be compiled like this:

setTextNode( () => (foo) , ' ', () => (dom) )

This is runtime code: https://github.com/unplugin/unplugin-vue-jsx-vapor/blob/main/packages/unplugin/src/core/helper/code.js

Copy link

netlify bot commented Feb 17, 2025

Deploy Preview for vapor-repl ready!

Name Link
🔨 Latest commit 10bcbe4
🔍 Latest deploy log https://app.netlify.com/sites/vapor-repl/deploys/67b2ef3aecbd8b00081ccb43
😎 Deploy Preview https://deploy-preview-12893--vapor-repl.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@edison1105 edison1105 added the scope: vapor related to vapor mode label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: vapor related to vapor mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants