/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
babel.config-react-compiler.js
19 строк
702 B
michael faith
feat(eslint-plugin-react-hooks): merge rule from eslint-plugin-react-compiler into `react-hooks` plugin (#32416)
13 мар 2025, 04:43
Не верифицирован
13 мар 2025, 04:43
5ccfcd1
Код
Авторство
О чём код?
'use strict'; /** * HACK: @poteto React Compiler inlines Zod in its build artifact. Zod spreads values passed to .map * which causes issues in @babel/plugin-transform-spread in loose mode, as it will result in * {undefined: undefined} which fails to parse. * * [@babel/plugin-transform-block-scoping', {throwIfClosureRequired: true}] also causes issues with * the built version of the compiler. The minimal set of plugins needed for this file is reexported * from babel.config-ts. * * I will remove this hack later when we move eslint-plugin-react-hooks into the compiler directory. **/ const baseConfig = require('./babel.config-ts'); module.exports = { plugins: baseConfig.plugins, };