没有合适的资源?快使用搜索试试~ 我知道了~
babel-errors:Babel更好的错误消息
共7个文件
flowconfig:1个
js:1个
license:1个
需积分: 14 0 下载量 57 浏览量
2021-01-31
03:10:04
上传
评论
收藏 3KB ZIP 举报
温馨提示
巴别错误 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 ( 'Error at this position' , line , column ) ) ; throw buildCodeFrameError ( path , 'Error with this Path' ) ; createErrorWithLoc(message, line, column) 这使您可以将位置信息添加到错误中。 wrapErrorWithCodeFrame(err) 当捕获Babel抛出
资源推荐
资源详情
资源评论
收起资源包目录
babel-errors-master.zip (7个子文件)
babel-errors-master
.gitignore 19B
README.md 993B
LICENSE 1KB
package.json 261B
index.js 1KB
.flowconfig 39B
yarn.lock 237B
共 7 条
- 1
资源评论
沪漂购房记
- 粉丝: 19
- 资源: 4614
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功