mpx

Mpx,一款具有优秀开发体验和深度性能优化的增强型跨端小程序框架

APACHE-2.0 License

Downloads
5K
Stars
3.6K
Committers
89

Bot releases are visible (Hide)

mpx -

Published by hiyuki about 1 year ago

Bugfix

  • 修复输出百度使用component构造页面时报错的问题,并且支持使用page构造页面时setup函数的正常运行
  • @mpxjs/webview-bridge支持输出web时的API抹平

Packages

  • @mpxjs/core: 2.8.52 => 2.8.53
  • @mpxjs/webpack-plugin: 2.8.51 => 2.8.53
  • @mpxjs/webview-bridge: 2.8.1 => 2.8.53
mpx -

Published by hiyuki about 1 year ago

Bugfix

  • 修复diffAndCloneA逻辑以规避数据引用异常的问题

Packages

  • @mpxjs/core: 2.8.51 => 2.8.52
  • @mpxjs/pinia: 2.8.50 => 2.8.52
  • @mpxjs/store: 2.8.50 => 2.8.52
  • @mpxjs/utils: 2.8.50 => 2.8.52
mpx -

Published by hiyuki about 1 year ago

New features

  • 输出web时对组件插入root-view以模拟微信小程序dom结构
  • @mpxjs/webpack-plugin新增编译配置proxyComponentEventsRules支持输出web和支付宝时在组件上直接绑定事件,模拟微信表现,详情查看:https://mpxjs.cn/api/compile.html#proxycomponenteventsrules
  • 输出web时支持entryPagePath配置
  • 输出web时scroll-view支持自定义下拉刷新组件

Bugfixs

  • 输出百度小程序时setup报错, #1284
  • 全局mixin默认对page和component生效

Packages

  • @mpxjs/core: 2.8.50 => 2.8.51
  • @mpxjs/webpack-plugin: 2.8.50 => 2.8.51
mpx -

Published by hiyuki about 1 year ago

New features

  • 构建时移除json/wxss模块经过extractor后残留的空模块,在一定程度上降低产物体积
  • 新增render函数优化能力,需通过renderOptimizeRules开启,开启后会通过ast分析对运行时注入的render函数进行精简优化,一定程度上降低产物体积,详情查看:https://mpxjs.cn/api/compile.html#renderoptimizerules

Bugfixs

  • 修复组件名与小程序原生组件或web原生标签重名时输出web报错的问题
  • 数据核心比对逻辑中增加数据越界判断

Packages

  • @mpxjs/core: 2.8.48 => 2.8.50
  • @mpxjs/pinia: 2.8.15 => 2.8.50
  • @mpxjs/size-report: 2.8.48 => 2.8.50
  • @mpxjs/store: 2.8.40 => 2.8.50
  • @mpxjs/utils: 2.8.15 => 2.8.50
  • @mpxjs/webpack-plugin: 2.8.49 => 2.8.50
mpx -

Published by hiyuki about 1 year ago

New feature

Bugfix

Packages

  • @mpxjs/api-proxy: 2.8.46 => 2.8.49
  • @mpxjs/webpack-plugin: 2.8.48 => 2.8.49
mpx -

Published by hiyuki about 1 year ago

New features

  • 支持工具类型PropType导出,用于精确定义props类型,详见https://github.com/didi/mpx/pull/1275
  • @mpxjs/size-report支持计算webpackTemplateSize
  • @mpxjs/webpack-plugin新增支持options.optimizeSize,开启后将优化编译配置在一定程度上降低输出产物体积

Packages

  • @mpxjs/core: 2.8.47 => 2.8.48
  • @mpxjs/size-report: 2.8.47 => 2.8.48
  • @mpxjs/webpack-plugin: 2.8.47 => 2.8.48
mpx -

Published by hiyuki about 1 year ago

New features

  • @mpxjs/size-report分组配置新增支持preWarningSize配置

Bugfix

  • 修复输出web时style中存在单引号时编译报错
  • 修复输出web时wx:ref中包含_下划线字符时无法正确获取ref的问题

Packages

  • @mpxjs/core: 2.8.44 => 2.8.47
  • @mpxjs/size-report: 2.8.42 => 2.8.47
  • @mpxjs/webpack-plugin: 2.8.46 => 2.8.47
mpx -

Published by hiyuki about 1 year ago

Bugfix

  • 输出web路由实现优化,支持形如A->A或A->B->A的路由跳转

