Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork13
feat: support farm#169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
|
socket-securitybot commentedNov 29, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Review the following changes in direct dependencies. Learn more aboutSocket for GitHub.
|
pkg-pr-newbot commentedNov 29, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
commit: |
| import { plugin, type Options } from './core' | ||
| import type { JsPlugin, PluginLoadHookParam } from '@farmfe/core' | ||
| const createFarmVuePlugins = (options?: Options): JsPlugin[] => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
@sxzz hi The farm plugin is ready. There are still some type issues. We'll wait for the farm to be continuously optimized later.
Since the farm does not load other types of files by default, it is necessary to wrap it with a plugin in advance to ensure normal operation without affecting other frameworks.
@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. |
7717409 intounplugin:mainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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 version2.0and version1.xis 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 dependenciesCurrently, farm has three plans for the idea of vue ecology (The compilation farm team for vue-jsx is under development)
unplugin-vuesupports farm in 2.0unplugin-vue-fervidthis 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-vuesupports farm-native vue compilation plugin, which will improve the performance of about 5 to 10 times thanunplugin-vue-fervidin pure rust compilation