0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/app/views
David Taylor d46dc3407b
DEV: Improve cross-plugin/theme import handling
1. Remove 'federated exports' system, which was named entrypoint exports for every module inside the plugin. Replace it with a single import of the target plugin's 'compatModules', and then update call sites to do a 'just in time' lookup of the module and export. This is implemented in a new `babel-resolve-plugin-imports` plugin

2. Update theme & plugin build systems to produce a list of external plugins which are imported. For plugins, it's stored in the manifest. For themes, it's stored in a new column of the javascript_caches table.

3. Refactor theme extra_js loading to use a more structured data model, and move the HTML generation to the erb template

4. Update core importmap to identify any missing plugin dependencies and add a fake placeholder module for them. This allows the imports to exist without causing a boot error. The imported values will resolve to 'null'.

5. Update core plugins to remove use of `optionalRequire`, and replace it with simple imports. These are now functionally equivalent, but without leaning on the legacy `loader.js` system of core

Co-authored-by: Jarek Radosz <jarek@cvx.dev>
2026-06-16 23:51:05 +01:00
..
about DEV: Add a nofollow to /u so user profiles don't get added as a target for crawling (#30693) 2025-01-13 13:50:00 +08:00
admin/backups
application FIX: Respect forced color mode for logo on server-rendered pages (#37032) 2026-01-09 11:33:06 +01:00
badges
categories
common DEV: Replace JS build system with Rolldown (#35963) 2026-05-29 11:11:55 +01:00
default DEV: Replace JS build system with Rolldown (#35963) 2026-05-29 11:11:55 +01:00
dev_mode DEV: Add /dev-mode endpoint for MiniProfiler auth cookie (#37027) 2026-01-12 10:01:20 +08:00
email UX: add preview to email templates (#36657) 2026-01-08 11:33:53 +04:00
embed DEV: Extract embed post date title into i18n-aware helper (#38594) 2026-03-17 09:12:21 -05:00
exceptions DEV: Replace JS build system with Rolldown (#35963) 2026-05-29 11:11:55 +01:00
finish_installation DEV: escape emails in finish installation (#37665) 2026-02-10 11:53:18 +01:00
groups
home_page DEV: Show login-required splash in root route (take 2) (#32629) 2025-05-14 11:25:43 -04:00
invites
layouts DEV: Improve cross-plugin/theme import handling 2026-06-16 23:51:05 +01:00
list FIX: Regression with numeric tags in RSS feed URL generation (#39113) 2026-04-07 09:11:38 -04:00
metadata
offline
posts
published_pages DEV: properly import color-scheme-stylesheets (#36325) 2025-11-28 13:57:22 -06:00
qunit DEV: Rename EmberCli to EmberAssets (#40938) 2026-06-16 12:56:56 +02:00
robots_txt removed broken link and comments from no_index.erb (#25648) 2024-02-14 12:09:24 +08:00
safe_mode FIX: Prevent admin sidebar errors in safe mode (#25832) 2024-02-23 17:04:42 +10:00
search
session
sitemap
static FEATURE: Restore web push quick reply for chat messages (#39614) 2026-04-29 12:36:03 -03:00
tags
topics DEV: Replace JS build system with Rolldown (#35963) 2026-05-29 11:11:55 +01:00
user_notifications DEV: Strip unsubscribe links when sending digest previews to arbitrary addresses (#38298) 2026-03-05 13:58:51 -06:00
users UX: Redesign OmniAuth confirmation page with branded styling (#39290) 2026-04-15 14:46:31 -07:00