This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/plugins/styleguide/assets/javascripts/discourse
David Taylor c139767055
DEV: Remove Ember.TEMPLATES and centralize template resolution rules (#19220)
In the past, the result of template compilation would be stored directly in `Ember.TEMPLATES`. Following the move to more modern ember-cli-based compilation, templates are now compiled to es6 modules. To handle forward/backwards compatibility during these changes we had logic in `discourse-boot` which would extract templates from the es6 modules and store them into the legacy-style `Ember.TEMPLATES` object.

This commit removes that shim, and updates our resolver to fetch templates directly from es6 modules. This is closer to how 'vanilla' Ember handles template resolution. We still have a lot of discourse-specific logic, but now it is centralised in one location and should be easier to understand and normalize in future.

This commit should not introduce any behaviour change.
2022-11-29 10:24:35 +00:00
..
components DEV: Introduce discourseLater (#17532) 2022-07-17 00:50:49 +02:00
controllers DEV: Use Ember imports in the styleguide code (#16123) 2022-03-07 21:38:09 +01:00
helpers DEV: Use Ember imports in the styleguide code (#16123) 2022-03-07 21:38:09 +01:00
lib DEV: Remove Ember.TEMPLATES and centralize template resolution rules (#19220) 2022-11-29 10:24:35 +00:00
routes DEV: Use Ember imports in the styleguide code (#16123) 2022-03-07 21:38:09 +01:00
templates UX: use solid envelope icon for consistency (#19157) 2022-11-23 08:46:35 +08:00
styleguide-route-map.js DEV: Remove .es6 extensions from core (#14912) 2021-11-13 12:51:53 +01:00