You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using nodejs_compat, the output size is: Total Upload: 25.40 KiB / gzip: 6.13 KiB
vs when I use nodejs_compat and no_nodejs_compat_v2: Total Upload: 0.19 KiB / gzip: 0.16 KiB
The output when using v2 mode seems to include polyfills for process, console, and much more, drastically inflating my bundle size, despite not using any of these in my worker:
On another Worker I have, I had:
before: Total Upload: 11.42 KiB / gzip: 2.58 KiB
after: Total Upload: 121.83 KiB / gzip: 27.19 KiB
That's an almost 10x increase in my worker size. Is that a real-world problem that'll impact my worker? No. Was it nice to have a somewhat useful and readable source output to debug weird and random issues without sourcemaps? Yes.
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered:
Which Cloudflare product(s) does this pertain to?
Wrangler
What version(s) of the tool(s) are you using?
3.83.0
What version of Node are you using?
20.18.0
What operating system and version are you using?
Windows 11
Describe the Bug
With a worker like this:
when using
nodejs_compat
, the output size is:Total Upload: 25.40 KiB / gzip: 6.13 KiB
vs when I use
nodejs_compat
andno_nodejs_compat_v2
:Total Upload: 0.19 KiB / gzip: 0.16 KiB
The output when using v2 mode seems to include polyfills for
process
,console
, and much more, drastically inflating my bundle size, despite not using any of these in my worker:On another Worker I have, I had:
before:
Total Upload: 11.42 KiB / gzip: 2.58 KiB
after:
Total Upload: 121.83 KiB / gzip: 27.19 KiB
That's an almost 10x increase in my worker size. Is that a real-world problem that'll impact my worker? No. Was it nice to have a somewhat useful and readable source output to debug weird and random issues without sourcemaps? Yes.
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: