{"version":3,"file":"loadUrlPolyfill.mjs","sources":["../../../src/moduleLoaders/loadUrlPolyfill.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const loadUrlPolyfill = () => {\n    try {\n        // metro bundler requires static string for loading module.\n        // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages\n        require('react-native-url-polyfill/auto');\n    }\n    catch (e) {\n        // The error parsing logic cannot be extract as with metro the `require`\n        // would be confused when there is a `import` in the same file importing\n        // another module and that causes error\n        const message = e.message.replace(/undefined/g, 'react-native-url-polyfill');\n        throw new Error(message);\n    }\n};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,eAAe,GAAG,MAAM;AACrC,IAAI,IAAI;AACR;AACA;AACA,QAAQ,OAAO,CAAC,gCAAgC,CAAC;AACjD,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE;AACd;AACA;AACA;AACA,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,2BAA2B,CAAC;AACpF,QAAQ,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC;AAChC,IAAI;AACJ;;;;"}