| 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 | import {defineConfig} from 'tsup'; |
| 9 | |
| 10 | export default defineConfig({ |
| 11 | entry: ['./src/index.ts'], |
| 12 | outDir: './dist', |
| 13 | external: [ |
| 14 | '@babel/core', |
| 15 | 'hermes-parser', |
| 16 | 'zod', |
| 17 | 'zod/v4', |
| 18 | 'zod-validation-error', |
| 19 | 'zod-validation-error/v4', |
| 20 | ], |
| 21 | splitting: false, |
| 22 | sourcemap: false, |
| 23 | dts: false, |
| 24 | bundle: true, |
| 25 | format: 'cjs', |
| 26 | platform: 'node', |
| 27 | banner: { |
| 28 | js: `/** |
| 29 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 30 | * |
| 31 | * This source code is licensed under the MIT license found in the |
| 32 | * LICENSE file in the root directory of this source tree. |
| 33 | * |
| 34 | * @lightSyntaxTransform |
| 35 | * @noflow |
| 36 | * @nolint |
| 37 | * @preventMunge |
| 38 | * @preserve-invariant-messages |
| 39 | */ |
| 40 | |
| 41 | "use no memo";`, |
| 42 | }, |
| 43 | }); |