Babel script:2 Uncaught ReferenceError: require is not defined at run (babel.js:61531) at loadScripts (babel.js:61638) at transformScriptTags (babel.js</
react-devtools-faq react-dom.development.js:21347:9babel.jsBe sure to precompile your scripts for production - https://babeljs.io/docs/setup/ babel.js:61666:4anonymous> file:///Users
我目前的任务是将JavaScript组件ES5转换为ES6 (用Babel.js编译)。在使用类和Babel.js之前,我们原型化以从其他组件获取函数。com.company.js.ComponentA.prototype = new com.company.js.utils.UltraFunctions()我并不是在要求一个解决方案。我只是想确定我的假设是否正确