Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 478 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 478 Bytes

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