Issue Task Closed

#97067Provide ES6 replacement for TYPO3\CMS\Setup\Event\AddJavaScriptModulesEvent::getModules

Benjamin Franzke 03/01/22, 09:13 updated 10/04/22, 08:38

Description

Either support ES6 modules by parsing whether a ES6 or non-ES6 module is provided, a good indicator could be:

$isRequireJsModule = str_starts_with($module, 'TYPO3/CMS/') && !str_ends_with($module, '.js');

Or othwerwise add a new API: getJavaScriptModules, but maybe the first option would be easier.

Reviews 1