mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
Switch most remaining extensions to use esbuild
Just 3 left: - git and github. These are doing weird stuff with d.ts imports and const enums - github-authentication which has some tricky path mapping stuff
This commit is contained in:
@@ -4,3 +4,4 @@ typings/**
|
||||
**/*.map
|
||||
.gitignore
|
||||
tsconfig*.json
|
||||
esbuild*.mts
|
||||
|
||||
18
extensions/vscode-test-resolver/esbuild.browser.mts
Normal file
18
extensions/vscode-test-resolver/esbuild.browser.mts
Normal file
@@ -0,0 +1,18 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* 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', 'browser');
|
||||
|
||||
run({
|
||||
platform: 'browser',
|
||||
entryPoints: {
|
||||
'testResolverMain': path.join(srcDir, 'extension.browser.ts'),
|
||||
},
|
||||
srcDir,
|
||||
outdir: outDir,
|
||||
}, process.argv);
|
||||
@@ -2,15 +2,17 @@
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
// @ts-check
|
||||
import { browser as withBrowserDefaults } from '../shared.webpack.config.mjs';
|
||||
import * as path from 'node:path';
|
||||
import { run } from '../esbuild-extension-common.mts';
|
||||
|
||||
export default withBrowserDefaults({
|
||||
context: import.meta.dirname,
|
||||
entry: {
|
||||
extension: './src/extension.browser.ts'
|
||||
const srcDir = path.join(import.meta.dirname, 'src');
|
||||
const outDir = path.join(import.meta.dirname, 'dist');
|
||||
|
||||
run({
|
||||
platform: 'node',
|
||||
entryPoints: {
|
||||
'extension': path.join(srcDir, 'extension.ts'),
|
||||
},
|
||||
output: {
|
||||
filename: 'testResolverMain.js'
|
||||
}
|
||||
});
|
||||
srcDir,
|
||||
outdir: outDir,
|
||||
}, process.argv);
|
||||
10
extensions/vscode-test-resolver/tsconfig.browser.json
Normal file
10
extensions/vscode-test-resolver/tsconfig.browser.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {},
|
||||
"exclude": [
|
||||
"./src/test/**"
|
||||
],
|
||||
"files": [
|
||||
"./src/extension.browser.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user