Global 'use strict' statement broke JS aggregation

Created on 8 August 2023, over 1 year ago
Updated 6 September 2023, over 1 year ago

Problem/Motivation

Using "use strict"; in global scope broke JS aggregation when core/loadjs library is loaded, as mentioned in #3336143-27: Uncaught ReferenceError: loadjs is not defined after drupal core upgrade 9.5.1 .

Steps to reproduce

Proposed resolution

Move "use strict"; statement inside function

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇩Indonesia el7cosmos 🇮🇩 GMT+7

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024