Packages

  • @mpxjs/api-proxy: 2.8.44 => 2.8.46
  • @mpxjs/webpack-plugin: 2.8.45 => 2.8.46
mpx -

Published by hiyuki about 1 year ago

Bugfix

  • 修复pnpm下输出web报错的问题

Packages

  • @mpxjs/webpack-plugin: 2.8.44 => 2.8.45
mpx -

Published by hiyuki about 1 year ago

Bugfix

Packages

  • @mpxjs/api-proxy: 2.8.40 => 2.8.44
  • @mpxjs/core: 2.8.42 => 2.8.44
  • @mpxjs/webpack-plugin: 2.8.43 => 2.8.44
mpx -

Published by hiyuki about 1 year ago

New feature

Bugfix

  • 修复输出web的部分兼容性问题

Packages

  • @mpxjs/webpack-plugin: 2.8.42 => 2.8.43
mpx -

Published by hiyuki about 1 year ago

Bugfix

  • 修复输出web中this.createIntersectionObserver的抹平实现
  • @mpxjs/size-report支持ignoreSubpackages配置计算体积阈值时忽略特定分包
  • 修复注册了全局组件输出支付宝时编译报错的问题

Packages

  • @mpxjs/core: 2.8.40 => 2.8.42
  • @mpxjs/size-report: 2.8.40 => 2.8.42
  • @mpxjs/webpack-plugin: 2.8.41 => 2.8.42
mpx -

Published by hiyuki about 1 year ago

Bugfix

  • 局部构建partialCompile能力完善,修复局部构建产生的resolve报错和分包异步资源在局部构建下占用主包体积的问题

Packages

  • @mpxjs/webpack-plugin: 2.8.40 => 2.8.41
mpx -

Published by hiyuki about 1 year ago

Bugfix

  • 升级miniprogram-api-typings,修复部分类型定义
  • 为@mpxjs/store添加effectScope支持,修复某些特定场景下store的getters effect被组件误收集的问题

Packages

  • @mpxjs/api-proxy: 2.8.39 => 2.8.40
  • @mpxjs/core: 2.8.39 => 2.8.40
  • @mpxjs/size-report: 2.8.39 => 2.8.40
  • @mpxjs/store: 2.8.15 => 2.8.40
  • @mpxjs/webpack-plugin: 2.8.39 => 2.8.40
mpx - v2.8.36

Published by Blackgan3 over 1 year ago

Bugfix

  • 调整内置postcss插件执行顺序,解决内置插件中的 rpx 等带有注释处理功能的插件无法按预期方式执行的问题
mpx -

Published by Blackgan3 over 1 year ago

New features

  • 添加initData类型定义
  • 新增校验异步组件未写 componentPlaceholder 或者 componentPlaceholder 是一个未定义的组件的功能

Bugfix

  • 修复字节小程序引用多个插件页面丢失注册页面问题
  • 修复wxml-loader中的随机数bug
  • 移除非标准 watch 选项 immediateAsync

Packages

  • @mpxjs/core: 2.8.31 => 2.8.33
  • @mpxjs/webpack-plugin: 2.8.31 => 2.8.33
mpx -

Published by hiyuki over 1 year ago

Bugfix

  • 修复render函数边界异常case
  • 输出web时video组件新增playsinline属性

Packages

  • @mpxjs/core: 2.8.28 => 2.8.31
  • @mpxjs/webpack-plugin: 2.8.30 => 2.8.31
mpx -

Published by hiyuki over 1 year ago

Bugfix

  • 输出 web 时通过编译时 hack fix 的方式处理 vue-i18n-bridge 中通过 new Function 动态执行 es6+ 代码带来的兼容性问题

Packages

  • @mpxjs/webpack-plugin: 2.8.29 => 2.8.30
mpx -

Published by hiyuki over 1 year ago

Bugfix

  • fix #1193,避免输出web时在新版脚手架项目中抛出非预期错误

Packages

  • @mpxjs/webpack-plugin: 2.8.28 => 2.8.29
mpx -

Published by hiyuki over 1 year ago

Bugfix

  • 避免组件在unmouted后依然执行队列中的render函数
  • 修复输出web时effectScope不返回的问题
  • 输出web升级betterScroll版本避免内部报错
  • 恢复初始化refs时机为beforeCreate,安全使用refs的时机包括nextTick/watchPost/mounted

Packages

  • @mpxjs/core: 2.8.27 => 2.8.28
  • @mpxjs/webpack-plugin: 2.8.27 => 2.8.28