w00t
SCSWC Community
•Created by w00t on 11/28/2024 in #questions
how to migrate from visit_mut_with to Pass?
that worked, thank you very much @kdy1 !
https://github.com/QwikDev/qwik/pull/7108/files#diff-06833470209cc7a65129df714c87d8de87c2ef2a0a13226187153ec7b9f40ba4
4 replies
SCSWC Community
•Created by w00t on 8/1/2024 in #questions
how can I mark a context?
Me and copilot figured it out 😎 I'll drop the url soon
6 replies
SCSWC Community
•Created by w00t on 8/1/2024 in #questions
how can I mark a context?
I cannot make it work 😭 . Sorry I'm a Rust newbie. It doesn't let me use the same mutable hashset in two visitors.
Any hints on how I could restructure this?
ctd
6 replies
SCSWC Community
•Created by w00t on 7/20/2024 in #questions
wasm build uses old swc libraries?
Thank you so much for your help, it works now!
The wasm build was because the cargo workspace was misconfigured and it had old dependencies.
6 replies
SCSWC Community
•Created by w00t on 7/20/2024 in #questions
wasm build uses old swc libraries?
Hmm, that upgraded several swc packages from .0 to .1, but now it no longer compiles:
6 replies
SCSWC Community
•Created by w00t on 7/19/2024 in #questions
How can I rewrite this code for the moved SyntaxContext?
yes it works now 🙂
5 replies
SCSWC Community
•Created by w00t on 7/19/2024 in #questions
How can I rewrite this code for the moved SyntaxContext?
hmm that will basically kill all import statements.
I think I figured out how it works. It gets used here:
https://github.com/QwikDev/qwik/blob/b0802ca6dc448a82454dfba6b46f7392e0401c05/packages/qwik/src/optimizer/core/src/parse.rs#L334-L361
First it marks all top-level statements in the module. Then it simplifes, which will remove all unused statements and assignments but leave possibly impure expressions.
Anything that was simplified and moved to toplevel will not have been marked, and if they are function calls/new constructions, they will be forcibly removed.
So I only need to mark top level call/new expressions, not all expressions. Hmm.
5 replies
SCSWC Community
•Created by w00t on 7/19/2024 in #questions
what happened with swc_ecmascript::visit::visit_expr?
aha ok, I did find that page but couldn't interpret the results from the search. Thanks! Newbie here 🙂
8 replies
SCSWC Community
•Created by w00t on 7/19/2024 in #questions
what happened with swc_ecmascript::visit::visit_expr?
Can I ask you how you found this? I searched for "swc visit_expr" and found only outdated links
8 replies
SCSWC Community
•Created by w00t on 7/19/2024 in #questions
what happened with swc_ecmascript::visit::visit_expr?
ah excellent, thanks!
8 replies
SCSWC Community
•Created by w00t on 3/11/2024 in #questions
How to replace typescript::strip_with_jsx
or does it leave tags unchanged and you need to add the tsx transform to do both? Sorry I'm new to Rust and I'm trying to improve the Qwik optimizer
6 replies
SCSWC Community
•Created by w00t on 3/11/2024 in #questions
How to replace typescript::strip_with_jsx
@kdy1 could I just have a short hint 🙏 ? I looked at the typescript example and it doesn't explain how to leave jsx tags unchanged nor how to do decorators
6 replies
SCSWC Community
•Created by w00t on 3/11/2024 in #questions
How to replace typescript::strip_with_jsx
and related, I can't figure out how to enable decorator transform 😕
6 replies
SCSWC Community
•Created by w00t on 3/11/2024 in #questions
How to replace typescript::strip_with_jsx
Or does strip just work?
6 replies