unplugin-vue icon indicating copy to clipboard operation
unplugin-vue copied to clipboard

feat: support farm

Open ErKeLost opened this issue 1 year ago • 3 comments

hi @sxzz sorry to bother you

This pr is temporarily put in draft. Currently, it is planned to mainly support farm version 2.0. The node implementation between version 2.0 and version 1.x is very different, so I want to wait until 2.0 is fully prepared to merge this pr. In the end, farm's goal should be purely to support farm's plugin rather than adapting to the vite form. In the future, farm should deviate from vite to reduce the impact on dependencies

Currently, farm has three plans for the idea of vue ecology (The compilation farm team for vue-jsx is under development)

  • unplugin-vue supports farm in 2.0

  • unplugin-vue-fervid this project has been shelved for a while, and I will implement this plugin immediately. The test at that time unplugin-vue-fervid performance was about 10 to 20 times faster than the current cache of the vue compiler. The next step is to use this plugin to speed up the compilation of native vue to support other frameworks such as vite rspack and more

  • @farmfe/plugin-vue supports farm-native vue compilation plugin, which will improve the performance of about 5 to 10 times than unplugin-vue-fervid in pure rust compilation

ErKeLost avatar Nov 28 '24 07:11 ErKeLost

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​swc/​core@​1.11.18 ⏵ 1.11.2099 +81007097100
Added@​farmfe/​cli@​2.0.0-nightly-20250411100807791007690100
Addedcore-js@​3.39.0941009986100

View full report

socket-security[bot] avatar Nov 29 '24 07:11 socket-security[bot]

Open in StackBlitz

npm i https://pkg.pr.new/unplugin/unplugin-vue@169

commit: ab5e4c4

pkg-pr-new[bot] avatar Nov 29 '24 07:11 pkg-pr-new[bot]

@sxzz hi ,can this PR be merged and a version released first? Then I'll continue to complete the remaining tasks and the entire e2e for the Vue project of Farm.

ErKeLost avatar Apr 15 '25 09:04 ErKeLost