From 6e792fe07d9ea7ef278f2e917631acb41b1f51f5 Mon Sep 17 00:00:00 2001 From: Manuel Roat Date: Fri, 20 Jan 2023 13:09:45 +0100 Subject: [PATCH] fix(webpack): fix regex for PlatformSuffixPlugin (#10169) --- packages/webpack5/src/plugins/PlatformSuffixPlugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack5/src/plugins/PlatformSuffixPlugin.ts b/packages/webpack5/src/plugins/PlatformSuffixPlugin.ts index 51c9ae5c6..2e4a298c4 100644 --- a/packages/webpack5/src/plugins/PlatformSuffixPlugin.ts +++ b/packages/webpack5/src/plugins/PlatformSuffixPlugin.ts @@ -34,7 +34,7 @@ export class PlatformSuffixPlugin { } apply(compiler: any) { - const platformRE = new RegExp(`\.${this.platform}\.`); + const platformRE = new RegExp(`\\.${this.platform}\\.`); // require.context compiler.hooks.contextModuleFactory.tap(id, (cmf) => {