[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:core-ci <typo3@b13.com> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
Benjamin Franzke <bfr@qbus.de> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Benjamin Franzke <bfr@qbus.de>
parent
900a91ef
Please register or sign in to comment