mpx
mpx copied to clipboard
Mpx,一款具有优秀开发体验和深度性能优化的增强型跨端小程序框架
unocss 从 0.52.7 升级至最新版 66.0.0 期间受影响Breaking Changes: 1. Move to ESM-only and fix package exports。 - 不再支持commonjs了,本次我们也改成ESM-only 2. Introduce @unocss/preset-wind3, deprecate preset-uno and preset-wind。 - 各种reset、preset 更新,包含 伪类生成顺序、rgb 默认空格写法,oklch 等方位新特性(小程序不支持)。...
'页面' 或 "开启VirtualHost的组件" 使用多根节点时,RN下存在异常,需要使用Fragment包裹 例如: ```html view1 view2 ``` 将会编译为 ```js __webpack_require__.g.currentInject.render = function (createElement, getComponent) { return createElement(getComponent("mpx-view"), null, createElement(getComponent("mpx-inline-text"), null, "view1")), createElement(getComponent("mpx-view"), null, createElement(getComponent("mpx-inline-text"), null, "view2")); }; ```...
修复css-if loader 在输出web时不起作用问题
**问题描述** 请用简洁的语言描述你遇到的bug,至少包括以下部分,如提供截图请尽量完整: 1. 问题触发的条件:脚手架选择 e2e,使用 yarn 安装依赖没问题(因为有 yarn.lock)。删除 yarn.lock 和 node_modules,pnpm 安装依赖,报错如图:  2. 期望的表现:使用 pnpm 3. 实际的表现:报错
开启 optimizeRenderRules level 1 时,如果模板中的 wx:if 判断语句中带 configCenterByKeys['Store.Business.Hours.Display'] 这种语法,会导致编译出来的 render 函数异常 代码如下: [mpx-project-0530.zip](https://github.com/user-attachments/files/20514203/mpx-project-0530.zip)
## Description 1. 迁移 npm 到 pnpm,避免幽灵依赖导致的各种兼容性操作和兼容性问题 2. 添加了一些格式化文件,如 prettier 和 editorconfig 来规范代码格式
## description 1. 解决 @import 文件无法解析条件判断问题
## Refactor - 响应式系统重构: - `Deps` 和 `Subs` 由之前的 Array 和 Set 数据结构改为双向链表结构(Doubly-linked list),受 [Preact Signals](https://github.com/preactjs/signals) 启发。 - 基于类似图着色传播算法实现 Push-pull hybrid model,受 [@reactively](https://github.com/milomg/reactively)、[alien-signals](https://github.com/stackblitz/alien-signals) (Vue3.6) 启发。之前是类似 Vue2 的 Push-based Model。提升性能,解决“相等性问题”。 -...