You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our ESBuild config for a client bundle contains an option that looks like:
define: {
"global": "window"
}
When using ESBuild directly, this works as expected (the global identifier is replaced with window in some libraries that had weird expectations about their environment). Estrella, however, transforms the settings like this (estrella.js:575):
for (let k in define) {
define[k] = json(define[k])
}
This causes global to be replaced with the string"window" instead of the token window, causing a crash on start.
The text was updated successfully, but these errors were encountered:
jimrandomh
added a commit
to ForumMagnum/ForumMagnum
that referenced
this issue
Dec 21, 2020
Our ESBuild config for a client bundle contains an option that looks like:
When using ESBuild directly, this works as expected (the
global
identifier is replaced withwindow
in some libraries that had weird expectations about their environment). Estrella, however, transforms the settings like this (estrella.js:575
):This causes
global
to be replaced with the string"window"
instead of the tokenwindow
, causing a crash on start.The text was updated successfully, but these errors were encountered: