Skip to content

Commit

Permalink
small memory and tracing improvement (#66899)
Browse files Browse the repository at this point in the history
### What?

* reduce resolve tasks
* fix name for tracing
  • Loading branch information
sokra authored Jun 18, 2024
1 parent 83f21e9 commit c9eab6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ impl RuntimeEntry {
None,
IssueSeverity::Error.cell(),
)
.resolve()
.await?
.primary_modules()
.await?;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl NextJsReactServerComponents {

#[async_trait]
impl CustomTransformer for NextJsReactServerComponents {
#[tracing::instrument(level = tracing::Level::TRACE, name = "nexT_react_server_components", skip_all)]
#[tracing::instrument(level = tracing::Level::TRACE, name = "next_react_server_components", skip_all)]
async fn transform(&self, program: &mut Program, ctx: &TransformContext<'_>) -> Result<()> {
let file_name = if ctx.file_path_str.is_empty() {
FileName::Anon
Expand Down

0 comments on commit c9eab6e

Please sign in to comment.