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
if(typeofrequire!=="undefined"&&typeofwindow!=="undefined"&&typeofdocument!=="undefined"){// we're in browserrequire("dom4");// only import actual dom4 if we're in the browser (not server-compatible)// we'll still need dom4 types for the TypeScript to compile, these are included in package.json}
Cause
The older version of @blueprintjs/core@3.48.0 compiles to the following. However, in the newer version of BP, it no longer contains the following code for dom4 after compilation.
vardom4_max={};varhasRequiredDom4_max;functionrequireDom4_max(){...}if(typeofcommonjsRequire!=="undefined"&&typeofwindow!=="undefined"&&typeofdocument!=="undefined"){// we're in browserrequireDom4_max();// only import actual dom4 if we're in the browser (not server-compatible)// we'll still need dom4 types for the TypeScript to compile, these are included in package.json}
The text was updated successfully, but these errors were encountered:
Environment
@blueprintjs/core:
3.54.0
rollup:
2.71.1
@babel/core:
7.17.10
I am using
rollup
andbabel
to compile everything into a single .js file.Issue
The following issue appears after upgrading @blueprintjs/core library:
and the above stack trace leads to
Cause
The older version of @blueprintjs/core@3.48.0 compiles to the following. However, in the newer version of BP, it no longer contains the following code for dom4 after compilation.
The text was updated successfully, but these errors were encountered: