Delete files from prod build

Hello all,

How can we remove some addon files from bundling to vendor.js during production build

I already tried this but not working

what do you want to move?

For me, the easiest way to remove files is to not import them. This requires using embroider (with all the static flags on), which uses webpack (or vite, depending on your level of adventurousness).

Pre-embroider (webpack/vite), I think it’s too confusing to customize the build, so that’s why I focus on using webpack/vite because the idea of “only pay for what you import” makes a lot of sense to me.