mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 16:25:00 +01:00
26 lines
939 B
TypeScript
26 lines
939 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
import * as path from 'node:path';
|
|
import { run } from '../esbuild-extension-common.mts';
|
|
|
|
const srcDir = path.join(import.meta.dirname, 'src');
|
|
const outDir = path.join(import.meta.dirname, 'dist');
|
|
|
|
run({
|
|
platform: 'node',
|
|
format: 'esm',
|
|
entryPoints: {
|
|
'extension': path.join(srcDir, 'extension.ts'),
|
|
},
|
|
srcDir,
|
|
outdir: outDir,
|
|
additionalOptions: {
|
|
banner: {
|
|
// The tunnel package uses `require` and needs this shim to work in an ESM environment
|
|
js: `import { createRequire } from 'module'; const require = createRequire(import.meta.url);`,
|
|
},
|
|
},
|
|
}, process.argv);
|