Issue Bug Closed

#98635be.pageRenderer includeJavaScriptModules should take precedence over includeRequireJsModules

Lina Wolf 10/17/22, 10:32 updated 06/20/24, 05:56

Description

If you want to support both TYPO3 v11 and v12 and want to prevent trigger warnings you need to duplicate Fluid templates to only use the loading method:

.. code-block:: html
:caption: Fluid template for TYPO3 v12 and above

<f:be.pageRenderer
includeJavaScriptModules=”{
0: ‘@vendor/my-extension/my-example.js’
}“
/>

.. code-block:: html
:caption: Fluid template for TYPO3 v11 and below

<f:be.pageRenderer
includeRequireJsModules=”{
0: ‘@vendor/my-extension/my-example.js’
}“
/>

Fluid does not feature a version switch out-of-the-box. So this would have to be done in TypoScript.

I would suggest that if a certain flag is set (i.e. `prefereES6`) `includeRequireJsModules` is ignored if `includeJavaScriptModules` is set.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.