From 051da84e0f85ec291fd2479b665f5c5c2c60ef72 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Thu, 30 Aug 2018 09:05:14 +0200 Subject: [PATCH] webpack - fix regular expressions --- .../css-language-features/server/extension.webpack.config.js | 2 +- .../html-language-features/server/extension.webpack.config.js | 2 +- .../json-language-features/server/extension.webpack.config.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/css-language-features/server/extension.webpack.config.js b/extensions/css-language-features/server/extension.webpack.config.js index 6b2727c1074..bafe635b6de 100644 --- a/extensions/css-language-features/server/extension.webpack.config.js +++ b/extensions/css-language-features/server/extension.webpack.config.js @@ -30,7 +30,7 @@ module.exports = withDefaults({ }, plugins: [ new webpack.NormalModuleReplacementPlugin( - /\/|\\vscode-languageserver\/|\\lib\/|\\files\.js/, + /(\/|\\)vscode-languageserver(\/|\\)lib(\/|\\)files\.js/, require.resolve('./build/filesFillIn') ), new webpack.IgnorePlugin(/vertx/) diff --git a/extensions/html-language-features/server/extension.webpack.config.js b/extensions/html-language-features/server/extension.webpack.config.js index 675a7ff7c2e..90e533b80ec 100644 --- a/extensions/html-language-features/server/extension.webpack.config.js +++ b/extensions/html-language-features/server/extension.webpack.config.js @@ -34,7 +34,7 @@ module.exports = withDefaults({ }, plugins: [ new webpack.NormalModuleReplacementPlugin( - /\/|\\vscode-languageserver\/|\\lib\/|\\files\.js/, + /(\/|\\)vscode-languageserver(\/|\\)lib(\/|\\)files\.js/, require.resolve('./build/filesFillIn') ), new webpack.IgnorePlugin(/vertx/) diff --git a/extensions/json-language-features/server/extension.webpack.config.js b/extensions/json-language-features/server/extension.webpack.config.js index c844481d338..03235a3fdc0 100644 --- a/extensions/json-language-features/server/extension.webpack.config.js +++ b/extensions/json-language-features/server/extension.webpack.config.js @@ -30,7 +30,7 @@ module.exports = withDefaults({ }, plugins: [ new webpack.NormalModuleReplacementPlugin( - /\/|\\vscode-languageserver\/|\\lib\/|\\files\.js/, + /(\/|\\)vscode-languageserver(\/|\\)lib(\/|\\)files\.js/, require.resolve('./build/filesFillIn') ), new webpack.IgnorePlugin(/vertx/)