Skip to content
Snippets Groups Projects
Commit a80d2079 authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[TASK] Tag importmaps to include configuration for dynamic imports

Dynamic JavaScript imports require their respective importmap
configurations to be loaded, therefore it is now allowed to tag
import configurations in order to be loaded when a certain
dispatcher is added to the current response.

This patch adds tags for the currently used dynamic imports.
The tags are added via includeTaggedImports and
might be side-loaded via the ResolveJavaScriptImportEvent.

Notes:

* In the pageRenderer->loadRequireJsModule we currently
  transparently load all configurations in backend context, but
  once we switch all these calls to loadJavaScriptModule(),
  we need to be very explicit about all the required
  importmaps. This patch prepares for that.

* The EventDispatcher is an optional dependency for the ImportMap class
  as the events and tags are not required in the InstallTool importmap.

Resolves: #96710
Related: #96323
Releases: main
Change-Id: I7b9eb0cb0a26b90ae217435c15c04238ffe4baa2
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73145


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarBenjamin Franzke <bfr@qbus.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarBenjamin Franzke <bfr@qbus.de>
parent 900a91ef
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment