mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
20 lines
702 B
JavaScript
20 lines
702 B
JavaScript
|
|
'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,
|
||
|
|
};
|