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 ...
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 am building a TypeScript project where I have want to generate output file depending on some conditions (For the actual project it depends on env). ...
I would like to treeshake rxjs in my TypeScript application that is bundled via WebPack: rxjs@7.5.7 webpack@5.74.0 According to https://rxjs.dev/gui ...
We have a SPFx webpart project which renders Adaptive cards - this project generate bundles using Webpack via gulp-tasks. We also have a (ESM/esnext) ...
We use webpack-bundle-analyzer to visualize what is bundled in our application and optimize it. It appears lodash is imported, among many other lodas ...
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 li ...
I am splitting my react code with multiple entry points in webpack, these bundles are then loaded independently at completely different pages(HTML doc ...
I need to perform tree-shaking to reduce bundle sizes where lodash and some other libraries are being used. I've converted all lodash imports like thi ...
Consider this package.json: I'm trying to figure out what's the best practice in order to adjust it so it'll publish the src folder that contains E ...
I set up a small project with the following files I configurated the various build/package/optimisation settings as per the official documentation ...
I would like to import a single bootstrap component dynamically only when I need it. Bellow syntax actually can do it but it does import all componen ...
I can't get tree shaking to work correctly on my project running Webpack 5.68 and Babel 7.17.0. If I import my component like this everything works f ...
I know that tools like rollup, webpack and even babel are capable of producing tree-shaken bundles. But I would like to do that, but for an abstract s ...
Similar to Tree shaking create-react-app? but more of how to validate and fix. So I have a created a library of react hooks. In there I added an exam ...
I can't figure out why vuetify treeshaking isn't working on my app, since i followed every steps described here. Am I missing something ? I'm not usi ...
I have a typescript file that import a web-component. when I import my web component like below it works fine without problem: but in typescript, I ...
I use only a few of the functions and made sure I import them as recommended for tree-shaking in their documentation : The code itself works fine, ...
I'm building a re-usable telemetry library using TypeScript and OpenTelemetry. I'm trying to see how I can implement tree-shaking such that consumer c ...
When I try to use lodash function as a specific import as shown below then it shows to be it loads only 14.7KB in size. But when I try to use the im ...
Is there something to enable to have next.js perform tree-shaking/removal of dead code from dependencies? I've exported two objects like this: librar ...