From cdb904a1b0752ca3bc3de83c607d06592c5870d8 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 4 Dec 2023 12:34:45 +0000 Subject: [PATCH] DEV: Remove unused htmlbars-inline-precompile shim (#24687) Since 4425e99bf937ec1dea5cc91a2a188c052d70d3a9, we no longer ship the template compiler to the client under any circumstances, so this shim doesn't work. Plus, even if it did work, it would trigger the ember-global deprecation and fail under Ember 4+. --- .../discourse/public/assets/scripts/module-shims.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/assets/javascripts/discourse/public/assets/scripts/module-shims.js b/app/assets/javascripts/discourse/public/assets/scripts/module-shims.js index 388065c6b82..38d181783a6 100644 --- a/app/assets/javascripts/discourse/public/assets/scripts/module-shims.js +++ b/app/assets/javascripts/discourse/public/assets/scripts/module-shims.js @@ -16,12 +16,6 @@ define("I18n", [ }; }); -define("htmlbars-inline-precompile", ["exports"], function (exports) { - exports.default = function tag(strings) { - return Ember.Handlebars.compile(strings[0]); - }; -}); - define("ember-addons/ember-computed-decorators", [ "discourse-common/utils/decorators", "discourse-common/lib/deprecated",