Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/assets/javascripts/deprecation-silencer/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const SILENCED_WARN_PREFIXES = [
"Setting the `jquery-integration` optional feature flag",
'unexpectedly found "', // https://github.com/emberjs/ember.js/issues/19392
"The setting 'staticAddonTestSupportTrees'",
"The setting 'staticAddonTrees'",
];

class DeprecationSilencer {
Expand Down
1 change: 1 addition & 0 deletions app/assets/javascripts/discourse/ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = function (defaults) {

// Silence deprecations which we are aware of - see `lib/deprecation-silencer.js`
DeprecationSilencer.silence(console, "warn");
DeprecationSilencer.silence(console, "log");
DeprecationSilencer.silence(defaults.project.ui, "writeWarnLine");

const isProduction = EmberApp.env().includes("production");
Expand Down
Loading