使用巴别塔代码转换,当使用导入和导出时,当浏览器运行代码时,提示

捕获的referenceerror:要求不明确

Babel只是一个翻译,假设进口b.js A.js

转码a.js只翻译a.js,不合并的b.js内容读

If you want to include A.js, B.js code in one of the final JS, you need to use a packaging tool.

这是WebPACK和其他工具。

谢谢你的阅读。我希望你能帮助你,谢谢你对这个站的支持。