Skip to content

elecmonkey/rolldown-banner-shebang-reproduction

Repository files navigation

rolldown-banner-shebang-reproduction

Run:

pnpm i
pnpm build:with-banner
pnpm build:no-banner

Then you'll see

#!/usr/bin/env node
//#region cli.js
console.log("hello from cli");
//#endregion

in dist/no-banner.js and

#!/usr/bin/env node

in dist/with-banner.js

About

A reproduction for a rolldown problem where combining a source shebang with `output.banner` shebang causes the generated bundle to collapse to only the shebang line.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors