babel-plugin-rename-define

1.0.1 • Public • Published

babel-plugin-rename-define

Rename define()

Installation

$ npm install babel-plugin-rename-define

Usage

Via Node API

require("babel-core").transform("code", {
  plugins: [{ transformer: require("babel-plugin-rename-define")("new-define-name"), position: "after" }]
});

/babel-plugin-rename-define/

    Package Sidebar

    Install

    npm i babel-plugin-rename-define

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • thejameskyle