babel-plugin-transform-es2015-typeof-symbol

This transformer wraps all typeof expressions with a method that replicates native behaviour. (ie. returning “symbol” for symbols)

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-plugin-transform-es2015-typeof-symbol
6.23.06 years ago7 years agoMinified + gzip package size for babel-plugin-transform-es2015-typeof-symbol in KB

Readme

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"]
});