ecomfe / esl

enterprise standard loader
BSD 3-Clause "New" or "Revised" License
845 stars 228 forks source link

add cross origin attribute to root require #67

Closed leeight closed 7 years ago

leeight commented 7 years ago

如果需要给 script tag 添加自定义的属性,要么给 globalRequire 添加一个 createNode 的接口,或者添加一个 afterNodeCreated hook。

https://github.com/requirejs/requirejs/issues/1550