Skip to content

Commit

Permalink
fix: update EJS template variable names for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
GiveMe-A-Name committed Jan 23, 2025
1 parent 2d0fb75 commit b1a5a1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ impl RuntimeModule for ChunkPrefetchPreloadFunctionRuntimeModule {
let source = compilation.runtime_template.render(
&self.id,
Some(serde_json::json!({
"$RUNTIME_HANDLERS$": &self.runtime_handlers.to_string(),
"$RUNTIME_FUNCTION$": &self.runtime_function.to_string(),
"RUNTIME_HANDLERS": &self.runtime_handlers.to_string(),
"RUNTIME_FUNCTION": &self.runtime_function.to_string(),
})),
)?;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%- $RUNTIME_HANDLERS$ %> = {};
<%- $RUNTIME_FUNCTION$ %> = <%- basicFunction("chunkId") %> {
Object.keys(<%- $RUNTIME_HANDLERS$ %>).map(function (key) {
<%- $RUNTIME_HANDLERS$ %>[key](chunkId);
<%- RUNTIME_HANDLERS %> = {};
<%- RUNTIME_FUNCTION %> = <%- basicFunction("chunkId") %> {
Object.keys(<%- RUNTIME_HANDLERS %>).map(function (key) {
<%- RUNTIME_HANDLERS %>[key](chunkId);
});
}

0 comments on commit b1a5a1e

Please sign in to comment.