{"id":20891262,"url":"https://github.com/unplugin/unplugin-vue-fervid","last_synced_at":"2025-07-12T06:35:14.066Z","repository":{"id":217045544,"uuid":"742988573","full_name":"unplugin/unplugin-vue-fervid","owner":"unplugin","description":"🚧 Transform Vue 3 SFC to JavaScript use vue compiler written in Rust. Supports Vite, esbuild, Rollup, Webpack, Farm, Rolldown, rspack and more.","archived":false,"fork":false,"pushed_at":"2025-05-05T16:02:13.000Z","size":5590,"stargazers_count":37,"open_issues_count":11,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-08T20:09:07.668Z","etag":null,"topics":[],"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":".github/FUNDING.yml","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},"funding":{"github":"adny"}},"created_at":"2024-01-14T00:47:06.000Z","updated_at":"2025-04-27T03:18:09.000Z","dependencies_parsed_at":"2024-01-14T08:25:49.875Z","dependency_job_id":"65f823b5-eb07-4bf9-9b97-cf24596bbeb0","html_url":"https://github.com/unplugin/unplugin-vue-fervid","commit_stats":null,"previous_names":["unplugin/unplugin-vue-fervid"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugin%2Funplugin-vue-fervid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugin%2Funplugin-vue-fervid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugin%2Funplugin-vue-fervid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugin%2Funplugin-vue-fervid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unplugin","download_url":"https://codeload.github.com/unplugin/unplugin-vue-fervid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253825014,"owners_count":21970117,"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":[],"created_at":"2024-11-18T09:11:40.971Z","updated_at":"2025-05-12T21:31:13.378Z","avatar_url":"https://github.com/unplugin.png","language":"TypeScript","readme":"# unplugin-vue-fervid\n\n#### Use [fervid Rust Compiler](https://github.com/phoenix-ru/fervid) to Transform Vue 3 SFC to JavaScript\n\nDue to the need to consider `performance` and `compatibility` issues, `fervid` needs to refactor `node` api. Please look forward to it.\n\n\u003e [!IMPORTANT]\n\u003e 🚧 Working in Progress.\n\u003e May be break changes in the future. The final implementation goal should be consistent with the vue compiler behavior\n\n## Is it fast?\nYes, it is incredibly fast. In fact, below is a benchmark run for a [test component](crates/fervid/benches/fixtures/input.vue).\n\n```\n  @vue/compiler-sfc:\n    954 ops/s, ±1.15%     | slowest, 98.42% slower\n\n  @fervid/napi sync:\n    6 464 ops/s, ±0.08%   | 89.29% slower\n\n  @fervid/napi async (4 threads):\n    11 624 ops/s, ±2.12%  | 80.73% slower\n\n  @fervid/napi async CPUS (23 threads):\n    60 329 ops/s, ±0.67%  | fastest\n```\n\n\u003c!-- \n| Action                     | Mean time    |\n|----------------------------|--------------|\n| Parsing                    | 5.58µs       |\n| Code generation: CSR + DEV | 16.26µs      | --\u003e\n\n\u003e Note: results are for AMD Ryzen 9 7900X running on Fedora 38 with kernel version 6.5.9\n\n\u003c!-- Micro-benchmarking has been done using Criterion, code for benchmarks can be found in `benches` directory. --\u003e\nBenchmarking in Node.js has been done using [`benny`](https://github.com/caderek/benny), slightly modified to take `libuv` threads into consideration.\n[Source code for a benchmark](crates/fervid_napi/benchmark/bench.ts).\n\n#### playground: [Fervid Playground](https://phoenix-ru.github.io/fervid/)\n\n\u003e [!WARNING]\n\u003e this project is still being tested and not ready to apply it to production and only supports vue 3 for now.\n\u003e The current problem is that if you want to contribute in fervid, you need to start fervid synchronously for local development.\n\n\n#### Configuration\n\n\u003e [!IMPORTANT]\n\u003e roadmap: Some features of this plugin roadmap represent the final fervid implementation of roadmap，View Fervid [roadmap](https://github.com/phoenix-ru/fervid?tab=readme-ov-file#roadmap)\n\u003e - [x] support hmr\n\u003e - [x] support css compile\n\u003e - [ ] transform sfc assets url\n\u003e - [ ] type options\n\u003e - [ ] known bugs\n\u003e - [ ] support other frameworks\n\n\u003cdetails\u003e\n\u003csummary\u003eVite\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// vite.config.ts\nimport Vue from 'unplugin-vue-fervid/vite'\n\nexport default defineConfig({\n  plugins: [\n    Vue({\n      /* options */\n    }),\n  ],\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- [unplugin-vue2](https://github.com/unplugin/unplugin-vue2) - For Vue 2.7+ and Vite, esbuild, Rollup, Webpack or more.\n- [vue-loader](https://github.com/vuejs/vue-loader) - For Webpack.\n- [unplugin-vue](https://github.com/unplugin/unplugin-vue) - ✨ Transform Vue 3 SFC to JavaScript. Supports Vite, esbuild, Rollup, Webpack and more.\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- ~~[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\n## Thanks\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- [unplugin-vue](https://github.com/unplugin/unplugin-vue) - ✨ Transform Vue 3 SFC to JavaScript. Supports Vite, esbuild, Rollup, Webpack and more.\n- [vite-plugin-vue](https://github.com/vitejs/vite-plugin-vue) - This project is inherited from it.\n","funding_links":["https://github.com/sponsors/adny"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funplugin%2Funplugin-vue-fervid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funplugin%2Funplugin-vue-fervid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funplugin%2Funplugin-vue-fervid/lists"}