Skip to content

CRLF line endings are converted to LF line endings. #8921

@hanxinwei

Description

@hanxinwei

Bug Report

Current Behavior
Use babel & gulp-babel in Windows 10.
The files with CRLF line endings will be transpiled to files with LF line endings, which in my view is not the expected behavior, since in Windows it's usually CRLF setting for git, and after the transpilation the git diff will show a lot of changes in output files caused by CRLF to LF changes, which is unexpcted.

Expected behavior/code
Keep the output CRLF/LF with source.

Environment

  • Babel version(s): [e.g. 6.26.0]
  • gulp-babel: [e.g. 7.0.1]
  • Node/npm version: [e.g. Node v8.11.2/npm 5.6.0]
  • OS: [Windows 10]

Possible Solution
Keep the output CRLF/LF with source.

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions