Skip to content

Build v2: Use non-minified JS file when SCRIPT_DEBUG is true #72479

@Utsav-Ladani

Description

@Utsav-Ladani

What problem does this address?

The new v2 build is enqueuing minified JavaScript files in development mode. As a result, the React Dev Tools display unreadable names in the inspector, making debugging difficult.

What is your proposed solution?

The new v2 build is already building non-minified version of JS files, so enqueue them instead of minified JS files when SCRIPT_DEBUG is enabled.

Related to #72032

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions