📄 Documentation for Rspack.
Note
Rspack website repo is moved into https://github.com/web-infra-dev/rspack/tree/main/website
Website of Rspack
Home Page: https://rspack.dev
📄 Documentation for Rspack.
Note
Rspack website repo is moved into https://github.com/web-infra-dev/rspack/tree/main/website
Related: web-infra-dev/rspack#2668
Unable to scroll the website using keyboard.
Environment:
OS: Windows 11
Browser: Chrome 110.0.5481.180
Hey! Just want to share some details that found on https://github.com/web-infra-dev/rspack-website/blob/main/docs/en/guide/migrate-from-cra.mdx#configure-rspackconfigjs section when trying to following it.
Found some extra spaces in these values:
And the arg that is passed to the new CopyPlugin constructor, https://github.com/web-infra-dev/rspack-website/blob/main/docs/en/guide/migrate-from-cra.mdx?plain=1#L47, is different from what it is mentioned in https://webpack.js.org/plugins/copy-webpack-plugin/#options doc.
As a side note, when doing the changes for the plugin, i'm not able to run/build the project as it throws the next error:
> [email protected] build
> rspack build
[rspack-cli] [Error: napi error: GenericFailure - TypeError: compilation.getCache is not a function
at /Users/***/Documents/projects/rspack-project/node_modules/copy-webpack-plugin/dist/index.js:693:33
at Hook.eval (eval at create (/Users/***/Documents/projects/rspack-project/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:1)
at Hook.CALL_DELEGATE [as _call] (/Users/***/Documents/projects/rspack-project/node_modules/tapable/lib/Hook.js:14:14)
at Compiler._Compiler_newCompilation (/Users/***/Documents/projects/rspack-project/node_modules/@rspack/core/src/compiler.ts:358:30)
0: _napi_register_module_v1
1: <unknown>
2: <unknown>
] {
code: 'GenericFailure'
}
Tested too by creating a new app with npm create rspack@latest
and get the same error when using the copy webpack plugin.
Btw, thank you for this great project!
Note that it's more of a discussion than a feature request.
When I saw vue-rsloader, I know that this is a plugin migrated from vue-loader, and had some thoughts:
When a webpack loader or plugin cannot be used directly in Rspack, and we cannot also modify it directly, we must fork it and released a new NPM package, so we need a new name for it, If we don't make a naming convention, the final NPM name may have many styles, e.g. when the original name is foo-loader
, the migrated would be:
foo-rsloader
foo-rspack-loader
rspack-foo-loader
IMO I preferred rspack-foo-loader
, but the final decision need discussion from the core team and we need document it.
I'm thinking about fork create-react-app and change the internal webpack usage to rspack and publish a package called cra-rs
, so cra-rs
becomes a drop-in replacement of cra
the migration guide is too simple to guide real world application migration, there're following things we can do to simplify the migration process
Steps to reproduce:
Screenshots:
HoverIssue.pdf
HoverIssue2.pdf
Note:
It's an easy fix if Im able to run the local dev environment. Since this website uses Modern.js any help here would be highly appreciated.
Just like webpack, it provide node api documents for us to custom pack logic.
We need a document (or an index) to map the configuration differences between webpack and rspack, which will help developers migrate smoothly. (It may not be feasible to include every configuration, but the document should include most commonly used configurations.)
Some configurations that differ between the two need to be highlighted separately.
For example, with regards to the 'Externals' configuration, webpack supports multiple types, but rspack only supports Record<string, string>
. This could leave the migration work unsure of how to proceed.
Some configuration documentations are too simple. I think it would be helpful to indicate what work is being done and what features will be supported in the future, such as cache.
代码分割 (Code Splitting)
--
Use case-police to check cases.
--
I think most people will start with the question: "Can I switch my build to rspack?" because people opening the docs are the people who already knew what webpack is.
This means the compact table and migration guide should be moved to the top, or they should be mentioned and link at the top of the introduction and github README.
I have seen some people misunderstand the relationship between Mordern.js and Rspack. We should make declarations for all Rspack's partners.
As a developer working on a vite project, I am suffering from its slow build process. I understand Rspack
is initially targeting folks who use Webpack. However, it would be best if there is a official documentation on guiding migrate vite project towards Rspack
Documentation request, no API.
Well, it was kind of expected. The `browserlist-rs` SWC used doesn't support "extends" syntax.
You could see the limitation here: https://github.com/browserslist/browserslist-rs#limitations
Thanks for reporting. I think we need to improve the document to show the limitations😢.
Originally posted by @hyf0 in web-infra-dev/rspack#2832 (comment)
nope
see on tail of letter G — tip cut off:
No response
open site https://www.rspack.dev/
Parsed result of mailto links will be prefixed with /
so it will doesn't work and always jump to 404
✉️ [[email protected]](mailto:[email protected])
<a href="mailto:[email protected]">[email protected]</a>
give credits to all the contributors to rspack&rspack-website like https://vitest.dev/
rspack-website/docs/en/index.md
Line 30 in 904fa45
Compatible with the architecture and ecology of webpack, no need to build the ecology from scratch
https://github.com/web-infra-dev/rspack/blob/main/crates/rspack_plugin_javascript/src/lib.rs#L77-L91 some of these options are not documented
See pull request:
How to Reproduce?
Open any browser, type "https://www.rspack.dev/zh/config/devserver" in the address bar, and the left-side navigation flickers and then disappears
OS & Browser Version
It seems builtins.treeShaking
is missing, although treeShaking
has documented in Guide
, but I think builtins.treeShaking
is indispensable, because it indeed an option of builtins.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.