| 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: ['@babel/types'], |
| 14 | splitting: false, |
| 15 | sourcemap: false, |
| 16 | dts: false, |
| 17 | bundle: true, |
| 18 | format: 'cjs', |
| 19 | platform: 'node', |
| 20 | target: 'es2015', |
| 21 | banner: { |
| 22 | js: `/** |
| 23 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 24 | * |
| 25 | * This source code is licensed under the MIT license found in the |
| 26 | * LICENSE file in the root directory of this source tree. |
| 27 | * |
| 28 | * @lightSyntaxTransform |
| 29 | * @noflow |
| 30 | * @nolint |
| 31 | * @preventMunge |
| 32 | * @preserve-invariant-messages |
| 33 | */`, |
| 34 | }, |
| 35 | }); |