main
js 19 lines 702 Bytes
Raw
1 'use strict';
2
3 /**
4 * HACK: @poteto React Compiler inlines Zod in its build artifact. Zod spreads values passed to .map
5 * which causes issues in @babel/plugin-transform-spread in loose mode, as it will result in
6 * {undefined: undefined} which fails to parse.
7 *
8 * [@babel/plugin-transform-block-scoping', {throwIfClosureRequired: true}] also causes issues with
9 * the built version of the compiler. The minimal set of plugins needed for this file is reexported
10 * from babel.config-ts.
11 *
12 * I will remove this hack later when we move eslint-plugin-react-hooks into the compiler directory.
13 **/
14
15 const baseConfig = require('./babel.config-ts');
16
17 module.exports = {
18 plugins: baseConfig.plugins,
19 };