# @vitejs/plugin-vue2 [![npm](https://img.shields.io/npm/v/@vitejs/plugin-vue2.svg)](https://npmjs.com/package/@vitejs/plugin-vue2) > [!CAUTION] > Vue 2 has reached EOL, and this project is no longer actively maintained. --- > Note: this plugin only works with Vue@^2.7.0. ```js // vite.config.js import vue from '@vitejs/plugin-vue2' export default { plugins: [vue()] } ``` ## Options ```ts export interface Options { include?: string | RegExp | (string | RegExp)[] exclude?: string | RegExp | (string | RegExp)[] isProduction?: boolean // options to pass on to vue/compiler-sfc script?: Partial> template?: Partial< Pick< SFCTemplateCompileOptions, | 'compiler' | 'compilerOptions' | 'preprocessOptions' | 'transpileOptions' | 'transformAssetUrls' | 'transformAssetUrlsOptions' > > style?: Partial> } ``` ## Asset URL handling When `@vitejs/plugin-vue2` compiles the `