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 dynamic
option is deprecated.
Impact
RequireJS is no longer loaded and native module loading is approached,
if dynamic
is not defined. Extensions that
use dynamic
will work as before but trigger a PHP E_
error.
Affected Installations
Installations that register custom form types or extend the backend JavaScript of the form framework.
Migration
Use dynamic
option instead of
dynamic
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/
:
# Configuration/JavaScriptModules.php
<?php
return [
'dependencies' => ['form'],
'imports' => [
'@myvendor/my-site-package/' => 'EXT:my_site_package/Resources/Public/JavaScript/',
],
];