{"id":22913765,"url":"https://github.com/unplugin/unplugin-vue2","last_synced_at":"2025-06-12T22:07:38.588Z","repository":{"id":153452306,"uuid":"629240161","full_name":"unplugin/unplugin-vue2","owner":"unplugin","description":"✨ Transform Vue 2.7+ SFC to JavaScript. Supports Vite, esbuild, Rollup and Webpack.","archived":false,"fork":false,"pushed_at":"2025-06-04T06:31:10.000Z","size":715,"stargazers_count":13,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T13:18:46.380Z","etag":null,"topics":["esbuild","plugin","rollup","sfc","unplugin","vite","vue-cli","vuejs","webpack"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unplugin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-17T23:18:26.000Z","updated_at":"2025-05-27T04:51:25.000Z","dependencies_parsed_at":"2023-09-27T00:01:42.451Z","dependency_job_id":"b10582c6-7b9b-4078-92a4-d8fcd536535a","html_url":"https://github.com/unplugin/unplugin-vue2","commit_stats":null,"previous_names":["unplugin/unplugin-vue2","so1ve/unplugin-vue2"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/unplugin/unplugin-vue2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugin%2Funplugin-vue2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugin%2Funplugin-vue2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugin%2Funplugin-vue2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugin%2Funplugin-vue2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unplugin","download_url":"https://codeload.github.com/unplugin/unplugin-vue2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugin%2Funplugin-vue2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259539131,"owners_count":22873341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["esbuild","plugin","rollup","sfc","unplugin","vite","vue-cli","vuejs","webpack"],"created_at":"2024-12-14T05:11:38.307Z","updated_at":"2025-06-12T22:07:38.560Z","avatar_url":"https://github.com/unplugin.png","language":"TypeScript","readme":"# unplugin-vue2\n\n[![NPM version](https://img.shields.io/npm/v/unplugin-vue2?color=a1b858\u0026label=)](https://www.npmjs.com/package/unplugin-vue2)\n\n## 💎 Features\n\n- ⚡️ Supports Vite, Webpack, Vue CLI, Rollup, esbuild and more, powered by unplugin.\n\n## 📦 Installation\n\n```bash\n$ npm install unplugin-vue2 -D\n$ yarn add unplugin-vue2 -D\n$ pnpm add unplugin-vue2 -D\n```\n\n## 🚀 Usage\n\n\u003cdetails\u003e\n\u003csummary\u003eVite\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// vite.config.ts\nimport UnpluginVue2 from \"unplugin-vue2/vite\";\n\nexport default defineConfig({\n\tplugins: [\n\t\tUnpluginVue2({\n\t\t\t/* options */\n\t\t}),\n\t],\n});\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eRollup\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// rollup.config.js\nimport UnpluginVue2 from \"unplugin-vue2/rollup\";\n\nexport default {\n\tplugins: [\n\t\tUnpluginVue2({\n\t\t\t/* options */\n\t\t}),\n\t\t// other plugins\n\t],\n};\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eWebpack\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// webpack.config.js\nmodule.exports = {\n\t/* ... */\n\tplugins: [\n\t\trequire(\"unplugin-vue2/webpack\")({\n\t\t\t/* options */\n\t\t}),\n\t],\n};\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eVue CLI\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// vue.config.js\nmodule.exports = {\n\tconfigureWebpack: {\n\t\tplugins: [\n\t\t\trequire(\"unplugin-vue2/webpack\")({\n\t\t\t\t/* options */\n\t\t\t}),\n\t\t],\n\t},\n};\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eQuasar\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// quasar.conf.js [Vite]\nmodule.exports = {\n\tvitePlugins: [\n\t\t[\n\t\t\t\"unplugin-vue2/vite\",\n\t\t\t{\n\t\t\t\t/* options */\n\t\t\t},\n\t\t],\n\t],\n};\n```\n\n```ts\n// quasar.conf.js [Webpack]\nconst UnpluginVue2Plugin = require(\"unplugin-vue2/webpack\");\n\nmodule.exports = {\n\tbuild: {\n\t\tchainWebpack(chain) {\n\t\t\tchain.plugin(\"unplugin-vue2\").use(\n\t\t\t\tUnpluginVue2Plugin({\n\t\t\t\t\t/* options */\n\t\t\t\t}),\n\t\t\t);\n\t\t},\n\t},\n};\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eesbuild\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// esbuild.config.js\nimport { build } from \"esbuild\";\n\nbuild({\n\t/* ... */\n\tplugins: [\n\t\trequire(\"unplugin-vue2/esbuild\")({\n\t\t\t/* options */\n\t\t}),\n\t],\n});\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n## 👍 Alternatives\n\n- [@vitejs/plugin-vue](https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue) - For Vite and Vue 3.\n- [@vitejs/plugin-vue2](https://github.com/vitejs/vite-plugin-vue2) - For Vite and Vue 2.\n- ~~[vite-plugin-vue2](https://github.com/underfin/vite-plugin-vue2) - For Vite and Vue 2.~~\n- ~~[rollup-plugin-vue](https://github.com/vuejs/rollup-plugin-vue)~~ - ⚠️ no longer maintained.\n- [unplugin-vue](https://github.com/unplugin/unplugin-vue) - For Vue3.\n- [vue-loader](https://github.com/vuejs/vue-loader) - For Webpack.\n- [esbuild-plugin-vue](https://github.com/egoist/esbuild-plugin-vue) - For esbuild and Vue 3.\n- [esbuild-vue](https://github.com/apeschar/esbuild-vue) - For esbuild and Vue 2.\n\n## 📚 Credits\n\n- [Vite](https://github.com/vitejs/vite) - Next generation frontend tooling. It's fast!\n- [unplugin](https://github.com/unjs/unplugin) - Unified plugin system for Vite, Rollup, Webpack, and more\n\n## 🙇‍ Thanks\n\nThanks to [Vite](https://github.com/vitejs/vite). This project is inherited from [@vitejs/plugin-vue2@2.2.0](https://github.com/vitejs/vite-plugin-vue2/tree/v2.2.0).\nThanks to [unplugin-vue](https://github.com/sxzz/unplugin-vue) for this idea (porting @vitejs/plugin-vue2 to unplugin).\n\n## 📝 License\n\n[MIT](./LICENSE). Made with ❤️ by [Ray](https://github.com/so1ve)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funplugin%2Funplugin-vue2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funplugin%2Funplugin-vue2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funplugin%2Funplugin-vue2/lists"}