Skip to content

Commit

Permalink
fix(browser): add navigator polifilly for wechat mini (#1796)
Browse files Browse the repository at this point in the history
Fixes #1789
  • Loading branch information
robertsLando authored Feb 26, 2024
1 parent f064d48 commit c26908a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ const options = {
polyfillNode({
polyfills: [
'readable-stream'
]
],
globals: {
global: false,
__dirname: false,
__filename: false,
buffer: true,
process: true,
navigator: true, // Needed for WeChat, ref #1789
}
}),
],
}
Expand Down

0 comments on commit c26908a

Please sign in to comment.