Skip to content

Commit

Permalink
resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Oct 10, 2024
1 parent 00006aa commit 7c70c8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions crates/next-core/src/next_import_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,8 @@ pub async fn get_next_client_import_map(
match ty.into_value() {
ClientContextType::Pages { .. } => {}
ClientContextType::App { app_dir } => {
let react_flavor =
if *next_config.enable_ppr().await?
let react_flavor = if *next_config.enable_ppr().await?
|| *next_config.enable_taint().await?
|| *next_config.enable_dynamic_io().await?
|| *next_config.enable_react_owner_stack().await?
{
"-experimental"
Expand Down Expand Up @@ -688,9 +686,8 @@ async fn rsc_aliases(
) -> Result<()> {
let ppr = *next_config.enable_ppr().await?;
let taint = *next_config.enable_taint().await?;
let dynamic_io = *next_config.enable_dynamic_io().await?;
let react_owner_stack = *next_config.enable_react_owner_stack().await?;
let react_channel = if ppr || taint || dynamic_io || react_owner_stack {
let react_channel = if ppr || taint || react_owner_stack {
"-experimental"
} else {
""
Expand Down
4 changes: 2 additions & 2 deletions packages/next/src/lib/needs-experimental-react.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { NextConfig } from '../server/config-shared'

export function needsExperimentalReact(config: NextConfig) {
const { ppr, taint, dynamicIO, reactOwnerStack } = config.experimental || {}
return Boolean(ppr || taint || dynamicIO || reactOwnerStack)
const { ppr, taint, reactOwnerStack } = config.experimental || {}
return Boolean(ppr || taint || reactOwnerStack)
}

0 comments on commit 7c70c8d

Please sign in to comment.