wxt-dev / wxt-dev/wxt

web_accessible_resources are not packaged.

Open
#1,857 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

pending-triage
Dominant language
TypeScript
Stars
10.5k
Forks
564
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

The resources specified by web_accessible_resources are not packaged.

web_accessible_resources: [{
resources: ['a.js', 'b.js'],
matches: ['<all_urls>']
}],

After executing "yarn install" and "yarn dev", the files a.js and b.js were not bundled. In Google Chrome. Version 0.19.13 is good, but the latest version is not.

Reproduction

1

Steps to reproduce

No response

System Info
System:
    OS: macOS 15.3.1
    CPU: (20) x64 Intel(R) Core(TM) i9-10910 CPU @ 3.60GHz
    Memory: 19.53 GB / 96.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 22.12.0 - ~/.volta/tools/image/node/22.12.0/bin/node
    Yarn: 1.22.19 - ~/.volta/tools/image/yarn/1.22.19/bin/yarn
    npm: 10.9.0 - ~/.volta/tools/image/node/22.12.0/bin/npm
    pnpm: 8.6.2 - ~/.volta/bin/pnpm
    bun: 1.2.12 - ~/.bun/bin/bun
  Browsers:
    Chrome: 139.0.7258.129
    Safari: 18.3
Used Package Manager

npm

Validations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the configuration shown in the issue with yarn dev and verify whether a.js and b.js are absent from the packaged extension. Compare the latest behavior with version 0.19.13, then confirm that both resources are packaged when the fix is complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.