Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

babel-plugin-transform-es2015-typeof-symbol

babel5.6mMIT6.23.0

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

babel-plugin

readme

babel-plugin-transform-es2015-typeof-symbol

Installation

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

Usage

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