classnames-loader
Advanced tools
Comparing version 2.0.0 to 2.1.0
12
index.js
@@ -14,5 +14,15 @@ var loaderUtils = require("loader-utils"); | ||
var css = classNames.bind(locals); | ||
for (var style in locals) css[style] = locals[style]; | ||
for (var style in locals) { | ||
if (!locals.hasOwnProperty(style)) { | ||
continue; | ||
} | ||
if (typeof Object.defineProperty === 'function') { | ||
Object.defineProperty(css, style, {value: locals[style]}); | ||
} | ||
else { | ||
css[style] = locals[style]; | ||
} | ||
} | ||
module.exports = css; | ||
`; | ||
} |
{ | ||
"name": "classnames-loader", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Webpack loader to automatically bind css-modules to classnames", | ||
@@ -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
5210
25
4