astexplorer
astexplorer copied to clipboard
Load babel via standalone instead of npm
Basically I would want the same behavior as https://github.com/babel/website/pull/1284 and https://github.com/babel/website/pull/1356 by @Daniel15
This would be amazing (especially once we move preset-env/babylon into the monorepo again). It would allow easy checking of the AST when we make parser changes, and make it easier to test plugin changes as well.
Basically it would allow for a url to be generated that loads the version of Babel from the PR/branch.
Then we wouldn't have to update the version of Babel every time either (depends on what we want the default to be)
Don't have to update it now but https://github.com/fkling/astexplorer/commit/b55cc24e15847e9d1a910bc659ed21a8cd1df616 is on the older version beta.3 because we switched to scoped packages @babel/core
and updated to babel beta.32
being able to target the master version of babel-standalone would be great though
Also when updating to @babel/core
you'll want to look at https://github.com/babel/babel/pull/6781 for the changes to the approach for Recast handling.
Yeah maybe one of us should probably make a wip pr 😛