-
-
Notifications
You must be signed in to change notification settings - Fork 577
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]: There are some missing APIs for frameworks support React Server Component #8469
Comments
The compilation.entries.entries is exists. You can use it directly. |
Tasks
|
I am supporting module graph api here: #8470 |
Yeah, you are right, For |
I would like to know where the hooks listed above are used in the RSC build. Do we have corresponding links to check? |
@yimingjfe Can you give us a RSC webpack plugin example to explain it |
Sure, you can check it at the link modern.js/packages/cli/uni-builder/src/shared/rsc at feat-next-wym · web-infra-dev/modern.js · GitHub, it is still in development. |
What problem does this feature solve?
In Modern.js, we want to support RSC building base on Rspack. When using webpack, the solution can work normally, but with Rspack, there are some APIs that are not exported now, so it's difficult to support RSC in the Modern.js repository.
The following APIs are currently used for support RSC, but are not seen exported in Rspack:
Server-side building:
compilation.addInclude
webpack.util.runtime.getEntryRuntime
compilation.moduleGraph.getExportsInfo
exportsInfo.setUsedInUnknownWay
compilation.hooks.needAdditionalPass
compilation.dependencyFactories
compilation.dependencyTemplates
module.addDependency
NullDependency
compilation.hooks.afterOptimizeModuleIds
chunkGraph.getModuleId
Client-side building:
AsyncDependenciesBlock
block.addDependency
Module
module.blocks
module.addBlock
module.nameForCondition
chunkGraph.getModuleId
chunkGraph.getModuleChunksIterable
moduleGraph.getOutgoingConnections
Here there are some APIs that may have alternatives , and some are difficult to have real alternatives.
I want to discuss what the recommended solution is from the perspective of Rspack, such as the
addDependency
API, in the webpack ecosystem, there are many webpack plugins that depend on it.What does the proposed API of configuration look like?
It is best to be consistent with webpack.
The text was updated successfully, but these errors were encountered: