discourse/app/assets/javascripts
David Taylor 7ed6195f19
PERF: Stop eagerly-loading core helper modules (#24015)
Now that core has a file structure and default imports, Ember's resolver can load helpers lazily. So we can remove the lazy loading, and helpers in ember templates will continue to work. This should provide a slight performance improvement for initial boot.

However, there is a slight complication: some of our helpers are also registered with our Raw Handlebars system as a side-effect of loading the module. Therefore, this commit adds a `helperMissing` helper to our RawHandlebars system. This looks up the helper by name in the ember resolver, which triggers the relevant module to be evaluated, and the raw helper to be registered as a side effect.

For backwards-compatibility, plugin and theme helpers continue to be eagerly evaluated. Once the `discourse.register-unbound` deprecation is resolved, we can safely remove this eager loading.
2023-10-19 15:52:51 +01:00
..
admin DEV: replace registerUnbound usage with default exports (#23802) 2023-10-19 14:28:25 +01:00
bootstrap-json DEV: convert I18n pseudo package into real package (discourse-i18n) (#23867) 2023-10-12 14:44:01 +01:00
confirm-new-email
deprecation-silencer DEV: move deprecation silencer to a shared package (#22668) 2023-07-18 19:07:20 +01:00
dialog-holder Build(deps-dev): Bump the types group (#23994) 2023-10-19 00:22:30 +02:00
discourse PERF: Stop eagerly-loading core helper modules (#24015) 2023-10-19 15:52:51 +01:00
discourse-common PERF: Stop eagerly-loading core helper modules (#24015) 2023-10-19 15:52:51 +01:00
discourse-hbr Build(deps-dev): Bump webpack in /app/assets/javascripts (#23939) 2023-10-16 11:23:00 +02:00
discourse-i18n DEV: convert I18n pseudo package into real package (discourse-i18n) (#23867) 2023-10-12 14:44:01 +01:00
discourse-plugins Build(deps): Bump ember-template-imports from 3.4.2 to 4.0.0 in /app/assets/javascripts (#23970) 2023-10-18 12:42:26 +01:00
discourse-widget-hbs DEV: Consolidate and update jsconfig, and add types packages (#23824) 2023-10-18 12:13:20 +01:00
docs
ember-addons
ember-cli-progress-ci
ember-production-deprecations
float-kit Build(deps-dev): Bump the types group (#23994) 2023-10-19 00:22:30 +02:00
locales DEV: convert I18n pseudo package into real package (discourse-i18n) (#23867) 2023-10-12 14:44:01 +01:00
patches Build(deps): Bump ember-this-fallback from 0.3.1 to 0.4.0 in /app/assets/javascripts (#23959) 2023-10-18 10:56:35 +01:00
pretty-text Build(deps-dev): Bump the types group (#23994) 2023-10-19 00:22:30 +02:00
select-kit Build(deps-dev): Bump the types group (#23994) 2023-10-19 00:22:30 +02:00
theme-transpiler DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
truth-helpers Build(deps-dev): Bump the types group (#23994) 2023-10-19 00:22:30 +02:00
wizard Build(deps-dev): Bump the types group (#23994) 2023-10-19 00:22:30 +02:00
.licensee.json
.npmrc
handlebars-shim.js
package.json DEV: convert I18n pseudo package into real package (discourse-i18n) (#23867) 2023-10-12 14:44:01 +01:00
polyfills.js
run-patch-package DEV: Automatically retry patch-package on failure (#23583) 2023-09-14 12:25:06 +01:00
service-worker.js.erb FIX: Ensure service-worker cache is cleaned correctly (#23204) 2023-08-23 13:58:32 +01:00
yarn.lock Build(deps-dev): Bump the types group (#23994) 2023-10-19 00:22:30 +02:00