| 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 path from 'path'; |
| 9 | import {fileURLToPath} from 'url'; |
| 10 | |
| 11 | const __filename = fileURLToPath(import.meta.url); |
| 12 | const __dirname = path.dirname(__filename); |
| 13 | |
| 14 | export const entryPoint = path.join(__dirname, '../client/src/extension.ts'); |
| 15 | export const outfile = path.join(__dirname, '../dist/extension.js'); |
| 16 | export const config = { |
| 17 | entryPoints: [entryPoint], |
| 18 | outfile, |
| 19 | bundle: true, |
| 20 | external: ['vscode'], |
| 21 | format: 'cjs', |
| 22 | platform: 'node', |
| 23 | banner: { |
| 24 | js: `/** |
| 25 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 26 | * |
| 27 | * This source code is licensed under the MIT license found in the |
| 28 | * LICENSE file in the root directory of this source tree. |
| 29 | * |
| 30 | * @lightSyntaxTransform |
| 31 | * @noflow |
| 32 | * @nolint |
| 33 | * @preventMunge |
| 34 | * @preserve-invariant-messages |
| 35 | */ |
| 36 | |
| 37 | `, |
| 38 | }, |
| 39 | }; |