I take no joy reporting that this optimization boosts our type validation code performance by up to 2x.
Matheus Cardoso 🇺🇦
@cardo.so
https://github.com/cardoso https://linkedin.com/in/cardosodev
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 🧵 👇
Here is another reason I like Type Catalogs. They can easily be transformed with Mapped Types! Full code snippet in thread 🧵👇
Accessibility doesn't only help a small group of people. Accessibility helps everyone
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
@socket.dev how can I fix this? 😮💨 It's literally vite's convention for plugins: vite.dev/guide/api-pl...
I stand with Ukraine and the truth that Russia is an invader.
I stand with Ukraine and the truth that Russia is an invader.
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. 🤓
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.
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?
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...
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
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
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?
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
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
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
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
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
youtube.com
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
This is awesome. Also the extensibility API allowing custom tracks! github.com/salesforce/l...
feat(engine): enhance performance timings by cardoso · Pull Request #4535 · salesforce/lwc
Details Closes #4511 Does this pull request introduce a breaking change? 😮💨 No, it does not introduce a breaking change. Does this pull request introduce an observable change? 🔬 Yes, it does...
github.com
New in Chrome DevTools: Skip irrelevant scripts in the Flame Chart! Debugging is faster and more actionable 🙏
I just got accused of being AI on discord because, wait for it, I use paragraphs! I'm both sad and amused.