fex-team / fis3-postpackager-loader

静态资源前端加载器
BSD 2-Clause "Simplified" License
82 stars 38 forks source link

requirejs 问题 #18

Open sojuker opened 9 years ago

sojuker commented 9 years ago

描述:

使用 amd 模式, AllInOne 的 includeAsyncs 配置为 true。 合并起来的 js 文件, async 模块在 require('mod', function(){}); 的后面被定义,所以requirejs还是会发起网络请求

所以应该将 async 模块前置

版本和配置

qq20150828-3 qq20150828-2

源码

qq20150828-4

编译后

html 代码

qq20150828-5

allInOne 的 js 代码

qq20150828-6 qq20150828-7

2betop commented 9 years ago

感谢反馈

2betop commented 9 years ago

稍等我会,我分析下原因。

2betop commented 9 years ago

@sojuker 请更新 1.3.1 版本,之前对于异步资源加入顺序是不对的,现在优化了逻辑,问题已经解决。