New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update repl to Babel 7 #1915
Update repl to Babel 7 #1915
Conversation
- Remove separate handling of Babel and preset-env version, since they are both 7 now - Remove code for the "debug" option, which was already disabled for v7
Deploy preview for babel ready! Built with commit f9d729b |
@@ -109,7 +109,7 @@ function compileCode(sourceEditor, targetEditor) { | |||
|
|||
try { | |||
transformed = Babel.transform(sourceEditor.getValue(), { | |||
presets: ["latest"], | |||
presets: ["es2015", "es2016", "es2017"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should would want to get preset-env to be default eventually right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't want to load two different bundles just for the minirepl.
I think that, since it is just a demo, it is ok like this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
totally didn't see it was the minirepl, makes sense!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
they are both 7 now
for v7
(Hide whitespace changes when reviewing)
Fixes #1901