/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
examples/react-remove-properties/next.config.js
16 строк
460 B
Steven
chore(examples): use default prettier for examples/templates (#60530)
12 янв 2024, 02:01
Не верифицирован
12 янв 2024, 02:01
4466ba4
Код
Авторство
О чём код?
// @ts-check /** * @type {import('next').NextConfig} **/ const nextConfig = { 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 // JavaScript `RegExp`s. See https://docs.rs/regex. // reactRemoveProperties: { properties: ['^data-custom$'] }, }, }; module.exports = nextConfig;