fix: entry startup for target node #3006
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related issue (if exists)
close #2995
Summary
馃 Generated by Copilot at 10402b0
This pull request adds new features and fixes to the
rspack
project, which is a Rust-based web packer. It introduces new plugins and runtime modules to handle the dependencies and entry points of chunks that are loaded by different chunk loading types. It also adds new functions and variables to therspack_core
crate to support the new plugins and runtime modules. It updates therspack_plugin_javascript
and therspack_binding_options
crates to use the new plugins and runtime modules. It also adds a changeset file for the@rspack/core
package with a patch version bump and a fix message.Walkthrough
馃 Generated by Copilot at 10402b0
@rspack/core
package with a patch version bump and a fix message (link)StartupChunkDependenciesPlugin
struct that modifies the runtime requirements and the runtime modules for the chunks that have entry dependent chunks (link, link, link)StartupChunkDependenciesRuntimeModule
struct that ensures that the entry dependent chunks are loaded before the startup function is executed (link, link, link, link)StartupEntrypointRuntimeModule
struct that defines the startup function for the chunk (link, link, link, link, link)ChunkGraph
struct that check and return the entry dependent chunks of a given chunk (link)JavascriptPlugin
struct to handle the new runtime requirements and generate the source code for the startup function of a chunk (link, link, link)CommonJsChunkLoadingPlugin
struct to add a new runtime requirement for the entry point chunks (link)GetChunkFilenameRuntimeModule
struct to handle the new runtime requirement for including the entry dependent chunks in the chunk ids array (link)get_all_referenced_async_entry_points
in theChunk
struct (link)Some
function in therspack_binding_options
crate to add a new plugin for therequire
andimport-scripts
chunk loading types (link)RuntimeGlobals
enum and their corresponding cases to theto_string
method (link, link)