Package detail

rollup-plugin-replace-shebang

saqqdy10MIT1.2.0

一个自动替换shebang的rollup插件

rollup, plugin, replace, shebang

readme

# rollup-plugin-replace-shebang 一个自动替换shebangrollup插件 NPM version Codacy Badge Test coverage npm download gzip License Sonar

安装

# 使用npm
$ npm install -D rollup-plugin-replace-shebang

# 使用yarn
$ yarn add -D rollup-plugin-replace-shebang

使用

import shebang from 'rollup-plugin-replace-shebang'

plugins: [
    shebang({
        shebang: '#!/usr/bin/env node',
        skipBackslash: true // 跳过\u005c 反斜杠
    })
]

问题和支持

Please open an issue here.

License

MIT

changelog

更新日志

2022.08.25 v1.2.0 更新日志

  1. 更新依赖包版本,优化构建

2022.05.05 v1.1.1 更新日志

  1. 修复facadeModuleId带"?"号的情况下,facadeModuleId不能正确解析的问题。

2022.05.02 v1.1.0 更新日志

  1. 更改 type 名称为 Options
  2. 升级依赖包
  3. 调整构建

2021.10.22 v1.0.0 更新日志

  1. 支持传入shebang skipBackslash两个参数
  2. 完善文档