babel-plugin-transform-es2015-typeof-symbol
v6.23.0
Published
This transformer wraps all typeof expressions with a method that replicates native behaviour. (ie. returning “symbol” for symbols)
Downloads
9,984,916
Keywords
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"]
});