mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(webpack): fix regex for PlatformSuffixPlugin (#10169)
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user