Skip to content

Commit b871592

Browse files
committed
Ignore class names that start with dash in module mode
1 parent f0f7108 commit b871592

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/getLocalIdent.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55
var loaderUtils = require("loader-utils");
66
module.exports = function getLocalIdent(loaderContext, localIdentName, localName, options) {
7+
if ( /^\-/.test(localName) ) return localName;
78
var request = loaderContext.options && typeof loaderContext.options.context === "string" ?
89
loaderUtils.stringifyRequest({ context: loaderContext.options.context }, loaderUtils.getRemainingRequest(loaderContext)) :
910
loaderContext.request;

0 commit comments

Comments
 (0)