1.0.2 • Published 8 months ago

@wxt-dev/module-vue v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@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:

  1. Adds @vitejs/plugin-vue to vite config
  2. Adds the vue preset to auto-imports
  3. Applies sourcemap fix to prevent HMR errors during development
  4. Enable auto-imports in .vue files

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,
      },
    },
  },
});
1.0.2

8 months ago

1.0.1

12 months ago

1.0.0

1 year ago