mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 16:18:58 +01:00
30 lines
769 B
JavaScript
30 lines
769 B
JavaScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
'use strict';
|
|
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
stats: 'errors-only',
|
|
// mode: 'none', // default is production
|
|
context: __dirname,
|
|
target: 'node',
|
|
resolve: {
|
|
mainFields: ['main']
|
|
},
|
|
entry: {
|
|
extension: './out/extension.js',
|
|
},
|
|
output: {
|
|
filename: '[name].js',
|
|
path: path.join(__dirname, 'dist'),
|
|
libraryTarget: "commonjs",
|
|
},
|
|
externals: {
|
|
'vscode': 'commonjs vscode',
|
|
},
|
|
};
|