Skip to content

Commit 6591404

Browse files
authored
fix: prop window is not defined in web worker (#1749)
1 parent de89c0d commit 6591404

File tree

4 files changed

+128
-826
lines changed

4 files changed

+128
-826
lines changed

esbuild.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ const options = {
1616
platform: 'browser',
1717
globalName: 'mqtt',
1818
sourcemap: false, // this can be enabled while debugging, if we decide to keep this enabled we should also ship the `src` folder to npm
19-
define: {
20-
'global': 'window'
21-
},
2219
plugins: [
2320
polyfillNode({
2421
polyfills: [

0 commit comments

Comments
 (0)