babel-plugin-undeclared-variables-check

Throw a compile-time error on references to undeclared variables

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-plugin-undeclared-variables-check
6.22.06 years ago7 years agoMinified + gzip package size for babel-plugin-undeclared-variables-check in KB

Readme

babel-plugin-undeclared-variables-check
Throw a compile-time error on references to undeclared variables

Installation

$ npm install babel-plugin-undeclared-variables-check

Usage

Via .babelrc (Recommended)

.babelrc
{
  "plugins": ["undeclared-variables-check"]
}

Via CLI

$ babel --plugins undeclared-variables-check script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["undeclared-variables-check"]
});