babel errors:Babel更好的错误消息 源码
巴别错误 Babel的更好错误消息 import createBabelFile from 'babel-file' ; import { BabelError , prettyError , buildCodeFrameError } from 'babel-errors' ; const file = createBabelFile ( ... ) ; let path = file . path ; let { line , column } = path . loc . start ; throw prettyError ( createErrorWithLoc ( '
用户评论