Skip to content

Reduce escaped newline for TemplateElement #10229

@wjw99830

Description

@wjw99830

Describe the feature

Escaped newline will be replaced to a newline character in esbuild.

Example:

// input.js
const str = `a\nb\nc`;

// output.js
const str = `a
b
c`;

Babel plugin or link to the feature description

https://esbuild.github.io/faq/#minified-newlines

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions