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): slot outlet #182

Merged
merged 16 commits into from
May 2, 2024
Merged

Conversation

LittleSound
Copy link
Member

Related: #154
Related runtime PR: #170

Copy link

netlify bot commented Apr 19, 2024

Deploy Preview for vapor-template-explorer ready!

Name Link
🔨 Latest commit fd25071
🔍 Latest deploy log https://app.netlify.com/sites/vapor-template-explorer/deploys/6633a23c988abc000843fc8f
😎 Deploy Preview https://deploy-preview-182--vapor-template-explorer.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.

Copy link

netlify bot commented Apr 19, 2024

Deploy Preview for vapor-repl ready!

Name Link
🔨 Latest commit fd25071
🔍 Latest deploy log https://app.netlify.com/sites/vapor-repl/deploys/6633a23cffdaee0008b6dc29
😎 Deploy Preview https://deploy-preview-182--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.

Copy link

github-actions bot commented Apr 19, 2024

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 80.1 kB 28.2 kB 24.7 kB
compiler-vapor.global.prod.js 54.2 kB (+1.28 kB) 18.5 kB (+394 B) 16.8 kB (+371 B)
runtime-dom.global.prod.js 96.5 kB 36.4 kB 32.8 kB
runtime-vapor.global.prod.js 45.2 kB 16.9 kB 15.5 kB
vue-vapor.global.prod.js 96.7 kB (+1.22 kB) 33.9 kB (+397 B) 30.6 kB (+314 B)
vue.global.prod.js 154 kB 55.8 kB 49.8 kB

Usages

Name Size Gzip Brotli
createApp 56.9 kB 21.8 kB 19.9 kB
createSSRApp 60.3 kB 23.2 kB 21.2 kB
defineCustomElement 59.2 kB 22.6 kB 20.6 kB
vapor 45.6 kB 16.9 kB 15.5 kB
overall 70.7 kB 26.9 kB 24.3 kB

@LittleSound LittleSound force-pushed the feat/compiler-vapor-slot-outlet branch 3 times, most recently from 0604691 to f183394 Compare April 21, 2024 05:22
@LittleSound LittleSound marked this pull request as ready for review April 21, 2024 05:24
@LittleSound LittleSound requested a review from sxzz April 27, 2024 04:50
@sxzz sxzz force-pushed the feat/compiler-vapor-slot-outlet branch 3 times, most recently from 31e2c91 to 355d15f Compare April 28, 2024 14:07
Copy link
Member

@sxzz sxzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LittleSound
Copy link
Member Author

LittleSound commented Apr 29, 2024

When using v-show, there will be no to throw error, this behavior is consistent with compiler-core.
Do we need to fix this situation separately in vapor?

@sxzz
Copy link
Member

sxzz commented Apr 29, 2024

@LittleSound LittleSound force-pushed the feat/compiler-vapor-slot-outlet branch 2 times, most recently from babfe1b to 25ff0df Compare May 1, 2024 07:56
@LittleSound
Copy link
Member Author

You are right, I was sloppy 🤪. fixed.

@LittleSound LittleSound force-pushed the feat/compiler-vapor-slot-outlet branch from e1478e2 to 1609cda Compare May 2, 2024 10:41
Comment on lines 22 to 23
push(NEWLINE, `const n${id} = `)
push(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two statement can be merged

@sxzz
Copy link
Member

sxzz commented May 2, 2024

<div>
	<div v-show="false" />
	<slot :a="b" />
</div>

Emitted an error, but not expected.

@sxzz
Copy link
Member

sxzz commented May 2, 2024

All issues are fixed.

@sxzz sxzz merged commit 2b0def3 into main May 2, 2024
11 checks passed
@sxzz sxzz deleted the feat/compiler-vapor-slot-outlet branch May 2, 2024 14:26
@LittleSound LittleSound mentioned this pull request May 8, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants