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)
Keywords
Readme
babel-plugin-transform-es2015-typeof-symbol
Installation
$ npm install babel-plugin-transform-es2015-typeof-symbolUsage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["transform-es2015-typeof-symbol"]
}Via CLI
$ babel --plugins transform-es2015-typeof-symbol script.jsVia Node API
require("babel-core").transform("code", {
plugins: ["transform-es2015-typeof-symbol"]
});