Skip to content

Feat: Auto-import configuration override dirs - #2577

Open
fkatsuhiro wants to merge 2 commits into
wxt-dev:mainfrom
fkatsuhiro:issue-2391
Open

Feat: Auto-import configuration override dirs#2577
fkatsuhiro wants to merge 2 commits into
wxt-dev:mainfrom
fkatsuhiro:issue-2391

Conversation

@fkatsuhiro

@fkatsuhiro fkatsuhiro commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Overview

Added a new imports.scan option to allow disabling WXT's default auto-import directories (components, composables, hooks, utils) while keeping library/preset imports active.

  1. Default (scan: true): Keeps default directories and extends them with custom dirs.
  2. scan: false: Disables default directory scanning.
  3. scan: false + dirs: [...]: Replaces default directories with custom ones instead of extending them.

Manual Testing

Before implementation (Reploduce request via testing)

スクリーンショット 2026-08-13 9 59 09 スクリーンショット 2026-08-13 9 59 29

After implementation

image

Related Issue

This PR closes #2391

@netlify

netlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit e8dbbdd
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/6a7d27e1a3eb220007da3fb7
😎 Deploy Preview https://deploy-preview-2577--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the pkg/wxt Includes changes to the `packages/wxt` directory label Aug 4, 2026
@fkatsuhiro
fkatsuhiro marked this pull request as ready for review August 13, 2026 02:43
@fkatsuhiro fkatsuhiro changed the title feat: Auto-import configuration override dirs Feat: Auto-import configuration override dirs Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg/wxt Includes changes to the `packages/wxt` directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-import configuration cannot override default dirs

1 participant