It tells bundlers that a function has no side effects so every call to it can be tree-shaken if the result is unused.
Most bundlers and minifiers support it today.
But there's a nuance most people miss 👇
It tells bundlers that a function has no side effects so every call to it can be tree-shaken if the result is unused.
Most bundlers and minifiers support it today.
But there's a nuance most people miss 👇
(notice missing await in the example)
(notice missing await in the example)
Just because you need one thing from a module, you shouldn't pay the cost of all the others!
Just because you need one thing from a module, you shouldn't pay the cost of all the others!
⚛️
- Bulletproof Comps
- Render Types
- Tambo
- Logo Soup
- React Compiler
- Exit anims
- React Compiler
- React2AWS
- Ink
📱
- React Native 0.84
- Gesture Handler
- Rozenite
- Storybook
- JSON Render
- Targets
🍿 Read/subscribe: thisweekinreact.com/newsletter/268
⚛️
- Bulletproof Comps
- Render Types
- Tambo
- Logo Soup
- React Compiler
- Exit anims
- React Compiler
- React2AWS
- Ink
📱
- React Native 0.84
- Gesture Handler
- Rozenite
- Storybook
- JSON Render
- Targets
🍿 Read/subscribe: thisweekinreact.com/newsletter/268
Thank you to @ricky.fm the updates, and @danabra.mov and @stephanjnoel.bsky.social for reviewing
Thank you to @ricky.fm the updates, and @danabra.mov and @stephanjnoel.bsky.social for reviewing
· if it's vibe-coded without self review let's not lose time with trying to answer with long messages and helping the dev
· otherwise it feels legit to help and suggest other options
· if it's vibe-coded without self review let's not lose time with trying to answer with long messages and helping the dev
· otherwise it feels legit to help and suggest other options
Celebrate with us in #1000
github.com/npmx-dev/npm...
Celebrate with us in #1000
github.com/npmx-dev/npm...
@voidzero.dev is giving a good example here. If you need help defining your company's open-source funding strategy, my DMs are open. We need every company to step up its funding game. Let's take care of our maintainers, or the whole ecosystem will collapse.
@voidzero.dev is giving a good example here. If you need help defining your company's open-source funding strategy, my DMs are open. We need every company to step up its funding game. Let's take care of our maintainers, or the whole ecosystem will collapse.
Barrel files, files that re-export from other modules, are common in modern JavaScript projects but a nightmare for your build time.
Rolldown now has Lazy Barrel Optimization to fix this.
Here's how it works 🧵
Barrel files, files that re-export from other modules, are common in modern JavaScript projects but a nightmare for your build time.
Rolldown now has Lazy Barrel Optimization to fix this.
Here's how it works 🧵
main.vitest.dev/guide/test-c...
main.vitest.dev/guide/test-c...
The prompt was:
> add test coverage to this repository, feel free to add the packages you feel relevant to achieve that task
No skill added
The prompt was:
> add test coverage to this repository, feel free to add the packages you feel relevant to achieve that task
No skill added
Just need to find time to work on them 😬
Just need to find time to work on them 😬
We will restrict the scope to non-e2e but plan to cover testing-library and playwright.
🙏 Help welcomed ♥️
Share the word and feel free to contribute, the more contributors the better the rules
We will restrict the scope to non-e2e but plan to cover testing-library and playwright.
🙏 Help welcomed ♥️
Share the word and feel free to contribute, the more contributors the better the rules
Hope it could lead to better tests and less bugs 👾
Congrats to @jakebailey.dev on updating upstream tsc to default to an unpinned *latest* yearly edition of ES20xx. Heading for TS 6.0 🎉
This mean less transpilation of new JS features & more use of native language features provided by JS engines 👍
github.com/microsoft/Ty...
At work, it saved us many lines of code and protected us against many wrongly written tests.
At work, it saved us many lines of code and protected us against many wrongly written tests.
Nicolas reveals how his company built automated systems to catch #performance regressions early; using unit/E2E tests to track re-renders, memory leaks, and costly ops before they hit production.
Learn more & join us in #Paris 👉🏼 react.paris
Jest being one of our key users, I'm a bit puzzled on the idea of making them unable to move to next major of fast-check or not...
Jest being one of our key users, I'm a bit puzzled on the idea of making them unable to move to next major of fast-check or not...
socket.dev/blog/curl-sh...
socket.dev/blog/curl-sh...
(\_/)
(°-°)
/>❤️>
(\_/)
(°-°)
/>🧉>
(\_/)
(°-°)
/>❤️>