收藏
回答

使用了分包异步加载之后,配置的“上传时进行代码保护”不可用?

message:pages/index/index.js: Code protect is not available

in pages/index/index.js

require is not being used properly in 'MemberExpression'


async onLoad(options) {

let {map} = await require.async('../../utilsPack/page-index.js');

testIndex = map;

testIndex.xxx.bind(this);

}

回答关注问题邀请回答
收藏
登录 后发表内容