appDir
appDir is the app directory, defaulting to app/. It is used as baseDir for entry and as the root for manifest auto-load.
Type and default
- Type:
string | undefined - Default:
"app"(framework convention) - Resolved: Framework resolves to an absolute path, e.g.
appDir: "src"→path.resolve(root, "src").
Role
-
baseDir for entry
All entry paths are relative to appDir. E.g.appDir: "src"andentry: { popup: "popup/index.ts" }→src/popup/index.ts. -
Entry discovery
When entry is not set, the framework discoversbackground,content,popup,options,sidepanel,devtoolsunder appDir by directory name. -
Manifest auto-load
When manifest is not set in config, the framework looks for:appDir/manifest.json,appDir/manifest.chromium.json,appDir/manifest.firefox.jsonappDir/manifest/manifest.json, etc.

