Revert "rm webpack config from terminal-suggest" (#238981)

Revert "rm webpack config from terminal-suggest (#238874)"

This reverts commit b54c554bb2.
This commit is contained in:
Megan Rogge
2025-01-28 10:30:46 -06:00
committed by GitHub
parent 7a3d738bbb
commit 7f434da1e8
4 changed files with 52 additions and 4 deletions
@@ -2,4 +2,6 @@ src/**
out/**
tsconfig.json
.vscode/**
extension.webpack.config.js
extension-browser.webpack.config.js
package-lock.json
@@ -0,0 +1,25 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
//@ts-check
'use strict';
const withBrowserDefaults = require('../shared.webpack.config').browser;
module.exports = withBrowserDefaults({
context: __dirname,
entry: {
extension: './src/terminalSuggestMain.ts'
},
output: {
filename: 'terminalSuggestMain.js'
},
resolve: {
fallback: {
'child_process': false
}
}
});
@@ -0,0 +1,23 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
//@ts-check
'use strict';
const withDefaults = require('../shared.webpack.config');
module.exports = withDefaults({
context: __dirname,
entry: {
extension: './src/terminalSuggestMain.ts'
},
output: {
filename: 'terminalSuggestMain.js'
},
resolve: {
mainFields: ['module', 'main'],
extensions: ['.ts', '.js'] // support ts-files and js-files
}
});
+2 -4
View File
@@ -22,6 +22,7 @@
"compile": "npx gulp compile-extension:terminal-suggest",
"watch": "npx gulp watch-extension:terminal-suggest"
},
"main": "./out/terminalSuggestMain",
"activationEvents": [
"onTerminalCompletionsRequested"
@@ -29,8 +30,5 @@
"repository": {
"type": "git",
"url": "https://github.com/microsoft/vscode.git"
},
"extensionKind": [
"workspace"
]
}
}