| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/57448 |
Sorry, something went wrong.
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
There was a problem hiding this comment.
Thanks.
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks!
Sorry, something went wrong.
|
@slatereax |
Sorry, something went wrong.
|
@JLHwung I added two tests, please take a look! |
Sorry, something went wrong.
Thanks, in #11877 we do load configs but they are not passed to the eval transform so the new tests are actually passing on the main branch. Can you add a simple plugin to manipulate the input source? So that we are sure the resolved config is applied. |
Sorry, something went wrong.
|
Done! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Transform code for babel-node eval does not use the options that were passed in the cli flags. Also, replPlugin, which is used for code transformation, only allows var variables, although modern versions of node repl support let and const.
Based on the history of this file, it appears that this code was written in 2017 when node did not support any variables other than var, but there is no need for this check now. If anyone needs to use babel-node with node < 6.0.0, they can pass their configuration file through --config-file.