Skip to content

Angular rc9, stops escape unicode #16721

@glebmachine

Description

@glebmachine

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • xi18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes, angular/cli 8.x.x work properly

Yes, the previous version in which this bug was not present was: ....

Description

Angular cli with rc9 stops escape cyrillic to unicode characters.
Previously all characters like Э becomes \u042d

As i understand it's about TerserPLugin ascii_only flag

A clear and concise description of the problem...

🔬 Minimal Reproduction

  1. create repo
  2. add alert('Э'); anywhere
  3. buld
  4. check for compile output, it should convert to alert('\u042d');

🔥 Exception or Error




🌍 Your Environment





     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 9.0.0-rc.8
Node: 12.1.0
OS: darwin x64

Angular: 9.0.0-rc.9
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.900.0-rc.5
@angular-devkit/build-angular      0.900.0-rc.9
@angular-devkit/build-ng-packagr   0.900.0-rc.9
@angular-devkit/build-optimizer    0.900.0-rc.9
@angular-devkit/build-webpack      0.900.0-rc.9
@angular-devkit/core               9.0.0-rc.5
@angular-devkit/schematics         8.3.14
@angular/cdk                       9.0.0-rc.7
@angular/cli                       9.0.0-rc.8
@ngtools/webpack                   9.0.0-rc.9
@schematics/angular                8.0.0
@schematics/update                 0.900.0-rc.8
ng-packagr                         9.0.0-rc.3
rxjs                               6.5.4
typescript                         3.7.4
webpack                            4.41.2

Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions