Skip to content

Rollup plugin to automatically preserve shebangs in entry modules.

License

Notifications You must be signed in to change notification settings

walrusjs/rollup-plugin-shebang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@walrus/rollup-plugin-shebang

Rollup plugin to automatically preserve shebangs in entry modules.

主要解决命令行工具 #!/usr/bin/env node 编译问题

🏗 安装

// npm
npm install @walrus/rollup-plugin-shebang --save --dev

// yarn
yarn add @walrus/rollup-plugin-shebang --dev

🔨 使用

// rollup.config.js
import shebang from '@walrus/rollup-plugin-shebang';

export default {
  plugins: [
    shebang()
  ]
}

About

Rollup plugin to automatically preserve shebangs in entry modules.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published