mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
31 lines
765 B
JavaScript
31 lines
765 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 = {
|
|
// mode: 'none',
|
|
mode: 'production',
|
|
target: 'node',
|
|
context: __dirname,
|
|
entry: {
|
|
main: './out/extension.js',
|
|
},
|
|
output: {
|
|
filename: '[name].bundle.js',
|
|
path: path.join(__dirname, 'out'),
|
|
libraryTarget: "commonjs",
|
|
},
|
|
externals: {
|
|
'vscode': 'commonjs vscode',
|
|
},
|
|
resolve: {
|
|
mainFields: ['main']
|
|
},
|
|
stats: 'errors-only'
|
|
};
|