-
-
Notifications
You must be signed in to change notification settings - Fork 167
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Farm Roadmap v2.0 🎉 #1589
Comments
It seems that the processing of the config in the core was a bit complicated before, and config was modified in almost many places. It feels like it can be unified and processed in one place. |
Final implementation version and roadmap (new Docs)
|
Great and elegant design! |
HMR wants batch updates |
it's already supported |
This refactoring will ensure that a large number of api and property break changes will not be designed
Optimize existing @farmfe/core config logic design
Add debug debugging to the node layer
Replace koa with connect
Try to adapt some hmr, jsPlugin Hook, etc. to farm native servers, rather than putting pressure on farm's vite compatibility layer, which will cause excessive pressure on subsequent maintenance
The middleware design needs to be re-considered to adapt to the existing koa middleware and user-written middleware or the reimplementation of other native middleware that needs to be replaced.
Currently, we are still thinking about design and finally achieve the goal of farm development rust ecosystem, and js ecosystem reuses vite ecosystem.
Now considering the initial stage, we are still in the process of design thinking, and may mainly consider it in the mojor version
Reasons for refactoring this node layer
Only by making the underlying infrastructure good enough can it better serve the stability of the upper framework.
This major and important update is mainly to accompany the sustainable development of the vite ecosystem, so that farm can follow the footsteps of vite's js ecosystem for a long time to come.
Progress till MVP
New Docs
Refctor functions
Node Side
vite adapter
Refactoring all vite proxy logic mainly targets errors caused by invalid configurations such as
esbuild
,rollup
optionsElegant optimized performance
Compatible with more vite plugins
@farmfe/cli
@farmfe/core
Config
server.watch
options removehmr.watch
cacheDir
optionspublicPath
logic #1776Server
viteplugin
andfarmplugin
PostHooks
after server return withconfigureServer
hook #1786configureCompiler
andconfigureServer
hooks, and sortPlugin utilspluginHookUtils
jsplugin
vite
Currently testing all supported vite and unplugin plugins in the new version
vite plugins
unplugin plugins
other
[Feature Request]: Putting the timeutil attribute into the second parameter of the logger allows the user to configure the running numerical unit #1850
perform example tests on all common properties and remove some useless examples (Importants)
unit Test
The entire node layer will be explained in more detail later, and everyone is welcome to participate and learn together. All code is in v2-dev branch,If you are interested, you can discuss the claim below
Rust Side
Persistent Cache Refactor
Plugin Hooks
new Worker(new URL(xxx))
HMR Optimize
add
andremove
event when HMRResolver
resolve.alias
array type[find: string|Regex, replacement: string]
#1817Module Federation
Refactor
Css Implementation Refactor
Grocery
Rust Plugins - All in Rust
Feature request
watcher
Supportadd
andunlink
methods #1815moduleParsed
hook #1843The text was updated successfully, but these errors were encountered: