* @returns {(moduleInfo: ModuleInfo, context: RequireContext) => EXPECTED_ANY} css runner
()
| 759 | * @returns {(moduleInfo: ModuleInfo, context: RequireContext) => EXPECTED_ANY} css runner |
| 760 | */ |
| 761 | createCssRunner() { |
| 762 | return (moduleInfo) => { |
| 763 | if (this.hasWebTarget()) { |
| 764 | const link = this._moduleScope.document.createElement("link"); |
| 765 | link.href = moduleInfo.origin; |
| 766 | this._moduleScope.document.head.appendChild(link); |
| 767 | } |
| 768 | |
| 769 | return moduleInfo.content; |
| 770 | }; |
| 771 | } |
| 772 | |
| 773 | /** |
| 774 | * @returns {EXPECTED_ANY} env |
no test coverage detected