webpack - more defaults for extensions

This commit is contained in:
Johannes Rieken
2018-08-20 15:23:56 +02:00
parent 7b5dc58be2
commit 01365dbe26
5 changed files with 83 additions and 20 deletions

View File

@@ -5,14 +5,14 @@
'use strict';
const sharedConfig = require('../shared.webpack.config');
const withDefaults = require('../shared.webpack.config');
const myConfig = {
context: __dirname,
entry: {
extension: './src/extension.ts',
},
externals: {
'vscode': 'commonjs vscode', // ignored because it doesn't exist
'@emmetio/css-parser': 'commonjs @emmetio/css-parser',
'@emmetio/html-matcher': 'commonjs @emmetio/html-matcher',
'@emmetio/math-expression': 'commonjs @emmetio/math-expression',
@@ -21,4 +21,4 @@ const myConfig = {
},
};
module.exports = { ...sharedConfig(__dirname), ...myConfig };
module.exports = withDefaults(myConfig);