#97067Provide ES6 replacement for TYPO3\CMS\Setup\Event\AddJavaScriptModulesEvent::getModules
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.