Flame

Results 16 comments of Flame

楼主好,根据最近一次的新闻,WHATWG全权接管了HTML和DOM的标准制定权([链接](https://www.chainnews.com/articles/359353767979.htm))。 您在博文中HTML5标准的引用就有点过时了。而且根据最新标准制定Task Queue不是一个队列,它是一个任务集合([A task queue is a set of tasks](https://html.spec.whatwg.org/multipage/webappapis.html#definitions-3))。 与时俱进一下。

`config/index.js` 文件中的 [mini.webpackChain](https://taro-docs.jd.com/taro/docs/config-detail#miniwebpackchain) 可以拿到 chain 对象. @yoyo837

你的意思是外部插件通过 `require('...')` 形式获取?`prod.config.js`抛出的是函数,如果外部插件支持 async 的话,可以在这个config上配置 async 函数,函数内部去await [mini.webpackChain](https://taro-docs.jd.com/taro/docs/config-detail#miniwebpackchain) 呢? 奇技淫巧,仅供参考

> 你这个方案得把taro dev给run起来吧? 懂你意思了,你要在「非编译时」获取config参数。这样嘞? ```js const { MiniBaseConfig } = require('@tarojs/webpack5-runner/dist/webpack/MiniBaseConfig.js') const chain = new MiniBaseConfig(...).chain ```

> `new MiniBaseConfig` 参数特别是第二个config, 去哪里搞呢 第二个 config 应该就是 config/index.js mini 的内容

[CanIUse](https://caniuse.com/?search=replaceWith) 上显示,Chrome53之前都不支持了

Hi, it's already year 2023 and I can't wait to use this new feature in webpack5. So, how is the progress going with that?

这让我想起了 nest 的命令, `nest g res xxx`,一键生成模块代码 😄

Taro 运行时暂时没有接入 Canvas Element API,但可以将这部分 API 代理到 小程序 `` 组件,使用组件提供的api。这样就可以使用Canvas的第三方库了。这个需要新特性开发。 欢迎贡献!

Taro.navigateXXX 在 H5 端是通过 history 库模拟的,在执行完 navigate 后,[history.listen 会监听回调](https://github.com/NervJS/taro/blob/178eb37c7a028fbe7b626a59ecb610a1871792db/packages/taro-router/src/api.ts#L44) ```js const unListen = history.listen(() => { const res = { errMsg: `${method}:ok` } success?.(res) complete?.(res) resolve(res) unListen() }) ``` 你在...