()
| 57209 | return _load.apply(this, arguments); |
| 57210 | } |
| 57211 | function _load() { |
| 57212 | _load = (0, _asyncToGeneratorDefault.default)((0, _regeneratorDefault.default).mark(function _callee(url, loaders, options) { |
| 57213 | var fetch, data; |
| 57214 | return (0, _regeneratorDefault.default).wrap(function _callee$(_context) { |
| 57215 | while(true)switch(_context.prev = _context.next){ |
| 57216 | case 0: |
| 57217 | if (!Array.isArray(loaders) && !(0, _normalizeLoader.isLoaderObject)(loaders)) { |
| 57218 | options = loaders; |
| 57219 | loaders = null; |
| 57220 | } |
| 57221 | fetch = (0, _optionUtils.getFetchFunction)(options || {}); |
| 57222 | data = url; |
| 57223 | if (!(typeof url === "string")) { |
| 57224 | _context.next = 9; |
| 57225 | break; |
| 57226 | } |
| 57227 | _context.next = 6; |
| 57228 | return fetch(url); |
| 57229 | case 6: |
| 57230 | data = _context.sent; |
| 57231 | _context.next = 10; |
| 57232 | break; |
| 57233 | case 9: |
| 57234 | url = null; |
| 57235 | case 10: |
| 57236 | if (!(0, _isType.isBlob)(url)) { |
| 57237 | _context.next = 15; |
| 57238 | break; |
| 57239 | } |
| 57240 | _context.next = 13; |
| 57241 | return fetch(url); |
| 57242 | case 13: |
| 57243 | data = _context.sent; |
| 57244 | url = null; |
| 57245 | case 15: |
| 57246 | _context.next = 17; |
| 57247 | return (0, _parse.parse)(data, loaders, options); |
| 57248 | case 17: |
| 57249 | return _context.abrupt("return", _context.sent); |
| 57250 | case 18: |
| 57251 | case "end": |
| 57252 | return _context.stop(); |
| 57253 | } |
| 57254 | }, _callee); |
| 57255 | })); |
| 57256 | return _load.apply(this, arguments); |
| 57257 | } |
| 57258 | |
| 57259 | },{"@babel/runtime/regenerator":"hCi6z","@babel/runtime/helpers/esm/asyncToGenerator":"1U3uv","../../javascript-utils/is-type":"ceaCP","../loader-utils/normalize-loader":"g60Fi","../loader-utils/option-utils":"lu6r8","./parse":"7C096","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"9Br8C":[function(require,module,exports) { |
| 57260 | var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js"); |
nothing calls this directly
no outgoing calls
no test coverage detected