Review 12.4 Merged

80174[BUGFIX] Load importmaps for external form backend module scripts

Benjamin Franzke CR +2 V +2 Easy +3 −0 updated 07/28/23, 09:53

Commit message

The form migration to ES6 modules in #96568
missed to pre-register importmaps of third
party extensions.
The modules are loaded on initial request
via `import()`, but that requires an importmap
definition for external modules.

The modules are now preloaded in order to make
them available for dynamic imports.
Note that the modules are loaded by the form editor
and manager on initial load anyway, therefore it is
considered "ok" to preload the modules directly.

Review

  • Code review CR +2 Done
    • Oli Bartsch +2
    • Benjamin Franzke +1
  • Verified V +2 Done
    • Oli Bartsch +2
    • Benjamin Franzke +1
    • core-ci +1 CI

Issues 1

Files 2

Review log 810

  1. Benjamin Franzke uploaded patch set 1 07/26/23, 05:19

  2. Benjamin Franzke commented on patch set 1 07/26/23, 05:24

    Can be tested via following fork of a public extension: https://github.com/bnf/form_element_linked_checkbox/commit/esm-modules
  3. core-ci voted on patch set 1 V +1 07/26/23, 05:26 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/44565

  4. Oli Bartsch uploaded patch set 2 V +1 07/28/23, 09:45

  5. Oli Bartsch commented on patch set 2 CR -1 07/28/23, 09:48

    Needs review
  6. Benjamin Franzke voted on patch set 2 CR +1 07/28/23, 09:50

  7. Benjamin Franzke voted on patch set 2 V +1 07/28/23, 09:52

  8. core-ci voted on patch set 2 V +1 07/28/23, 09:52 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/44663

  9. Oli Bartsch voted on patch set 2 V +2 CR +2 07/28/23, 09:53

  10. Oli Bartsch merged patch set 3 07/28/23, 09:53