uni-app icon indicating copy to clipboard operation
uni-app copied to clipboard

feat: 支持微信小程序require.async()语法

Open yusongjohn opened this issue 1 year ago • 0 comments

pages/subPkgA/index.vue引用pages/subPkgB/util.js (两个分包)

require.async('../subpkgB/util.js'  /* webpackChunkName: "pages/subPkgB/util" */).then(function(module){
        console.log(module)
})

上面用法区别于官方用法是需要使用注释声明webpackChunkName,等价于import(..)用法。

yusongjohn avatar Mar 13 '23 11:03 yusongjohn