-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathesbuild.mjs
More file actions
37 lines (33 loc) · 1.41 KB
/
esbuild.mjs
File metadata and controls
37 lines (33 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { autoEsbuildOrWatch, autoSelectEsbuildConfig } from '@microsoft/vscode-azext-eng/esbuild';
import { copy } from 'esbuild-plugin-copy';
const { extensionConfig, telemetryConfig } = autoSelectEsbuildConfig();
/** @type {import('esbuild').BuildOptions} */
const finalConfig = {
...extensionConfig,
entryPoints: [
...extensionConfig.entryPoints,
{
in: './src/cloudConsole/cloudShellChildProcess/cloudConsoleLauncher.ts',
out: 'cloudConsoleLauncher',
},
],
// Disable code splitting to avoid VS Code extension loading issues (see #1352)
splitting: false,
format: 'cjs',
plugins: [
...extensionConfig.plugins,
copy({
assets: [
{
from: './node_modules/@microsoft/vscode-azext-azureutils/resources/azureIcons/*.svg',
to: './node_modules/@microsoft/vscode-azext-azureutils/resources/azureIcons',
},
],
}),
],
};
await autoEsbuildOrWatch({ extensionConfig: finalConfig, telemetryConfig });