uxuip
uxuip
起因: [vant](https://vant-contrib.gitee.io/vant-weapp) 小程序组件库有很多自定义class,如 [button](https://vant-contrib.gitee.io/vant-weapp/#/button#wai-bu-yang-shi-lei),但是插件只能转换class 灵感: 在 [@vitejs/plugin-vue2](https://github.com/vitejs/vite-plugin-vue2) 插件中,有一个 [transformAssetUrls](https://github.com/vitejs/vite-plugin-vue2/tree/3b64cccf7fae755bf556876bf85fec5041ed383a#asset-url-handling) 配置,可以配置需要转换的attribute 实现: 为了写起来简单方便,选择使用通配符或字符串匹配attribute,使用到的库 [micromatch](https://www.npmjs.com/package/micromatch) 对象key用于匹配tag,值用于匹配attribute,多个时使用数组 ```js // 配置 { utilitiesSettings: { customAttributes: { 'van-*': 'custom-class', 'van-image': ['image-class', 'loading-class', 'error-class'], }, },...
#### What is the purpose of this pull request? (put an "X" next to an item) - [ ] Documentation update - [ ] Bug fix - [ ] Feature...
### Pull Request 标题规则 type(ComponentName?):commit message 示例: - docs: fix typo in quickstart - build: optimize build speed - fix(Button): incorrect style - feat(Button): add color prop 可选择的类型: - fix...
I want to set the value of an object to undefined, but in radash, only the initial object is returned, which is different from the lodash implementation. ## radash https://github.com/sodiray/radash/blob/069b26cdd7d62e6ac16a0ad3baa1c9abcca420bc/src/object.ts#L247...
### Describe the bug The jsdom environment throws an error when using the WxtVitest plugin in vitest ### Reproduction https://github.com/uxuip/wxt-jsdom-bug-report ### Steps to reproduce Initialize the project and select the...