webpack - inline vscode-nls for our extensions

pull/58082/head
Johannes Rieken 2018-09-06 15:12:19 +02:00
parent fc2b0a8ec1
commit 3830d7b238
3 changed files with 6 additions and 1 deletions

View File

@ -25,6 +25,9 @@ module.exports = withDefaults({
path: path.join(__dirname, 'dist'),
libraryTarget: "commonjs",
},
externals: {
"vscode-nls": 'commonjs vscode-nls',
},
plugins: [
new webpack.NormalModuleReplacementPlugin(
/(\/|\\)vscode-languageserver(\/|\\)lib(\/|\\)files\.js/,

View File

@ -25,6 +25,9 @@ module.exports = withDefaults({
path: path.join(__dirname, 'dist'),
libraryTarget: "commonjs",
},
externals: {
"vscode-nls": 'commonjs vscode-nls',
},
plugins: [
new webpack.NormalModuleReplacementPlugin(
/(\/|\\)vscode-languageserver(\/|\\)lib(\/|\\)files\.js/,

View File

@ -53,7 +53,6 @@ module.exports = function withDefaults(/**@type WebpackConfig*/extConfig) {
'vscode': 'commonjs vscode', // ignored because it doesn't exist
"vscode-extension-telemetry": 'commonjs vscode-extension-telemetry', // commonly used
"vscode-nls": 'commonjs vscode-nls',
},
output: {
// all output goes into `dist`.