Skip to content

Commit

Permalink
fix: build umd&iife bug
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxingwang-coder committed Sep 26, 2022
1 parent a119022 commit fc742f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/shared-common/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export function replaceAsync(string: string, searchValue: RegExp, replacer: (...
values.push(replacer(...args))
return ''
})
replacer()
return Promise.all(values).then((resolvedValues) => {
return String.prototype.replace.call(string, searchValue, () => {
return resolvedValues.shift() || ''
Expand Down

0 comments on commit fc742f7

Please sign in to comment.