@comandeer/babel-plugin-banner

Simple Babel plugin to prepend comment to the beginning of transformed code.

Stats

StarsIssuesVersionUpdatedCreatedSize
@comandeer/babel-plugin-banner
555.0.02 years ago5 years agoMinified + gzip package size for @comandeer/babel-plugin-banner in KB

Readme

@comandeer/babel-plugin-banner

Build Status Dependency Status devDependency Status npm (scoped) Greenkeeper badge

Prepends given comment to the beginning of babelified code.

Installation

npm install @comandeer/babel-plugin-banner [--save-dev]

Usage

{
  "presets": ["es2015"],
  "plugins": [
    ["@comandeer/babel-plugin-banner", {
      "banner": "/*! Some nice comment */"
    }]
  ]
}

Available options:

  • banner: content of the banner comment; must be a valid JS comment.

License

See LICENSE file for details.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.