ESL v2.2.0 Release Notes
-
- 新特性:增加
undef
卸载模块方法 - 新特性:增加
addLoader
方法,允许自定义加载过程 - 新特性:bundles配置支持正则匹配
- 新特性:增加
onNodeCreated
Hook,允许用户为加载的script元素扩展属性 - 新特性:增加
require.fetch
方法,预取但不定义模块 - 新特性:增加模块状态相关的Hook,包括
onModulePreDefined
、onModuleAnalyzed
、onModulePrepared
、onModuleDefined
- 新特性:loader加载之前,允许通过对象类型变量
esl
、require
、requirejs
预声明loader配置 - 变更:修改了waitSeconds超时的error message信息格式
- 🐛 bug修复:bundle为packages时,请求地址不正确
- 🐛 bug修复:一个模块同时被async require和做为其他模块的依赖时,factory运行可能失败。该问题为2.1.2引入
- 新特性:增加