* Loads a file or resource URI synchronously * * @param {Uri} uri the file or resource URI to load * @returns {string} the contents of the module
(uri)
| 78 | * @returns {string} the contents of the module |
| 79 | */ |
| 80 | loadURI(uri) { |
| 81 | if (uri.scheme === 'file' || uri.scheme === 'resource') |
| 82 | return loadResourceOrFile(uri.uri); |
| 83 | |
| 84 | throw new ImportError(`Unsupported URI scheme for importing: ${uri.scheme ?? uri}`); |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Resolves an import specifier given an optional parent importer. |
no outgoing calls
no test coverage detected