Skip to content

Commit 9ea86d7

Browse files
committed
Fix tree shaking test
1 parent 150100d commit 9ea86d7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

crates/next-custom-transforms/src/transforms/server_actions.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -1921,13 +1921,7 @@ impl<C: Comments> VisitMut for ServerActions<C> {
19211921
// sourcemapping with better logs/errors
19221922
// For production this is not generated because it would
19231923
// leak server code when available from the browser.
1924-
span: if self.config.is_react_server_layer
1925-
|| self.config.is_development
1926-
{
1927-
call_expr_span
1928-
} else {
1929-
PURE_SP
1930-
},
1924+
span: call_expr_span,
19311925
callee: Callee::Expr(Box::new(Expr::Ident(
19321926
create_ref_ident.clone(),
19331927
))),

0 commit comments

Comments
 (0)