In this post, we will see how to resolve Can’t get webpack usedExport / treeshaking to work Question: Been trying for hours to get webpack to treeshake my code. Here’s the repro: https://github.com/dmt0/treeshake-repro The problem is that even though I’m ...
Question: I am building out a Gatsby web app where each component has a .module.css file, a .jsx file, and a stories.jsx file. I’m using the following import line as required by Gatsby (albeit without the tree shaking): Then if, ...