Skip to content

Escaping differs between dev and build #1948

Description

@manuel-mauky

Description

I want to show { and } characters in a message so I'm escaping them with ' as described in the docs.

For example, take this message string from the docs: "Escape curly braces with single quotes (e.g. '{name'})"

When starting the app with npm run dev, it works as expected and shows {name}.
However, when running npm run build and npm run start, it's including the escape characters: '{name'}.

We noticed this bug when updating to 4.3.1 in our app. Before we were using 3.9.0 and everything worked fine.

Verifications

Mandatory reproduction URL

https://stackblitz.com/edit/stackblitz-starters-qrums7tb

Reproduction description

Steps to reproduce:

  1. Open reproduction
  2. Start the app with npm run dev to see the correct behavior
  3. Start the app with npm run build & npm run start to see the wrong behavior

Expected behaviour

In the prod build the escape characters (') shouldn't be visible.
There should be no difference between dev server and prod build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingunconfirmedNeeds triage.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions