mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
webpack - check js files, declare params, #56081
This commit is contained in:
@@ -3,12 +3,18 @@
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
//@ts-check
|
||||
/** @typedef {import('webpack').Configuration} WebpackConfig **/
|
||||
|
||||
'use strict';
|
||||
|
||||
const path = require('path');
|
||||
const merge = require('merge-options');
|
||||
|
||||
module.exports = function withDefaults(extConfig) {
|
||||
|
||||
module.exports = function withDefaults(/**@type WebpackConfig*/extConfig) {
|
||||
|
||||
/** @type WebpackConfig */
|
||||
let 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
|
||||
|
||||
Reference in New Issue
Block a user