Deprecation: #96568 - RequireJS modules in Form Framework

See forge#96568

Description

Extending the Form Framework manager and editor via RequireJS modules has been deprecated in favor of native ES6 JavaScript modules.

The dynamicRequireJsModules option is deprecated.

Impact

RequireJS is no longer loaded and native module loading is approached, if dynamicRequireJsModules is not defined. Extensions that use dynamicRequireJsModules will work as before but trigger a deprecation message.

Affected Installations

Installations that register custom form types or extend the backend JavaScript of the form framework.

Migration

Use dynamicJavaScriptModules option instead of dynamicRequireJsModules to load ES6 instead of RequireJS modules:

TYPO3:
  CMS:
    Form:
      prototypes:
        standard:
          formEditor:
            dynamicJavaScriptModules:
              additionalViewModelModules:
                10: '@my-vendor/my-site-package/backend/form-editor/view-model.js'

And configure a corresponding importmap in Configuration/JavaScriptModules.php:

# Configuration/JavaScriptModules.php
<?php

return [
    'dependencies' => ['form'],
    'imports' => [
        '@myvendor/my-site-package/' => 'EXT:my_site_package/Resources/Public/JavaScript/',
    ],
];