mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
Update webpack (#177265)
* update webpack * update `@types/webpack` * update copy-webpack-plugin * update @types/webpack in build * fix compile error in @types/eslint
This commit is contained in:
committed by
GitHub
parent
a7dee48adf
commit
e88eb65966
@@ -22,8 +22,7 @@ const tsLoaderOptions = {
|
||||
onlyCompileBundledFiles: true,
|
||||
};
|
||||
|
||||
function withNodeDefaults(/**@type WebpackConfig*/extConfig) {
|
||||
/** @type WebpackConfig */
|
||||
function withNodeDefaults(/**@type WebpackConfig & { context: string }*/extConfig) {
|
||||
const defaultConfig = {
|
||||
mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production')
|
||||
target: 'node', // extensions run in a node context
|
||||
@@ -105,7 +104,7 @@ function nodePlugins(context) {
|
||||
* }} AdditionalBrowserConfig
|
||||
*/
|
||||
|
||||
function withBrowserDefaults(/**@type WebpackConfig*/extConfig, /** @type AdditionalBrowserConfig */ additionalOptions = {}) {
|
||||
function withBrowserDefaults(/**@type WebpackConfig & { context: string }*/extConfig, /** @type AdditionalBrowserConfig */ additionalOptions = {}) {
|
||||
/** @type WebpackConfig */
|
||||
const defaultConfig = {
|
||||
mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production')
|
||||
|
||||
Reference in New Issue
Block a user