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