暴走

Results 7 comments of 暴走

> > > 我实现了小程序的代码的sourceMap映射,具体步骤如下: > > > 如果你是小程序项目,也想享受定位报错源码行数的功能,你除了使用[https://github.com/imingyu/mp-sentry以外,你还要做如下步骤:](https://github.com/imingyu/mp-sentry%E4%BB%A5%E5%A4%96%EF%BC%8C%E4%BD%A0%E8%BF%98%E8%A6%81%E5%81%9A%E5%A6%82%E4%B8%8B%E6%AD%A5%E9%AA%A4%EF%BC%9A) > > > > > > * 每次发版需要为当前小程序指定一个唯一的版本号,并在初始化sentry sdk时传递给release配置项 > > > * 小程序审核通过后,需要在小程序管理后台([https://mp.weixin.qq.com/wxamp/wxaalarm/get_jserr?lang=zh_CN)下载“线上版本](https://mp.weixin.qq.com/wxamp/wxaalarm/get_jserr?lang=zh_CN%EF%BC%89%E4%B8%8B%E8%BD%BD%E2%80%9C%E7%BA%BF%E4%B8%8A%E7%89%88%E6%9C%AC) Source Map 文件” > > > * 解压下载后的文件,将【**APP**】目录中的【app-service.map.map】复制到一个空目录下,如:/Users/xxx/Workspace/project1-sourcemap...

谢谢,感觉还有许多需要优化的地方,项目我尽可能多地加注释,然后有兴趣的话可以参照api文档看看,共勉!

> I know this is an old issue, but I just ran into it and it's still not working for me. I'm using electron 28.0.0, electron-builder 24.9.1, and serialport 12.0.0,...

@swjisgoodman 请截图报错信息

> 如果能使用unplugin进行开发的话,那么就能支持vite、webpack、rollup、rspack、esbuild等打包工具,这样适用性是不是会更高 你说的没错,我也想有空搞搞,期待一下吧~

> const { log } = console; log("111") > > 这种如何识别呢 可以看下logMethodReg,https://github.com/baozouai/vite-plugin-enhance-log/blob/master/src/index.ts#L49 https://github.com/baozouai/vite-plugin-enhance-log#%EF%B8%8F-options

> > > const { log } = console; log("111") > > > 这种如何识别呢 > > > > > > 可以看下logMethodReg,[`master`/src/index.ts#L49](https://github.com/baozouai/vite-plugin-enhance-log/blob/master/src/index.ts?rgh-link-date=2024-05-06T15%3A22%3A18Z#L49) > > [baozouai/vite-plugin-enhance-log#%EF%B8%8F-options](https://github.com/baozouai/vite-plugin-enhance-log#%EF%B8%8F-options) > > 不行吧,CallExpression是遍历的函数调用,也就是上面解构出来的log,不能直接匹配"log",怕误判,好像不好处理 那就不行,你别结构呗