Skip to content

v2.7.0-beta.8

Compare
Choose a tag to compare
@hiyuki hiyuki released this 03 Dec 11:42
· 5862 commits to master since this release

New features

  • 支持通过webpack5输出web平台

  • 新增支持微信小程序【分包异步化】中的【跨分包自定义组件引用】特性,点击查看详情,在mpx中使用需通过?root声明组件所属异步分包,示例如下:

    <!--/packageA/pages/index.mpx-->
    <script type="application/json">  
      {
        "usingComponents": {
          "hello": "../../packageB/components/hello?root=packageB",
          "simple-hello": "../components/hello"
        },
        "componentPlaceholder": {
          "hello": "simple-hello"
        }
      }
    </script>

Packages

  • @mpxjs/webpack-plugin: 2.7.0-beta.7 => 2.7.0-beta.8