Refactoring barrel files with codemods
Barrel files can be a pain to deal with. Here's a jscodeshift codemod to refactor your codebase to stop referencing barrel file imports.
Matteo Mazzarolo's personal blog. JavaScript, productivity, nerdy stuff.
Barrel files can be a pain to deal with. Here's a jscodeshift codemod to refactor your codebase to stop referencing barrel file imports.
Notes and gotchas on how to deal with CORS, opaque responses, and Cache Storage API in Service Workers
Improve the performance of client-side rendered SPAs by avoiding the waterfall effect caused by route-based lazy-loading.
A simple pattern for enabling conditional logging using query parameters in your web applications.
Sharing my experience with a pattern I’ve used multiple times to implement flexible network data preloading in large client-side-rendered SPAs.
Sharing my notes on setting up the fish shell on macOS, including customizations like plugins, themes, and abbreviations.
Next.js markdown/MDX blogs do not support loading images and other static assets using relative path by default. Here's how you can enable it.
Preventing Cumulative Layout Shift in a Next.js blog: how to automatically set the width and height attributes on local images referenced in MDX & markdown files.
Did you know that DOM elements with IDs are accessible in JavaScript as global variables?
How to build and automate a visual regression testing setup with Playwright and GitHub Actions.