Skip to content

Update repl to Babel 7 - #1915

Merged
nicolo-ribaudo merged 3 commits into
babel:masterfrom
nicolo-ribaudo:repl-v7
Feb 7, 2019
Merged

nicolo-ribaudo merged 3 commits into
babel:masterfrom
nicolo-ribaudo:repl-v7

Conversation

@nicolo-ribaudo

@nicolo-ribaudo nicolo-ribaudo commented Dec 11, 2018 •

Copy link
Copy Markdown
Member
  • 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

(Hide whitespace changes when reviewing)

Fixes #1901

- 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
@babel-bot

babel-bot commented Dec 11, 2018 •

Copy link
Copy Markdown
Collaborator

Comment thread js/minirepl.js
try {
transformed = Babel.transform(sourceEditor.getValue(), {
presets: ["latest"],
presets: ["es2015", "es2016", "es2017"],

Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Member Author

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?

Copy link
Copy Markdown
Member

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!

@danez danez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants