Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Oct 23, 2022
1 parent 8ddbe9c commit 0e562d2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/next-swc/crates/core/src/react_server_components.rs
Expand Up @@ -397,10 +397,7 @@ pub fn server_components<C: Comments>(
JsWord::from("react-dom/server"),
JsWord::from("next/router"),
],
invalid_client_imports: vec![
JsWord::from("server-only"),
JsWord::from("next/headers"),
],
invalid_client_imports: vec![JsWord::from("server-only"), JsWord::from("next/headers")],
invalid_server_react_dom_apis: vec![
JsWord::from("findDOMNode"),
JsWord::from("flushSync"),
Expand Down

0 comments on commit 0e562d2

Please sign in to comment.