mirror of
https://github.com/facebook/react.git
synced 2026-02-24 20:53:03 +00:00
Adds basic build scripts. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/31927). * #31918 * __->__ #31927
40 lines
960 B
JavaScript
40 lines
960 B
JavaScript
/**
|
|
* 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, '../client/src/extension.ts');
|
|
export const outfile = path.join(__dirname, '../dist/extension.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
|
|
*/
|
|
|
|
`,
|
|
},
|
|
};
|