Unverified Commit 34fa5f85 authored by William Duplenne's avatar William Duplenne Committed by GitHub

[Docs] Update react-remove-properties example (#40307)

Hi 👋 

Based on https://nextjs.org/docs/advanced-features/compiler#remove-react-properties, this is not experimental but lives under `compiler` now.

## Documentation / Examples
- [x] Make sure the linting passes by running pnpm lint
- [x] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
parent aa5be3ff
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
module.exports = { module.exports = {
experimental: { compiler: {
reactRemoveProperties: true, reactRemoveProperties: true,
// Or, specify a custom list of regular expressions to match properties to remove. // Or, specify a custom list of regular expressions to match properties to remove.
// The regexes defined here are processed in Rust so the syntax is different from // The regexes defined here are processed in Rust so the syntax is different from
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment