drop-babel-typeof

1.0.3 • Public • Published

drop-babel-typeof

If included as dev dependency, it can replace in place the annoying _typeof(...) indirection babel places to allow the usage of Symbol in the wild, even if symbols are not used.

drop-babel-typeof /some/file/path.js

Alternatively, if you are using @babel/preset-env, you can configure it like this so that it doesn't transform typeof:

["@babel/preset-env", {
  "exclude": "transform-typeof-symbol"
}]

Readme

Keywords

Package Sidebar

Install

npm i drop-babel-typeof

Weekly Downloads

29

Version

1.0.3

License

ISC

Unpacked Size

1.5 kB

Total Files

3

Last publish

Collaborators

  • webreflection