Skip to content

feat: auto-import configuration override dirs - #2577

Merged
aklinker1 merged 4 commits into
wxt-dev:mainfrom
fkatsuhiro:issue-2391
Oct 27, 2026
Merged

aklinker1 merged 4 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 5ed5989
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/6ae03a0059595061c553bbdb
😎 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 force-pushed the issue-2391 branch 2 times, most recently from 5e68043 to e8dbbdd Compare August 13, 2026 02:11
@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
@fkatsuhiro fkatsuhiro changed the title Feat: Auto-import configuration override dirs feat: auto-import configuration override dirs Oct 24, 2026
@PatrykKuniczak

PatrykKuniczak commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

@fkatsuhiro Resolve conflicts, somebody(probably I) will take a look on that 😄

@aklinker1 aklinker1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for adding this!

@nishu-murmu

Copy link
Copy Markdown
Collaborator

@fkatsuhiro please resolve these conflicts then we can merge!

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 87aa5712-2fc1-4f8f-80c7-9661bb1c689f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@fkatsuhiro

Copy link
Copy Markdown
Contributor Author

@aklinker1 san, @nishu-murmu san , @PatrykKuniczak san
Sorry for delay. I've solve conflicts in this PR. Could you merge this? Thank you!

@aklinker1
aklinker1 enabled auto-merge (squash) October 27, 2026 02:19
@pkg-pr-new

pkg-pr-new Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@wxt-dev/analytics

npm i https://pkg.pr.new/@wxt-dev/analytics@2577

@wxt-dev/auto-icons

npm i https://pkg.pr.new/@wxt-dev/auto-icons@2577

@wxt-dev/browser

npm i https://pkg.pr.new/@wxt-dev/browser@2577

@wxt-dev/i18n

npm i https://pkg.pr.new/@wxt-dev/i18n@2577

@wxt-dev/is-background

npm i https://pkg.pr.new/@wxt-dev/is-background@2577

@wxt-dev/module-react

npm i https://pkg.pr.new/@wxt-dev/module-react@2577

@wxt-dev/module-solid

npm i https://pkg.pr.new/@wxt-dev/module-solid@2577

@wxt-dev/module-svelte

npm i https://pkg.pr.new/@wxt-dev/module-svelte@2577

@wxt-dev/module-vue

npm i https://pkg.pr.new/@wxt-dev/module-vue@2577

@wxt-dev/runner

npm i https://pkg.pr.new/@wxt-dev/runner@2577

@wxt-dev/storage

npm i https://pkg.pr.new/@wxt-dev/storage@2577

@wxt-dev/unocss

npm i https://pkg.pr.new/@wxt-dev/unocss@2577

@wxt-dev/webextension-polyfill

npm i https://pkg.pr.new/@wxt-dev/webextension-polyfill@2577

wxt

npm i https://pkg.pr.new/wxt@2577

commit: 5ed5989

@codecov

codecov Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.46%. Comparing base (71bac2a) to head (5ed5989).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2577      +/-   ##
==========================================
+ Coverage   80.38%   80.46%   +0.08%     
==========================================
  Files         139      139              
  Lines        4160     4162       +2     
  Branches      959      961       +2     
==========================================
+ Hits         3344     3349       +5     
+ Misses        718      715       -3     
  Partials       98       98              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread docs/guide/essentials/config/auto-imports.md Outdated
Comment thread docs/guide/essentials/config/auto-imports.md Outdated
@nishu-murmu
nishu-murmu dismissed their stale review October 27, 2026 05:44

implemented those changes myself

@aklinker1
aklinker1 merged commit d374549 into wxt-dev:main Oct 27, 2026
19 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for helping make WXT better!

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

4 participants