Make WordPress Core

Changeset 59768


Ignore:
Timestamp:
02/06/2025 05:25:01 PM (3 months ago)
Author:
desrosj
Message:

Build/Test Tools: Configure UglifyJS to preserve previous behavior.

As of UglifyJS >= 3.18.0, the default behavior is to process input as an ES module. This updates the relevant configurations to ensure the build process continues to use the previous behavior to avoid JavaScript errors in the minified versions of files.

Follow up to [58563], [58586], and [59509].

Props siliconforks, nataliat2004, poena, mai21, SergeyBiryukov.
Fixes #62767. See #61519, #62220.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r59740 r59768  
    775775        uglify: {
    776776            options: {
     777                parse: {
     778                    module: false
     779                },
     780                compress: {
     781                    module: false
     782                },
    777783                output: {
     784                    module: false,
    778785                    ascii_only: true
    779786                }
Note: See TracChangeset for help on using the changeset viewer.