Skip to content

Commit

Permalink
Review comments: remove unnecessary Box
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Nov 19, 2024
1 parent dbdffa7 commit 34c2332
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ impl SinglePatternMapping {
match self {
Self::Invalid => self.create_id(key_expr),
Self::Unresolvable(request) => throw_module_not_found_expr(request),
Self::Ignored => *quote_expr!("{}"),
Self::Module(_) | Self::ModuleLoader(_) => *quote_expr!(
"__turbopack_require__($arg)",
Self::Ignored => quote!("{}" as Expr),
Self::Module(_) | Self::ModuleLoader(_) => quote!(
"__turbopack_require__($arg)" as Expr,
arg: Expr = self.create_id(key_expr)
),
Self::External(request, ExternalType::CommonJs) => *quote_expr!(
"__turbopack_external_require__($arg, () => require($arg))",
Self::External(request, ExternalType::CommonJs) => quote!(
"__turbopack_external_require__($arg, () => require($arg))" as Expr,
arg: Expr = request.as_str().into()
),
Self::External(request, ty) => throw_module_not_found_error_expr(
Expand Down

0 comments on commit 34c2332

Please sign in to comment.