雷明

Results 16 comments of 雷明

Reference issue by socket.io is: https://github.com/socketio/socket.io-client/issues/1548

@clavin Thanks for replay. 1. I don't use the `socket.io` module, just the `socket.io-client` module, which doesn't and can't depend on `net` or `tls` dependencies,because `socket.io-client` runs mainly inside the...

The following example simply moves the code from the main process to the rendering process(proload.js) without modifying any of the dependencies or code logic. ### socket client on the Node...

Reference issue by Electron is: https://github.com/electron/electron/issues/35095

The problem of latest master version is `static react` only register the presets as https://github.com/jxnblk/static-react/blob/master/bin/static-react.js#L4-L8, but ignore the local .babelrc. For example, my repo has the `.babelrc` as below: ```...

Thanks for replying. The full code is https://github.com/leiming/pcgame-react-boilerplate/tree/fix-ie Just use https://github.com/gaearon/react-transform-boilerplate and install eventsource-polyfill ``` sh npm install eventsource-polyfill --save-dev ``` and add `eventsource-polyfill.js` to entries: ``` js // webpack.config.dev.js...

@cl1ck , This code is work with IE 11, but IE 8 in Win7.

@IOriens 谢谢回复。 需求上说,weweb 能在浏览器环境运行小程序(无论是原生小程序,还是经过webpack编译后的代码),一方面方便单元测试与接口测试。另一方面同解耦也明确了server 的使用场景。我主要想到的是 proxy(请求路由代理), server(web容器) 的功能。如果能直接用本地 wcsc 等编译,唤起后的服务能调用 `wx` 的容器接口等更佳。 方案定下来后,需要 coding 部分,我也可以参与。

@pgfxm 我还没想这么远。 我原来的意思很简单,这个项目大体分为相互独立的两部分: - `src/` 基于 WebPack 静态编译环境 - `lib/` 基于Koa 的运行服务环境,加载编译后的可直接被微信小程序直接使用的代码,基于浏览器环境的模拟器,并且能实现大部分微信API 我(只)需要 `lib` 下的代码,用来干嘛呢?比如基于e2e单元测试,比如性能分析与优化等,如果已经有类似的项目,烦请告知。 目前遇到的问题是,咱们的项目与 @chemzqm 在维护的 https://github.com/chemzqm/wept 都停止了,小程序API 部分的更新,`src/`部分,各个项目有自己的理解,都OK,我个人认为`lib`提供的价值更大,更通用,所以第一步只想到分离依赖,再做打算。 @pgfxm 做平台的主意也很棒,从落地上,我觉得当下的难度更小,更实际一些