Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #58472, comment 33


Ignore:
Timestamp:
06/28/2023 04:25:00 PM (11 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58472, comment 33

    v1 v2  
    11Seems the minified script fails with `ReferenceError: c is not defined`. Happens in production where `SCRIPT_DEBUG = false`.
    22
    3 Most likely caused by the minifier failing to handle the code where functions get passed to run in the Worker. Also see the comment here: https://github.com/WordPress/wordpress-develop/pull/4562/files#diff-83d8ed9928b125b09de0268ee4775d21a58b93ed92da09828359760f9200b069R352 and a suggested fix here: https://wordpress.slack.com/archives/C02RQBWTW/p1687967842409629?thread_ts=1687963471.592929&cid=C02RQBWTW.
     3Most likely caused by the minifier failing to handle the code where functions get passed to run in the Worker. Also see the comment here: https://github.com/WordPress/wordpress-develop/pull/4562/files#diff-83d8ed9928b125b09de0268ee4775d21a58b93ed92da09828359760f9200b069R352 and a suggested fix here: https://wordpress.slack.com/archives/C02RQBWTW/p1687967842409629?thread_ts=1687963471.592929&cid=C02RQBWTW (thanks @joemcgill).
    44
    55As this fails in production it would probably be best to revert for now and fix and reintroduce in time for beta2.