🔧
Simple Integration
Works seamlessly with Rollup 2.x, 3.x, and 4.x with zero configuration
A Rollup plugin that preserves and relocates shebang (#!) to the output bundle
# pnpm
pnpm add -D rollup-plugin-replace-shebang
# npm
npm install -D rollup-plugin-replace-shebangimport replaceShebang from 'rollup-plugin-replace-shebang'
export default {
input: 'src/cli.js',
output: {
file: 'dist/cli.js',
format: 'es'
},
plugins: [
replaceShebang({
chmod: true // Make output executable
})
]
}${name} and ${version} in custom shebangs