From 34fa5f8535c5e7d663c8bec829b681497c1801c3 Mon Sep 17 00:00:00 2001 From: William Duplenne Date: Thu, 8 Sep 2022 01:53:42 +0200 Subject: [PATCH] [Docs] Update react-remove-properties example (#40307) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- examples/react-remove-properties/next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/react-remove-properties/next.config.js b/examples/react-remove-properties/next.config.js index 7d3aca8225d8..37db77a9c2a5 100644 --- a/examples/react-remove-properties/next.config.js +++ b/examples/react-remove-properties/next.config.js @@ -1,6 +1,6 @@ /** @type {import('next').NextConfig} */ module.exports = { - experimental: { + compiler: { reactRemoveProperties: true, // 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