babel-plugin-transform-es2015-typeof-symbol

v7.0.0-alpha.20
This transformer wraps all typeof expressions with a method that replicates native behaviour. (ie. returning “symbol” for symbols)
babel-plugin

babel-plugin-transform-es2015-typeof-symbol

Installation

$ npm install babel-plugin-transform-es2015-typeof-symbol

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-es2015-typeof-symbol"]
}

Via CLI

$ babel --plugins transform-es2015-typeof-symbol script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-es2015-typeof-symbol"]
});

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 8/30/2017

Downloads