@stylin/msa-loader
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -31,2 +31,3 @@ "use strict"; | ||
const toDTS = Handlebars.compile(template, { noEscape: true }); | ||
const toCamelCase = R.pipe(R.toLower, R.replace(/(^\w|[-_][a-z])/g, R.pipe(R.toUpper, R.replace(`-`, ``), R.replace(`_`, ``)))); | ||
const pickRawValues = R.applySpec({ | ||
@@ -71,3 +72,3 @@ defValue: R.nth(1), | ||
const [, comment, , className] = matches; | ||
const pack = R.append(Object.assign({ className, componentName: extract(`component`, comment), tagName: extract(`tag`, comment) }, parseCommentOnly(comment))); | ||
const pack = R.append(Object.assign({ className, componentName: extract(`component`, comment) || toCamelCase(className), tagName: extract(`tag`, comment) }, parseCommentOnly(comment))); | ||
return pack(match(re)); | ||
@@ -74,0 +75,0 @@ }; |
{ | ||
"name": "@stylin/msa-loader", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Stylin loader module for webpack", | ||
@@ -43,3 +43,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
19377
214