Closed steabert closed 1 year ago
When bundling a React application that imports icons, all chunks get bundled in the final bundle. Is there any way to avoid this?
Closing this since I don't see the problem when importing just a single icon directly in the app. In that case, treeshaking in esbuild seems to work. The problem seems to be when cjs imports are involved.
cjs
When bundling a React application that imports icons, all chunks get bundled in the final bundle. Is there any way to avoid this?