()
| 25 | * Registers the current runtime in the shared runtimes resource registry |
| 26 | */ |
| 27 | const registerCurrentRuntime = () => { |
| 28 | if (currentRuntimeIndex === undefined) { |
| 29 | currentRuntimeIndex = Runtimes.length; |
| 30 | const versionInfo = VersionInfo; |
| 31 | |
| 32 | Runtimes.push({ |
| 33 | ...versionInfo, |
| 34 | get scopingSuffix() { |
| 35 | return getCustomElementsScopingSuffix(); |
| 36 | }, |
| 37 | get registeredTags() { |
| 38 | return getAllRegisteredTags(); |
| 39 | }, |
| 40 | get scopingRules() { |
| 41 | return getCustomElementsScopingRules(); |
| 42 | }, |
| 43 | alias: currentRuntimeAlias, |
| 44 | description: `Runtime ${currentRuntimeIndex} - ver ${versionInfo.version}${currentRuntimeAlias ? ` (${currentRuntimeAlias})` : ""}`, |
| 45 | importMetaUrl: import.meta.url, |
| 46 | }); |
| 47 | } |
| 48 | }; |
| 49 | |
| 50 | /** |
| 51 | * Returns the index of the current runtime's object in the shared runtimes resource registry |
no test coverage detected
searching dependent graphs…