Open yzqdev opened 6 months ago
pr welcome
some updates to make things clear, we are looking forward for this if it supports most of the webpack loaders, but we are focusing on stable version and ecosystem now, and vite is fast enough to use. We would be happy to see anyone working on this, and I would like to help with any difficulty while developing.
i'm trying to make a bundler-rspack. once vuepress and @vuepress/theme-default is compatible, i'll make a small repo to show the results. Now rspack lacks persistent cache, and it'll be implementated in the future.
I just find it works well with vuepress and default theme,in development and production. here is my repo.
https://github.com/yzqdev/vuepress-rspack
i only replace webpack keyword with @rspack/core, so the code is not perfect,and i will consider whether use rsbuild
or rspack
later.
Sorry for delay. Was busy last few days.
I also did some experiments on integrating rsbuild/rspack (in fact there is still a wip branch in my local repo lol), but no progress for a long time due to limited bandwidth.
I'm really looking forward to new bundlers integration. That could be the biggest advantage of the vuepress v2 implementation.
Currently a new @vuepress/bundler-rsbuild/rspack
is preferred, cuz webpack is still an active & famous bundler.
@yzqdev PR welcome! Let me know if you have any questions.
Any update with this one ? @yzqdev
Sorry for the delay, a little buzy these days.
I tried to intergrate rspack/rsbuild with vuepress ecosystem and found it's not quite compatible and stable . when our project are getting bigger and bigger, rspack/rsbuild may be stuck when compiling. some of the loaders or plugins didn't act as what we expect them to be. some of the plugins or themes use webpack-only features, rspack cannot compile.
The rspack's api is changing fast, and its stable version 1.0 of rspack will launch at July,apis will become stable, then we could re-evaluate rspack's advance.
got it, the we will leave it here now
@yzqdev Thanks for the efforts! Agree that we can wait for their stable release.
BTW, the first version could be an experimental package, which can at least work with the e2e project of core. Ecosystem compatibility could be considered later.
Clear and concise description of the problem
Rspack is a high performance Rust-based JavaScript bundler that offers strong interoperability with the webpack ecosystem, enabling faster development cycles and efficient collaboration between the two tools.
https://www.rspack.dev/
It's compatible with the webpack loader and plugin system. Loaders and plugins, such as
mini-css-extract-plugin
,css-loader
,html-webpack-plugin
, That means maybe we just need to replacewebpack
word with@rspack/core
,then we could get better performance .Suggested solution
Add a bundler of rspack or just replace webpack with rspack
Alternative
No response
Additional context
Rspack is webpack-like,and it has a higher level tool,
rsbuild
,providing a out-of-the-box environment like vue-cli,but built on rspack. (we dont need to config some loaders and plugins)It alse has a bundler chain feature,which may replace
webpack-chain