Skip to content

Commit

Permalink
fix(webpack-runner): 修复esnextModules的判断错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Littly authored Mar 15, 2019
1 parent 2bc9b28 commit 995010a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-webpack-runner/src/util/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 995010a

Please sign in to comment.