Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahabhgk committed Aug 15, 2024
1 parent c44c94b commit 537e5db
Show file tree
Hide file tree
Showing 27 changed files with 17 additions and 9 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/rspack_core/src/concatenated_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ impl Module for ConcatenatedModule {
Ok(BuildResult::default())
}

#[tracing::instrument(name = "ConcatenatedModule::code_generation", skip_all, fields(identifier = ?self.identifier()))]
fn code_generation(
&self,
compilation: &Compilation,
Expand Down
1 change: 1 addition & 0 deletions crates/rspack_core/src/context_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ impl Module for ContextModule {
})
}

#[tracing::instrument(name = "ContextModule::code_generation", skip_all, fields(identifier = ?self.identifier()))]
fn code_generation(
&self,
compilation: &Compilation,
Expand Down
1 change: 1 addition & 0 deletions crates/rspack_core/src/external_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ impl Module for ExternalModule {
Ok(build_result)
}

#[tracing::instrument(name = "ExternalModule::code_generation", skip_all, fields(identifier = ?self.identifier()))]
fn code_generation(
&self,
compilation: &Compilation,
Expand Down
1 change: 1 addition & 0 deletions crates/rspack_core/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use crate::{
ModuleGraph, ModuleLayer, ModuleType, NormalModule, RawModule, Resolve, RunnerContext,
RuntimeSpec, SelfModule, SharedPluginDriver, SourceType,
};

pub struct BuildContext<'a> {
pub runner_context: RunnerContext,
pub plugin_driver: SharedPluginDriver,
Expand Down
1 change: 1 addition & 0 deletions crates/rspack_core/src/normal_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ impl Module for NormalModule {
})
}

#[tracing::instrument(name = "NormalModule::code_generation", skip_all, fields(identifier = ?self.identifier()))]
fn code_generation(
&self,
compilation: &Compilation,
Expand Down
1 change: 1 addition & 0 deletions crates/rspack_core/src/raw_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ impl Module for RawModule {
})
}

#[tracing::instrument(name = "RawModule::code_generation", skip_all, fields(identifier = ?self.identifier()))]
fn code_generation(
&self,
compilation: &crate::Compilation,
Expand Down
2 changes: 1 addition & 1 deletion crates/rspack_core/src/self_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl Module for SelfModule {
})
}

#[allow(clippy::unwrap_in_result)]
#[tracing::instrument(name = "SelfModule::code_generation", skip_all, fields(identifier = ?self.identifier()))]
fn code_generation(
&self,
_compilation: &Compilation,
Expand Down
1 change: 1 addition & 0 deletions crates/rspack_plugin_extract_css/src/css_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ impl Module for CssModule {
})
}

#[tracing::instrument(name = "ExtractCssModule::code_generation", skip_all, fields(identifier = ?self.identifier()))]
fn code_generation(
&self,
_compilation: &Compilation,
Expand Down
2 changes: 1 addition & 1 deletion crates/rspack_plugin_hmr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ license = "MIT"
name = "rspack_plugin_hmr"
repository = "https://github.com/web-infra-dev/rspack"
version = "0.1.0"

[dependencies]
rspack_collections = { version = "0.1.0", path = "../rspack_collections" }
rspack_core = { version = "0.1.0", path = "../rspack_core" }
rspack_error = { version = "0.1.0", path = "../rspack_error" }
rspack_hash = { version = "0.1.0", path = "../rspack_hash" }
rspack_hook = { version = "0.1.0", path = "../rspack_hook" }
rspack_util = { version = "0.1.0", path = "../rspack_util" }

Expand Down
1 change: 1 addition & 0 deletions crates/rspack_plugin_lazy_compilation/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ impl Module for LazyCompilationProxyModule {
})
}

#[tracing::instrument(name = "LazyCompilationProxyModule::code_generation", skip_all, fields(identifier = ?self.identifier()))]
fn code_generation(
&self,
compilation: &Compilation,
Expand Down
1 change: 0 additions & 1 deletion crates/rspack_plugin_mf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ version = "0.1.0"
rspack_collections = { version = "0.1.0", path = "../rspack_collections" }
rspack_core = { version = "0.1.0", path = "../rspack_core" }
rspack_error = { version = "0.1.0", path = "../rspack_error" }
rspack_hash = { version = "0.1.0", path = "../rspack_hash" }
rspack_hook = { version = "0.1.0", path = "../rspack_hook" }
rspack_loader_runner = { version = "0.1.0", path = "../rspack_loader_runner" }
rspack_plugin_runtime = { version = "0.1.0", path = "../rspack_plugin_runtime" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ impl Module for ContainerEntryModule {
})
}

#[tracing::instrument(name = "ContainerEntryModule::code_generation", skip_all, fields(identifier = ?self.identifier()))]
fn code_generation(
&self,
compilation: &Compilation,
Expand Down
1 change: 1 addition & 0 deletions crates/rspack_plugin_mf/src/container/fallback_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ impl Module for FallbackModule {
})
}

#[tracing::instrument(name = "FallbackModule::code_generation", skip_all, fields(identifier = ?self.identifier()))]
fn code_generation(
&self,
compilation: &Compilation,
Expand Down
1 change: 1 addition & 0 deletions crates/rspack_plugin_mf/src/container/remote_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ impl Module for RemoteModule {
})
}

#[tracing::instrument(name = "RemoteModule::code_generation", skip_all, fields(identifier = ?self.identifier()))]
fn code_generation(
&self,
compilation: &Compilation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl Module for ConsumeSharedModule {
})
}

#[allow(clippy::unwrap_in_result)]
#[tracing::instrument(name = "ConsumeSharedModule::code_generation", skip_all, fields(identifier = ?self.identifier()))]
fn code_generation(
&self,
compilation: &Compilation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl Module for ProvideSharedModule {
})
}

#[allow(clippy::unwrap_in_result)]
#[tracing::instrument(name = "ProvideSharedModule::code_generation", skip_all, fields(identifier = ?self.identifier()))]
fn code_generation(
&self,
compilation: &Compilation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ __webpack_require__.e = function (chunkId) {
// return url for filenames not based on template

// return url for filenames based on template
return "" + chunkId + ".$" + "fcf981e297c26c279077" + "$.css";
return "" + chunkId + ".$" + "3c46e7c70e9c35a7c0c2" + "$.css";
};

})();
// webpack/runtime/get_full_hash
(() => {
__webpack_require__.h = function () {
return "9795acfd15167201fff0";
return "390adcbb2f3e066ff2d0";
};

})();
Expand Down

0 comments on commit 537e5db

Please sign in to comment.