fix(webpack): fix regex for PlatformSuffixPlugin (#10169)

This commit is contained in:
Manuel Roat
2023-01-20 13:09:45 +01:00
committed by GitHub
parent 1f862a5e0c
commit 6e792fe07d

View File

@@ -34,7 +34,7 @@ export class PlatformSuffixPlugin {
} }
apply(compiler: any) { apply(compiler: any) {
const platformRE = new RegExp(`\.${this.platform}\.`); const platformRE = new RegExp(`\\.${this.platform}\\.`);
// require.context // require.context
compiler.hooks.contextModuleFactory.tap(id, (cmf) => { compiler.hooks.contextModuleFactory.tap(id, (cmf) => {