We currently use ES6 syntax in traditional projects (not the modern front end packaged by nodejs ). As a result, colleagues" browsers can"t browse the page properly. We want to use babel directly in our browser, so we find babel-standalone .
however, we have encountered a mistake
the js introduced using < script type= "text/babel" > < / script > is not synchronous
A function is included in the question-base.js introduced by us, but there is no access to
codeshelper , however, the solutions are all based on the introduction of babel-polyfill / transform-runtime by nodejs. Is there any solution that can be used directly in the browser?
attachment: we don"t care about the size of the js introduced. If possible, the more babel we introduce, the better (without using the mvvm framework)
