Conversation
✅ Deploy Preview for rolldown-rs canceled.
|
underfin
commented
Nov 11, 2024
Contributor
Benchmarks Rust |
afd5f67 to
a7d0d80
Compare
b8ece38 to
7f8b3d2
Compare
hyf0
reviewed
Nov 11, 2024
hyf0
reviewed
Nov 11, 2024
hyf0
reviewed
Nov 11, 2024
f8ab72c to
a02257b
Compare
hyf0
reviewed
Nov 12, 2024
hyf0
reviewed
Nov 12, 2024
Member
|
Except above comments, others looks fine. Good job! |
hyf0
approved these changes
Nov 12, 2024
graphite-app bot
pushed a commit
that referenced
this pull request
Sep 16, 2025
The code for `this.load` waited for the `markModuleLoaded` callback to be called. But this should be able to simplify by using a future. This PR refactors the code for `this.load` to wait for a future instead. This should also improve the perf a bit because we no longer have to call `markModuleLoaded` for each module. I wonder if I'm missing something. refs #4156, #2777, #2772, #2687
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Support
PluginContext.load, ref https://rollupjs.org/plugin-development/#this-load. close #2355.The pr using msg channel to hand extra modules need to load. Here need to use one channel to avoid #2687 (comment).
The pr implements it as much as possible, but it also has a problem, consider some cases at here.
ModuleTableshas not the moduleA, here only fetch it.ModuleTableshas moduleAand already fetched, here return already fetched result, usingPluginContext#modules.ModuleTableshas moduleAbut it is not fetched finished, here may lost result because here can't ensure the fetch time before the module task is finished. The case maybe happend because it is run at parallel. We could re-fetch it at the case, but it call the module-related hook again, It could be put as low priority to resolve.