-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix(publish): lazily parse sources #22301
fix(publish): lazily parse sources #22301
Conversation
return Ok(Response::new(UnsyncBoxBody::new( | ||
http_body_util::Full::new(Bytes::from(body)), | ||
))); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This confused for a few minutes, but we have ended up with two JSR test registries. I'll circle back with another PR that gets all the JSR tests to use this "test registry server".
pub trait SourceTextStore { | ||
fn get_source_text<'a>( | ||
&'a self, | ||
specifier: &ModuleSpecifier, | ||
) -> Option<Cow<'a, SourceTextInfo>>; | ||
} | ||
|
||
pub struct SourceTextParsedSourceStore<'a>(pub &'a dyn ParsedSourceStore); | ||
pub struct SourceTextParsedSourceStore<'a>(pub LazyGraphSourceParser<'a>); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe fixes #22288, but I don't have a test for that yet.
Closes #22290