Babel 6 CLI: Unexpected token export?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to run Babel through it's CLI using babel-node but I keep getting the Unexpected token export error. I understand that Babel 6 is all about plugins and that I need to set the plugin through .babelrc but it doesn't seem to work properly. So here are my questions: Should I be using the syntax-export-extensions plugin ? I've also tried using the alternative method which is setting the plugin through package.json but still no luck. Also, does Babel 6's CLI have a global .babelrc option? It seems tedious if I have to install the