if Im using my own bundler config do I
if Im using my own bundler config do I need to pass in the
--no-bundle flag? Right now I am just running my own build and then setting the "main" property in wrangler.jsonc to my bundled output at dist/index.js. So to clarify: if I set the entrypoint to my custom bundler's output, do I still need to pass in --no-bundle flag?2 Replies
Yeah it is probably a good idea in this case to tell Wrangler not to try to bundle it again.
In the worst case it will take all your lazy loaded chunks and put them into a single file, which is probably not desirable
In the base case it is a waste of time for Wrangler to run your prebundled code through esbuild again
ok thank you. Is there a way to get more info on this? From the docs: "If you opt out of bundling, Wrangler will not process your code and some features introduced by Wrangler bundling (for example minification, and polyfills injection) will not be available." Just curious what else exaclty I should look into that wrangler is doing for best compatability or performance