标签: babel
文档显示了@babel/cli如何帮助您:
@babel/cli
babel src --out-file script-compiled.js --source-maps inline
,效果很好。如何直接使用js中的babel-standalone来做到这一点?
babel-standalone
我是否只需要多次手动调用transform,然后将结果串联起来?这不会破坏源地图(行号等)吗?