What is the size impact of importing one method from date-fns
In this article, I'll take a quick look at the build size of a simple code that imports a method from date-fns. I check results from both, webpack & esbuild.
The code
The code I use in this test is as follows:
import { sub } from "date-fns";
const t...
how-to.dev2 min read