Skip to content

Remotes are duplicated in generated manifest (version-3) #16530

Closed

Description

@ottomated

Describe the bug

remotes.push(remote) here runs twice, once for each vite build. The remotes array doesn't get cleared between runs, so the generated manifest looks like this:

remotes: {
  '1y3u2ss': __memo(() => import('../output/server/chunks/remote-1y3u2ss.js')),
  '1qww2ng': __memo(() => import('../output/server/chunks/remote-1qww2ng.js')),
  '1y3u2ss': __memo(() => import('../output/server/chunks/remote-1y3u2ss.js')),
  '1qww2ng': __memo(() => import('../output/server/chunks/remote-1qww2ng.js'))
},

Reproduction

reproduces with test/apps/async

Logs

System Info

npmPackages:
    @sveltejs/kit: workspace:^ => 3.0.0-next.12 
    @sveltejs/vite-plugin-svelte: catalog: => 7.0.0 
    svelte: catalog: => 5.56.3 
    vite: catalog: => 8.1.5

Severity

blocking an upgrade

Additional Information

No response

Activity

  1. added theissue type on Jul 26, 2026
  2. added a commit that references this issue on Jul 27, 2026
    629b45d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions