Skip to content

feat: allow configuring default auto-import dirs#2444

Closed
cookesan wants to merge 1 commit into
wxt-dev:mainfrom
cookesan:override-auto-import-dirs
Closed

feat: allow configuring default auto-import dirs#2444
cookesan wants to merge 1 commit into
wxt-dev:mainfrom
cookesan:override-auto-import-dirs

Conversation

@cookesan

Copy link
Copy Markdown
Contributor

Summary

  • add imports.defaultDirs to keep, disable, or replace WXT's default project auto-import directories
  • keep imports.dirs as an extension point for extra directories
  • document the new option and cover extend, disable, and replace cases in e2e tests

Closes #2391

Test

  • bun run --filter wxt build
  • bun run --filter wxt test run auto-imports.test.ts
  • bun run --filter wxt check
  • bun run docs:build
  • ./node_modules/.bin/markdownlint docs/guide/essentials/config/auto-imports.md

@netlify

netlify Bot commented Jun 28, 2026

Copy link
Copy Markdown

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 8854dad
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/6a414a17e3386e00081dfa98
😎 Deploy Preview https://deploy-preview-2444--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 Jun 28, 2026
@aklinker1

Copy link
Copy Markdown
Member

Gonna follow nuxt's lead here and implement a option in the same way: #2391 (comment)

@aklinker1 aklinker1 closed this Jun 29, 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

2 participants