react/compiler/packages/react-compiler-runtime/tsup.config.ts
lauren 0ca3deebcf
[rcr] Fix incorrect output platform (#32569)
Accidentally copypasted the wrong esbuild config.
2025-03-11 10:41:48 -04:00

31 lines
602 B
TypeScript

import {defineConfig} from 'tsup';
export default defineConfig({
entry: ['./src/index.ts'],
outDir: './dist',
external: ['react'],
splitting: false,
sourcemap: true,
dts: false,
bundle: true,
format: 'cjs',
platform: 'node',
target: 'es2015',
banner: {
js: `/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @lightSyntaxTransform
* @noflow
* @nolint
* @preventMunge
* @preserve-invariant-messages
*/
"use no memo";`,
},
});