@wxt-dev/module-vue
WXT module to enable Vue support
421,409
10,637
| Install | |
|---|---|
npm install @wxt-dev/module-vue |
|
| Latest Version: | 1.0.3 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Oct 21, 2026 |
| Links: | GitHub · npm |
Maintainer: _aklinker1
@wxt-dev/module-vue
Enables the use of Vue in your web extension, in HTML pages and content scripts.
This plugin makes a few changes:
- Adds
@vitejs/plugin-vueto vite config - Adds the
vuepreset to auto-imports - Applies sourcemap fix to prevent HMR errors during development
- Enable auto-imports in
.vuefiles
Usage
pnpm i vue
pnpm i -D @wxt-dev/module-vue
Then add the module to your config:
// wxt.config.ts
export default defineConfig({
// Required
modules: ['@wxt-dev/module-vue'],
// Optional: Pass options to the module:
vue: {
vite: {
script: {
propsDestructure: true,
},
},
},
});
Related Packages
nuxt-define
One utility function for module authors to define compiler constants for all bui...
13,412,511
Version History
| Version | Released | License |
|---|---|---|
| 1.0.3 | MIT | |
| 1.0.2 | MIT | |
| 1.0.1 | MIT | |
| 1.0.0 |