docs: Add note about adding the browser package as a dependency for

module augmentation
This commit is contained in:
Aaron
2026-03-17 17:40:48 -05:00
parent f4f6704510
commit 41a687a63e
+6
View File
@@ -92,6 +92,12 @@ declare module '@wxt-dev/browser' {
}
```
> For this to work, you may need to install `@wxt-dev/browser` as a direct dependency.
>
> ```sh
> pnpm add @wxt-dev/browser
> ```
## Entrypoint Limitations
Because WXT imports your entrypoint files into a NodeJS, non-extension environment, the `chrome`/`browser` variables provided to extensions by the browser **will not be available**.