| 1 | /** |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | */ |
| 7 | |
| 8 | 'use strict'; |
| 9 | |
| 10 | // TODO: this doesn't make sense for an ESLint rule. |
| 11 | // We need to fix our build process to not create bundles for "raw" packages like this. |
| 12 | if (process.env.NODE_ENV === 'production') { |
| 13 | module.exports = require('./cjs/eslint-plugin-react-hooks.production.js'); |
| 14 | } else { |
| 15 | module.exports = require('./cjs/eslint-plugin-react-hooks.development.js'); |
| 16 | } |
| 17 | |
| 18 | // Hint to Node’s cjs-module-lexer to make named imports work |
| 19 | // https://github.com/facebook/react/issues/34801#issuecomment-3433478810 |
| 20 | // eslint-disable-next-line ft-flow/no-unused-expressions |
| 21 | 0 && |
| 22 | (module.exports = { |
| 23 | meta: true, |
| 24 | rules: true, |
| 25 | configs: true, |
| 26 | }); |