Oliver Watkins
Oliver Watkins

Reputation: 13519

Cannot copy code from babel (https://babeljs.io/)

I past in some ES6 code in the left side (https://babeljs.io/), and I get the native javascript on the right side.

I simply want to copy and paste what is generated on the right side. The website does not allow me to select the text to copy.

Why is it doing this?

Upvotes: 0

Views: 175

Answers (1)

Joe Clay
Joe Clay

Reputation: 35817

I'm sure Babel would accept a pull request to fix this if you/someone submitted one, but you're probably better off using the REPL anyway. It allows you to add/remove presets (for example, to make it so you can compile React code) and is generally just a bit more robust.

Upvotes: 1

Related Questions