@reshadow/core
Advanced tools
Comparing version 0.0.1-alpha.36 to 0.0.1-alpha.41
22
index.js
@@ -70,6 +70,19 @@ "use strict"; | ||
var isSSR = !(typeof window !== 'undefined' && window.document && window.document.createElement); | ||
var serverStyles = ''; | ||
var serverMap = {}; | ||
var getStyles = function getStyles() { | ||
return serverStyles; | ||
return { | ||
map: serverMap, | ||
get css() { | ||
var serverStyles = ''; | ||
for (var id in serverMap) { | ||
serverStyles += "<style type=\"text/css\" id=\"".concat(id, "\">").concat(serverMap[id], "</style>"); | ||
} | ||
return serverStyles; | ||
} | ||
}; | ||
}; | ||
@@ -83,3 +96,3 @@ | ||
if (isSSR) { | ||
serverStyles += "<style type=\"text/css\" id=\"".concat(id, "\">").concat(code, "</style>"); | ||
serverMap[id] = code; | ||
return; | ||
@@ -244,3 +257,4 @@ } | ||
USE_PREFIX: USE_PREFIX, | ||
KEYS: KEYS | ||
KEYS: KEYS, | ||
RESHADOW_ID: RESHADOW_ID | ||
}); |
{ | ||
"name": "@reshadow/core", | ||
"version": "0.0.1-alpha.36", | ||
"version": "0.0.1-alpha.41", | ||
"description": "reshadow core runtime", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8583
204