Skip to content

Commit

Permalink
🐛 Stringify returned array of getUserAgentRegExps
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 committed Jul 25, 2022
1 parent 851ca0c commit 0acf519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function (
load(id) {
if (id === resolvedVirtualModuleId) {
return `export const browsersRegexp = ${getUserAgentRegExp(options)}
export const browsersRegexps = ${getUserAgentRegExps(options)}`
export const browsersRegexps = ${JSON.stringify(getUserAgentRegExps(options))}`
}
},
}
Expand Down

0 comments on commit 0acf519

Please sign in to comment.