diff --git a/browser-esm-webpack-small/webpack.config.js b/browser-esm-webpack-small/webpack.config.js index b91ff144..e459cab5 100644 --- a/browser-esm-webpack-small/webpack.config.js +++ b/browser-esm-webpack-small/webpack.config.js @@ -23,7 +23,7 @@ module.exports = { }] }, plugins: [ - new webpack.IgnorePlugin(/^((fs)|(path)|(os)|(crypto)|(source-map-support))$/, /vs\/language\/typescript\/lib/), + new webpack.IgnorePlugin(/^((fs)|(path)|(os)|(crypto)|(source-map-support))$/, /vs(\/|\\)language(\/|\\)typescript(\/|\\)lib/), new UglifyJSPlugin() ], }; diff --git a/browser-esm-webpack/webpack.config.js b/browser-esm-webpack/webpack.config.js index 2d2ddacd..e05c69d2 100644 --- a/browser-esm-webpack/webpack.config.js +++ b/browser-esm-webpack/webpack.config.js @@ -22,6 +22,6 @@ module.exports = { }] }, plugins: [ - new webpack.IgnorePlugin(/^((fs)|(path)|(os)|(crypto)|(source-map-support))$/, /vs\/language\/typescript\/lib/) + new webpack.IgnorePlugin(/^((fs)|(path)|(os)|(crypto)|(source-map-support))$/, /vs(\/|\\)language(\/|\\)typescript(\/|\\)lib/) ], };