/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
compiler/packages/react-forgive/scripts/server.mjs
39 строк
953 B
lauren
[forgive] Init (#31918)
25 фев 2025, 20:19
Не верифицирован
25 фев 2025, 20:19
d42a90c
Код
Авторство
О чём код?
/** * 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. */ import path from 'path'; import {fileURLToPath} from 'url'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); export const entryPoint = path.join(__dirname, '../server/src/index.ts'); export const outfile = path.join(__dirname, '../dist/server.js'); export const config = { entryPoints: [entryPoint], outfile, bundle: true, external: ['vscode'], format: 'cjs', platform: 'node', 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 */ `, }, };