Détail du package

@comandeer/babel-plugin-banner

Comandeer18.8kMIT5.0.0

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

babel, plugin, banner

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.

changelog

@comandeer/babel-plugin-banner Changelog

All notable changes to this project will be documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.


5.0.0 – 2019-06-29

Added

  • #48 Support for Node 12.

Removed

  • #48 BREAKING CHANGE: support for Node 6.

4.1.0 – 2018-11-12

Added

  • #38 Add support for newline at the end of multiline comment. Thanks to Aaron Hardy!

4.0.0 – 2018-08-28

Added

  • #33 Add support for Babel 7.

Removed

  • #33 BREAKING CHANGE: Remove support for Babel < 7.
  • #33 BREAKING CHANGE: Remove newLine option.

3.0.0 – 2018-06-23

Added

  • #26 Add support for Node 10.

Removed

  • #23 BREAKING CHANGE: Remove support for Node < 6 and unstable Node versions (7).

2.0.2 – 2018-02-11

Fixed

  • #21 Incorrect files distributed via npm.

2.0.1 – 2018-02-11

Fixed

  • #19 Add missing utils exports.

2.0.0 – 2018-02-11

Added

  • #12 BREAKING CHANGE: Add babel-core as peer-dependency.
  • #6 Add official support for Node 8+ and npm 5+.

Changed

  • #9 BREAKING CHANGE: Introduce build system, which brings also full rewrite to ES6+ and ESM.
  • #7 Introduce Keep a changelog standard for the changelog.

1.0.0

Added

  • First working version, yay!