mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-17 23:35:54 +01:00
- Make sure we still always type check using `tsgo --noEmit` - Align names of esbuild files - Convert all esbuild files to typescript. We use the `.mts` extension to avoid annoying node warnings about using pacakges
25 lines
904 B
TypeScript
25 lines
904 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 path from 'path';
|
|
import { run } from '../esbuild-webview-common.mts';
|
|
|
|
const srcDir = path.join(import.meta.dirname, 'chat-webview-src');
|
|
const outDir = path.join(import.meta.dirname, 'chat-webview-out');
|
|
|
|
run({
|
|
entryPoints: {
|
|
'index': path.join(srcDir, 'index.ts'),
|
|
'index-editor': path.join(srcDir, 'index-editor.ts'),
|
|
'codicon': path.join(import.meta.dirname, 'node_modules', '@vscode', 'codicons', 'dist', 'codicon.css'),
|
|
},
|
|
srcDir,
|
|
outdir: outDir,
|
|
additionalOptions: {
|
|
loader: {
|
|
'.ttf': 'dataurl',
|
|
}
|
|
}
|
|
}, process.argv);
|