Warn if jasmine-core is loaded as an ES module in browsers
This commit is contained in:
@@ -94,6 +94,9 @@ var getJasmineRequireObj = (function() {
|
||||
j$.private.matchers = jRequire.requireMatchers(jRequire, j$);
|
||||
j$.private.asyncMatchers = jRequire.requireAsyncMatchers(jRequire, j$);
|
||||
|
||||
j$.private.loadedAsBrowserEsm =
|
||||
globalThis.document && !globalThis.document.currentScript;
|
||||
|
||||
return j$;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user