Skip to content

[Bug]: Rslib build breaks shebang line in bin file #166

@chenjiahan

Description

@chenjiahan

Version

System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 2.72 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 128.0.6613.86
    Safari: 17.6
  npmPackages:
    @rslib/core: 0.0.4 => 0.0.4

Details

Rslib build breaks shebang line in bin file:

  • Input:

image

  • Output:

image

  • Failed to run:

image

Reproduce link

https://github.com/web-infra-dev/rsbuild/tree/8a2a850aad336b726e50b2b1bb203d8c72c1c48a/packages/create-rsbuild

Reproduce Steps

  1. pnpm i
  2. pnpm build

Metadata

Metadata

Assignees

Labels

RspackRspack related issue🐞 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions