Skip to content

Commit

Permalink
Revert "fix(browser): add navigator polifilly for wechat mini (mqtt…
Browse files Browse the repository at this point in the history
…js#1796)"

This reverts commit c26908a.
since the polyfill hardcode navigator, it is impossible to determine the userAgent at runtime
  • Loading branch information
EmixamPP committed Jul 25, 2024
1 parent 6b278dc commit 7e29dd1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,7 @@ const options = {
polyfillNode({
polyfills: [
'readable-stream'
],
globals: {
global: false,
__dirname: false,
__filename: false,
buffer: true,
process: true,
navigator: true, // Needed for WeChat, ref #1789
}
]
}),
{
name: 'resolve-package-json',
Expand Down

0 comments on commit 7e29dd1

Please sign in to comment.