webpack - inline vscode-nls for our extensions
parent
fc2b0a8ec1
commit
3830d7b238
|
@ -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/,
|
||||
|
|
|
@ -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/,
|
||||
|
|
|
@ -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`.
|
||||
|
|
Loading…
Reference in New Issue