Review 13.4 Merged

87615[TASK] Response with MIME type application/javascript for mjs file ending

Stefan Bürk CR +2 V +2 Easy +1 −1 updated 01/02/25, 10:07

Commit message

This patch adds the instructions to handle ECMAScript javascript files
'.mjs' with the correct MIME type.

The mjs file ending is already used by public packages. The different
file ending helps the distinction between modules and classic scripts.

It helps for clear communication within projects: By using the .mjs
extension, developers and build systems can easily recognize that a file
is an ECMAScript module, ensuring that the proper syntax and semantics
(such as 'import' and 'export') are used. This approach is widely common
in node projects.

While not every webserver is adding the correct MIME type for '.mjs'
it's now clearly configured within TYPO3 projects out of the box.

Review

  • Code review CR +2 Done
    • Stefan Bürk +2
  • Verified V +2 Done
    • Stefan Bürk +2
    • core-ci +1 CI

Issues 1

Files 1

Review log 34

  1. Stefan Bürk commented on patch set 1 01/02/25, 09:58

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 01/02/25, 10:06 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/71800

  3. Stefan Bürk voted on patch set 1 CR +2 V +2 01/02/25, 10:07

  4. Stefan Bürk merged patch set 2 01/02/25, 10:07