astexplorer icon indicating copy to clipboard operation
astexplorer copied to clipboard

Load babel via standalone instead of npm

Open hzoo opened this issue 7 years ago • 3 comments

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)

hzoo avatar Sep 30 '17 13:09 hzoo

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

hzoo avatar Nov 15 '17 22:11 hzoo

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.

loganfsmyth avatar Nov 15 '17 22:11 loganfsmyth

Yeah maybe one of us should probably make a wip pr 😛

hzoo avatar Nov 15 '17 23:11 hzoo