Amjad Masad b9a893aab6 Move NodePath cache out of the AST
As mentioned on the task https://phabricator.babeljs.io/T7179 having
this cache on the AST leads to all sorts of portability and reuse
bugs.

This moves the cache into a clearable WeakMap which will fix the
following:

1. Moving the AST between different babel versions or tools will not
lead into sharing potentially outdated cached information

2. `.clear()` can be called on the cache by a plugin to clear
potentially outdated information. This is helpful when implementing two
seperate pipelines that should not share information.

I think the next step (which is harder, I tried) is to isolate cache and
make it live on a transform or pipeline level state (like the `hub`).

The reason it is hard is because the `babel-traverse` main API -- although
requires the state object to be passed -- not many callers do. To fix
this we should release a patch version that warns about this and fix all
the internal callers. Next couple of releases we can start throwing when
no state is passed (or we can create our own state).
2016-03-07 12:03:48 -08:00
2016-02-04 11:07:04 -05:00
2015-11-09 17:58:36 -08:00
2015-07-16 15:46:31 +01:00
2016-03-02 16:47:59 -05:00
2015-11-09 04:03:59 -08:00
2014-12-16 22:17:35 -08:00
2016-02-12 17:24:25 +05:30
2016-01-04 22:59:12 -05:00
2016-02-29 19:42:21 -05:00
2015-11-11 23:24:39 -08:00
2016-02-17 05:34:41 +00:00
2015-12-30 13:42:32 -05:00
2016-03-02 16:29:17 -05:00

babel

The compiler for writing next generation JavaScript.

Travis Status CircleCI Status Coverage Status

Looking for support?

For questions and support please visit the discussion forum, Slack community, or StackOverflow.

Want to report a bug or request a feature?

Bugs and feature requests should be posted at phabricator.babeljs.io.

Want to report an issue with babeljs.io?

For documentation and website issues please visit the babel.github.io repo.

Description
No description provided
Readme 79 MiB
Languages
JavaScript 99.5%
Makefile 0.3%
HTML 0.1%