_loop_1 = function (item) {
                if (typeof item !== 'string') {
                    return "continue";
                }
                var itemName = item.replace('.json', '');
                var itemUrl = _pixi_utils__WEBPACK_IMPORTED_MODULE_2__.url.resolve(resource.url.replace(loader.baseUrl, ''), item);
                // Check if the file wasn't already added as multipacks are redundant
                if (loader.resources[itemName]
                    || Object.values(loader.resources).some(function (r) { return _pixi_utils__WEBPACK_IMPORTED_MODULE_2__.url.format(_pixi_utils__WEBPACK_IMPORTED_MODULE_2__.url.parse(r.url)) === itemUrl; })) {
                    return "continue";
                }
                var options = {
                    crossOrigin: resource.crossOrigin,
                    loadType: _pixi_loaders__WEBPACK_IMPORTED_MODULE_3__.LoaderResource.LOAD_TYPE.XHR,
                    xhrType: _pixi_loaders__WEBPACK_IMPORTED_MODULE_3__.LoaderResource.XHR_RESPONSE_TYPE.JSON,
                    parentResource: resource,
                    metadata: resource.metadata
                };
                loader.add(itemName, itemUrl, options);
            }
Called after a resource is loaded.
@see PIXI.Loader.loaderMiddleware
@param resource
@param next