Skip to content

[modules] Polluted manifest in successive build:manifest calls #863

Closed

Description

@Timeraa

Describe the bug

Just noticed that in dev mode if you change a file like the background.ts in the demo extension the build:manifest hook of the new auto-icons module sends the icons property found console log which is due to the manifest.icons being filled out by the module the first dev run but the build:manifestGenerated hook should always get the "clean" manifest only the generated steps at that point in time

Reproduction

cd packages/wxt-demo
pnpm dev
# Save entrypoints/background.ts and you'll see the auto-icon warnings

Steps to reproduce

  1. Run dev in the demo extension
  2. Notice no "icons property found" log
  3. Update background.ts
  4. Notice "icons property found" log

System Info

System:
    OS: macOS 14.5
    CPU: (8) arm64 Apple M1 Pro
    Memory: 217.91 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.15.1 - /usr/local/bin/node
    npm: 10.7.0 - /usr/local/bin/npm
    pnpm: 8.15.9 - /usr/local/bin/pnpm
    bun: 1.1.1 - ~/.bun/bin/bun
  Browsers:
    Safari: 17.5
  npmPackages:
    wxt: workspace:* => 0.19.0

Used Package Manager

pnpm

Validations

Activity

  1. added
    pending-triage
    on Jul 26, 2024
  2. added and removed
    pending-triage
    on Jul 27, 2024
  3. changed the title [-]WXT Module system bug[/-] [+][modules] Polluted manifest in successive `build:manifest` calls[/+] on Aug 15, 2024
  4. added this to the v1.0 milestone on Oct 19, 2024
  5. aklinker1 commented on Nov 28, 2024

    @aklinker1
    Member

    Released in v0.19.17

  6. added theissue type on Mar 21, 2025
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions