Skip to content

Commit

Permalink
feat: support runtime requirements in tree hook
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder committed Sep 19, 2024
1 parent 8330976 commit 33e55e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/node_binding/src/plugins/interceptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,9 @@ impl CompilationRuntimeRequirementInTree for CompilationRuntimeRequirementInTree
let chunk = compilation.chunk_by_ukey.expect_get(chunk_ukey);
let arg = JsRuntimeRequirementInTreeArg {
chunk: JsChunk::from(chunk),
runtime_requirements: JsRuntimeGlobals::from(*runtime_requirements),
runtime_requirements: JsRuntimeGlobals::from(
runtime_requirements.union(*runtime_requirements_mut),
),
};
let result = self.function.blocking_call_with_sync(arg)?;
if let Some(result) = result {
Expand Down

0 comments on commit 33e55e0

Please sign in to comment.