1.0.1 • Published 3 years ago

@walrus/rollup-plugin-shebang v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

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()
  ]
}