@stylin/ts-loader
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -20,3 +20,2 @@ "use strict"; | ||
}; | ||
const toCamelCase = R.pipe(R.toLower, R.replace(/(^\w|[-_][a-z])/g, R.pipe(R.toUpper, R.replace(`-`, ``), R.replace(`_`, ``)))); | ||
function loader(content, sourceMap, meta) { | ||
@@ -31,7 +30,7 @@ const onComplete = this.async(); | ||
componentName, | ||
isExtended: tagName && !!(parsedVariables || parsedVariables), | ||
isExtended: tagName && (parsedProperties || parsedVariables) && true, | ||
isStyled: !tagName, | ||
properties: parsedProperties, | ||
propsType: propsType(componentName, this.resource), | ||
styledPropsType: styledPropsType(componentName || toCamelCase(className)), | ||
styledPropsType: styledPropsType(componentName), | ||
tagName, | ||
@@ -38,0 +37,0 @@ variables: parsedVariables, |
{ | ||
"name": "@stylin/ts-loader", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Stylin TypeScript typing loader module for webpack", | ||
@@ -44,3 +44,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "226894fec336c3f532652ca9f9c62297e2a2d242" | ||
"gitHead": "132c38e58c7319ba7c1d45fb20358db2ac713ae4" | ||
} |
Sorry, the diff of this file is not supported yet
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
10799
65