(url)
| 96 | } |
| 97 | |
| 98 | function loadScript(url) { |
| 99 | return new Promise(function (resolve, reject) { |
| 100 | var script = document.createElement('script'); |
| 101 | script.async = true; |
| 102 | script.onload = function () { |
| 103 | resolve(); |
| 104 | } |
| 105 | script.onerror = function () { |
| 106 | handleLoadError(url, resolve, reject); |
| 107 | } |
| 108 | script.src = url; |
| 109 | document.head.appendChild(script); |
| 110 | }); |
| 111 | } |
| 112 | |
| 113 | function resolvePath(p) { |
| 114 | var paths = requireCfg.paths || {}; |
no test coverage detected
searching dependent graphs…