Review 14.3 Merged

97548[BUGFIX] Avoid import map for global JavaScript assignments only

Benni Mack CR +2 V +2 Easy +26 −1 updated 11/11/26, 15:31

Commit message

Global assignments, such as the `litNonce` hint applied with
`PageRenderer::setApplyNonceHint()`, are rendered as an inline
`Object.assign()` script and never pass through the JavaScript
item handler.

Requiring the item handler for them pulled the complete
`@typo3/core` import map into every page using the nonce hint,
for instance in the frontend, without any module using it.

The item handler imports are now only included when a module
instruction actually needs them.

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • core-ci +1 CI

Issues 1

Files 3

Review log 34

  1. Benni Mack commented on patch set 1 11/11/26, 15:12

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 11/11/26, 15:28 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114107

  3. Benni Mack voted on patch set 1 CR +2 V +2 11/11/26, 15:31

  4. Benni Mack merged patch set 2 11/11/26, 15:31