Matheus Cardoso 🇺🇦
cardo.so
Matheus Cardoso 🇺🇦
@cardo.so
Reposted by Matheus Cardoso 🇺🇦
I take no joy reporting that this optimization boosts our type validation code performance by up to 2x.
November 28, 2024 at 10:59 PM
Reposted by Matheus Cardoso 🇺🇦
Pro tip: Don't write your #TypeScript union types by hand, use a Type Catalog instead!

Why are Type Catalogs better?

Find out in the thread 🧵 👇
February 22, 2025 at 5:03 PM
Reposted by Matheus Cardoso 🇺🇦
Here is another reason I like Type Catalogs.

They can easily be transformed with Mapped Types!

Full code snippet in thread 🧵👇
February 23, 2025 at 4:26 PM
Reposted by Matheus Cardoso 🇺🇦
Dang if @vite.dev Plus has all this, can’t wait for Vite Plus Pro Max
March 14, 2025 at 1:52 PM
Reposted by Matheus Cardoso 🇺🇦
Accessibility doesn't only help a small group of people. Accessibility helps everyone
January 24, 2025 at 1:44 PM
Reposted by Matheus Cardoso 🇺🇦
I setup my GitHub sponsors not long ago but didn't really mention it anywhere. If you appreciate what I do, these sponsorships do help a lot 🙏
My focus this year is all over like every year 😅 (e18e, chai, tinylibs, chokidar, vueuse, and much more). But I will keep on top of them all
Sponsor @43081j on GitHub Sponsors
Maintainer of chai, parse5, various eslint plugins, & more. One of the e18e.dev leads. Core contributor to lit and modernweb.
github.com
March 4, 2025 at 5:07 PM
@socket.dev how can I fix this? 😮‍💨

It's literally vite's convention for plugins: vite.dev/guide/api-pl...
March 6, 2025 at 4:59 PM
Reposted by Matheus Cardoso 🇺🇦
I stand with Ukraine and the truth that Russia is an invader.
I stand with Ukraine and the truth that Russia is an invader.
I stand with Ukraine and the truth that Russia is an invader.
March 2, 2025 at 2:16 PM
Reposted by Matheus Cardoso 🇺🇦
Слава Україні
February 28, 2025 at 10:47 PM
Reposted by Matheus Cardoso 🇺🇦
Setting hover state in React components is so 2013. You can set hover state with CSS variables and can skip all those JS re-renders. 🤓
February 28, 2025 at 12:28 PM
All the many other problems aside, CoderByte doesn't do any sanitization of logs before it hits their "in-browser" console. Not even HTML. Yes, it will display anything, buttons, iframes, you name it, and sometimes it will crash and burn. It's funny, but sad that it's used to evaluate candidates.
February 27, 2025 at 9:57 PM
Reposted by Matheus Cardoso 🇺🇦
This is nice, we should add something like this to Lit!

I wonder if there's an opportunity for a WCCG community protocol to use common performance markers?
February 25, 2025 at 2:28 AM
This is why I love contributing to Open Source: My PR adding support for Chrome DevTools's Performance Panel Extensions is now GA in the Salesforce platform. ❤️⚡️

github.com/salesforce/l...
February 24, 2025 at 5:56 PM
Reposted by Matheus Cardoso 🇺🇦
Helping bring Node-API to React Native 🫡
February 22, 2025 at 3:41 PM
Reposted by Matheus Cardoso 🇺🇦
Got docs set up for publint today! A bit hard to get documentation frameworks to support SPA fallback, and I had to mix Svelte in Vue, but it kinda works. publint.dev/docs/
publint
Lint npm packages to ensure the widest compatibility across environments
publint.dev
February 21, 2025 at 7:48 AM
Just randomly discovered this gem by @bluwy.me . It's exactly what I was most missing in my workflow. I can't give much right now, but I had to become a sponsor. Thank you!
GitHub - publint/publint: Lint packaging errors
Lint packaging errors. Contribute to publint/publint development by creating an account on GitHub.
github.com
February 21, 2025 at 6:03 PM
I believe @pnpm.io is leading the pack in terms of out-of-the-box dependency management in monorepositories and more recently supply chain risk management. Are people getting the same benefits from modern yarn or npm? How do you set those up?
February 20, 2025 at 3:53 PM
Reposted by Matheus Cardoso 🇺🇦
linking also to @bluwy.me's HMR is Easy masterpiece, that I don't know if we are doing a good job in surfacing from the vite docs
Hot Module Replacement is Easy - Bjorn Lu
If you've built projects with Vite, chances are you've also used Hot Module Replacement (HMR). HMR allows you to update your code without...
bjornlu.com
February 20, 2025 at 12:23 PM
Reposted by Matheus Cardoso 🇺🇦
tutorial-vite-plugin.pages.dev 👀
This tutorial covers some plugin APIs. Maybe one day it'll be finished.
YAML Plugin / Importing YAML files
A TutorialKit interactive lesson
tutorial-vite-plugin.pages.dev
February 20, 2025 at 8:41 AM
Reposted by Matheus Cardoso 🇺🇦
I made an @expo.dev cli cheat sheet!
February 19, 2025 at 7:26 PM
Reposted by Matheus Cardoso 🇺🇦
some thoughts on bundling dependencies in libraries and dev tools. especially given the great effort from the community lately, we need to bundle less and less (in consumed packages)
Bundling dependencies (and when not to do it)
A brief write up on when you should or shouldn't bundle dependencies
e18e.dev
February 14, 2025 at 12:05 PM
Reposted by Matheus Cardoso 🇺🇦
If your automated security tools flags this esbuild CVE in your Vite app, go report it to them. Vite doesn't use the esbuild dev server. Always provide a minimal repro for security issues. Kudos again to @sapphi.red for fixing the original CVE on Vite and reporting it to other affected tools.
Any websites were able to send any requests to the development server and read the response
### Summary esbuild allows any websites to send any request to the development server and read the response due to default CORS settings. ### Details esbuild sets `Access-Control-Allow-Ori...
github.com
February 12, 2025 at 7:31 PM
Reposted by Matheus Cardoso 🇺🇦
Just a note to say that I need 10K subscribers on Youtube to enable services like Teemill to integrate. www.youtube.com/watch?v=Lbjx...
Why is everything binary?
YouTube video by Heydon Pickering
www.youtube.com
February 9, 2025 at 11:26 AM
Reposted by Matheus Cardoso 🇺🇦
@rolldown.rs wasm story is just brilliant
February 7, 2025 at 10:54 AM
I've been bitten by the bug: Added @socket.dev to my workflow, and now @pkg.pr.new . I'm much less anxious around maintaining vite-plugin-lwc and learning a ton in the process. 🧑‍🔬
chore: update deps by cardoso · Pull Request #12 · cardoso/vite-plugin-lwc
github.com
February 5, 2025 at 2:38 PM