Remove global variable use strict

Created on 5 May 2023, almost 2 years ago
Updated 7 May 2023, almost 2 years ago

Problem/Motivation

The Babel preset is adding "use strict" as a global variable. This is causing issues when Aggregate JavaScript files is turned on.

Steps to reproduce

I have trigged this issue in other ways, but this is the quickest.

  • Install Drupal 10
  • Install and enable Collapsiblock
  • Install, enable, and add Metatags to article
  • Create new article

Uncaught TypeError: Cannot read properties of undefined (reading 'TreeTable')
Uncaught TypeError: Cannot set properties of undefined (setting 'ckeditor5')

Proposed resolution

Remove "use strict" as global variable.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇺🇸United States kevinfunk

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

Comments & Activities

Production build 0.71.5 2024