vscode/extensions/npm/extension-browser.webpack.config.js

25 lines
678 B
JavaScript
Raw Normal View History

2020-06-17 09:39:14 +00:00
/*---------------------------------------------------------------------------------------------
* 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';
2020-06-25 21:21:56 +00:00
const withBrowserDefaults = require('../shared.webpack.config').browser;
2020-06-17 09:39:14 +00:00
2020-06-25 21:21:56 +00:00
module.exports = withBrowserDefaults({
2020-06-17 09:39:14 +00:00
context: __dirname,
entry: {
extension: './src/npmBrowserMain.ts'
},
output: {
filename: 'npmBrowserMain.js'
},
node: {
2021-04-13 17:34:43 +00:00
'child_process': 'empty',
'which': 'empty'
2020-06-17 09:39:14 +00:00
}
});