mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
fixing web packing
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
const path = require('path');
|
||||
|
||||
const withDefaults = require('../shared.webpack.config');
|
||||
|
||||
module.exports = withDefaults({
|
||||
@@ -14,7 +16,13 @@ module.exports = withDefaults({
|
||||
entry: {
|
||||
extension: './src/main.ts',
|
||||
},
|
||||
externals: {
|
||||
'vscode-nls': 'commonjs vscode-nls',
|
||||
output: {
|
||||
filename: 'main.js',
|
||||
path: path.join(__dirname, 'dist'),
|
||||
libraryTarget: "commonjs",
|
||||
},
|
||||
resolve: {
|
||||
mainFields: ['module', 'main'],
|
||||
extensions: ['.ts', '.js'] // support ts-files and js-files
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user