Review main Merged

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

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

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
    • Georg Ringer +1
    • Josua Vogel +1
    • Simon Schaufelberger +1
  • Verified V +2 Done
    • Benni Mack +2
    • Georg Ringer +1
    • Josua Vogel +1
    • Simon Schaufelberger +1
    • core-ci +1 CI

Issues 1

Files 3

Review log 67

  1. Benni Mack uploaded patch set 1 10/15/26, 13:54

  2. core-ci voted on patch set 1 V +1 10/15/26, 14:04 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111200

  3. Simon Schaufelberger voted on patch set 1 CR +1 V +1 10/25/26, 21:25

  4. Georg Ringer voted on patch set 1 CR +1 V +1 11/09/26, 21:04

  5. Josua Vogel voted on patch set 1 CR +1 V +1 11/11/26, 14:33

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

  7. Benni Mack merged patch set 2 11/11/26, 15:13