(type, url, { message })
| 54 | const relative_url = (url, base = location.href) => new URL(url, base).href; |
| 55 | |
| 56 | const syntaxError = (type, url, { message }) => { |
| 57 | let str = `(${BAD_CONFIG}): Invalid ${type}`; |
| 58 | if (url) str += ` @ ${url}`; |
| 59 | return new SyntaxError(`${str}\n${message}`); |
| 60 | }; |
| 61 | |
| 62 | const configs = new Map(); |
| 63 |