From 995010a8c09bafc806b912980fd71a8337f2bf66 Mon Sep 17 00:00:00 2001 From: Xiaoli <544028951@qq.com> Date: Sat, 16 Mar 2019 01:25:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(webpack-runner):=20=E4=BF=AE=E5=A4=8Desnext?= =?UTF-8?q?Modules=E7=9A=84=E5=88=A4=E6=96=AD=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-webpack-runner/src/util/chain.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/taro-webpack-runner/src/util/chain.ts b/packages/taro-webpack-runner/src/util/chain.ts index dbf5e64b59ac..fa3d81b56cae 100644 --- a/packages/taro-webpack-runner/src/util/chain.ts +++ b/packages/taro-webpack-runner/src/util/chain.ts @@ -349,7 +349,7 @@ const getModule = ({ esnextModuleRegs = esnextModuleRegs.concat([ ...esnextModules.map(v => { if (typeof v === 'string') { - return new RegExp(`\b${v}\b`) + return new RegExp(`\\b${v}\\b`) } else { return v }