Lxxyx

Results 54 comments of Lxxyx

This behavior is determined by the [specification/let-and-const-declarations-static-semantics-early-errors](https://www.ecma-international.org/ecma-262/11.0/index.html#sec-let-and-const-declarations-static-semantics-early-errors). Instead of `const`, you can use `var` By @devsnek comments, I found `let` redeclaration is also supported by [Chrome 80](https://dev.to/cooldashing24/chrome-now-allows-for-let-and-class-redeclarations-in-the-console-2m0f)

先使用 yarn or npm 吧,pnpm 的问题我们待会儿看看

> pnpm的问题还是蛮多的,快一年啦 这个我们在试着支持哈,因为我们日常一般也都是 yarn 或者 cnpm/npm,pnpm 用的不多,有些时候单测过了但是实际使用时又会出问题。 这个我再看看,新版本的 https://github.com/midwayjs/hooks/pull/337 应该能解决这个问题

hooks build 有支持一个 --clean 命令,没有默认开启,你可以通过 `hooks build --clean` 来完成操作。 至于默认设置清理行为,我这边需要再想想看

类似问题:https://github.com/midwayjs/hooks/issues/300

生成 qrcode 后,前端直接范围接口地址获取图片吗?

> 我debug了一下,貌似是在`serverless-dev-pack`这个模块里面被处理text了 > > [midwayjs/cli@`4ec53ab`/packages/dev-pack/src/common.ts#L85-L91](https://github.com/midwayjs/cli/blob/4ec53aba0c3fc5f6d3a2c609a6e00ae7b71901f3/packages/dev-pack/src/common.ts#L85-L91) 这部分我正在重写,看看怎么解决非 json 格式的传递问题

> 目前gateway有一个参数`isBase64Encoded`不知道是否可以用到呢? [midwayjs/cli@`3cd2902`/packages/gateway-common-http/src/index.ts#L44-L47](https://github.com/midwayjs/cli/blob/3cd2902821167905d789df5a153bed2224920613/packages/gateway-common-http/src/index.ts#L44-L47) 应该是可以的,目前更倾向于使用 http-proxy 转发所有请求,这样也可以支持 websocket 等更多协议