Project

General

Profile

Actions

Task #97067

closed

Epic #96323: TYPO3 Backend: ES6 Module (ESM) support

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

Added by Benjamin Franzke over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend JavaScript
Target version:
Start date:
2022-03-01
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Blocks TYPO3 Core - Task #97057: Deprecate RequireJS related APIsClosedBenjamin Franzke2022-02-27

Actions
Actions

Also available in: Atom PDF