Skip to content

ascii_only UglifyJs option grew build sizes considerably #2706

Closed
@hyperknot

Description

@hyperknot

The recent PR (https://github.com/facebookincubator/create-react-app/pull/2596/files) for switching on ascii_only in uglify options grew our projects build size from 530 KB to 539 KB.

The reason for the 9 KB grow in size is that ascii_only doesn't seem to be a sophisticated filter, it basically converts loads of characters to unicode escape sequence. Those are not emojis but "normal" unicode characters outside the ascii range.

How to reproduce:

  1. add import entities from 'entities' to a new cra app
  2. build size with ascii_only: 201 KB
  3. build size without ascii_only: 194 KB

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions