Skip to content

find_additional_modules seems to not be respected if no_bundle is set #10063

@knownasred

Description

@knownasred

What versions & operating system are you using?

System:
OS: Linux 6.12 cpe:/o:nixos:nixos:25.05 25.05 (Warbler)
CPU: (16) x64 AMD Ryzen 7 7840U w/ Radeon 780M Graphics
Memory: 1.26 GB / 30.66 GB
Container: Yes
Shell: 5.9 - /run/current-system/sw/bin/zsh
Binaries:
bun: 1.2.13 - /tmp/bun-node-64ed68c9e/bun
npmPackages:
wrangler: ^4.26.0 => 4.26.0

Please provide a link to a minimal reproduction

No response

Describe the Bug

When a project is configured with both no_bundle set to true, and find_additional_modules set to false,

I still get additional modules when attempting a dry run:

bun wrangler versions upload -c ./wrangler.jsonc -e sepolia

 ⛅️ wrangler 4.26.0
───────────────────
Attaching additional modules:
┌───────────────────────────────────────────────┬───────────────┬─────────────┐
│ Name                                          │ Type          │ Size        │
├───────────────────────────────────────────────┼───────────────┼─────────────┤
│ _app/immutable/assets/dojo_c_bg.nOgTHLnA.wasm │ compiled-wasm │ 3991.56 KiB │
├───────────────────────────────────────────────┼───────────────┼─────────────┤
│ Total (1 module)                              │               │ 3991.56 KiB │
└───────────────────────────────────────────────┴───────────────┴─────────────┘

The main entrypoint is generated through sveltekit, so there is only one entrypoint with all routes set-up, so from my understanding, it is not required to enable bundling (we had it enabled for a long time in this repo, but we recently added a +server.ts route, and wrangler caused issues after that.

Please provide any relevant error logs

✘ [ERROR] A request to the Cloudflare API (/accounts/66fdcaa33feba9cdeb857bfc810ab75b/workers/scripts/ponzi-land-sepolia/versions) failed.

  Uncaught Error: internal error; reference = lbhhtq9ut7rp5difp2frgro5
   [code: 10021]

The logs of the github action that builds + deploys our project is available here: https://github.com/RuneLabsxyz/PonziLand/actions/runs/16507026568/job/46680247036

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that isn't workingwranglerRelating to the Wrangler CLI tool

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions