Skip to content
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

[Feature request] add a bundler of rspack/rsbuild #1552

Open
yzqdev opened this issue May 7, 2024 · 9 comments
Open

[Feature request] add a bundler of rspack/rsbuild #1552

yzqdev opened this issue May 7, 2024 · 9 comments

Comments

@yzqdev
Copy link

yzqdev commented May 7, 2024

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 replace webpack 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

@Mister-Hope
Copy link
Member

pr welcome

@Mister-Hope
Copy link
Member

Mister-Hope commented May 7, 2024

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.

@yzqdev
Copy link
Author

yzqdev commented May 7, 2024

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.

@yzqdev
Copy link
Author

yzqdev commented May 7, 2024

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.

@meteorlxy
Copy link
Member

meteorlxy commented May 13, 2024

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.

@Mister-Hope
Copy link
Member

Any update with this one ? @yzqdev

@yzqdev
Copy link
Author

yzqdev commented May 17, 2024

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.

@Mister-Hope
Copy link
Member

got it, the we will leave it here now

@meteorlxy
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants