Skip to content

Allow passing more options in reactCompiler #92365

@dimaMachina

Description

@dimaMachina

Link to the code that reproduces this issue

inkeep/agents#3016

To Reproduce

try to set validateNoImpureFunctionsInRender: true in next.config

Current vs. Expected behavior

Currently it's possible to configure only compilationMode and panicThreshold options in reactCompiler, I wasn't able to turn in validateNoImpureFunctionsInRender which is turn in in React compiler playground

Image

Provide environment information

Operating System:
  Platform: darwin
  Arch: x64
  Version: Darwin Kernel Version 24.2.0: Fri Dec  6 18:56:34 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6020
  Available memory (MB): 98304
  Available CPU cores: 12
Binaries:
  Node: 22.21.1
  npm: 10.9.4
  Yarn: N/A
  pnpm: 10.33.0
Relevant Packages:
  next: 16.2.2 // Latest available version is detected (16.2.2).
  eslint-config-next: N/A
  react: 19.2.4
  react-dom: 19.2.4
  typescript: N/A
Next.js Config:
  output: standalone

Which area(s) are affected? (Select all that apply)

React

Which stage(s) are affected? (Select all that apply)

next build (local)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ReactRelated to React.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions