DEV: Disable Ember's LOG_STACKTRACE_ON_DEPRECATION (#30275)

This feature writes a stack trace as part of the message. That means it is not sourcemapped by the browser, and you have further to scroll to find the real backtrace.

In the past we avoided this feature with our production 'deprecation shim', but that was removed as part of our Ember 5.12 upgrade.
This commit is contained in:
David Taylor 2024-12-13 17:56:11 +00:00 committed by GitHub
parent 29dad8bbea
commit b410677fcd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -17,6 +17,7 @@ module.exports = function (environment) {
Date: false,
String: false,
},
LOG_STACKTRACE_ON_DEPRECATION: false,
},
exportApplicationGlobal: true,

View File

@ -25,8 +25,6 @@ document.addEventListener("discourse-init", () => {
const testingCore = !testingTheme && (!target || target === "core");
const disableAutoStart = params.get("qunit_disable_auto_start") === "1";
window.EmberENV.LOG_STACKTRACE_ON_DEPRECATION = false;
document.body.insertAdjacentHTML(
"afterbegin",
`