Browse Source

Fix samples on Windows

Alex Dima 7 years ago
parent
commit
bcd0803238

+ 1 - 1
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()
 	],
 };

+ 1 - 1
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/)
 	],
 };