Skip to content

Commit

Permalink
Merge pull request #13 from joshwnj/expose-source-css
Browse files Browse the repository at this point in the history
expose source css to generateScopedName
  • Loading branch information
geelen committed Jun 29, 2015
2 parents c04857f + 9165d71 commit d221675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const processor = postcss.plugin('postcss-modules-scope', function(options) {
let exports = {};

function exportScopedName(name) {
let scopedName = generateScopedName(name, css.source.input.from);
let scopedName = generateScopedName(name, css.source.input.from, css.source.input.css);
exports[name] = exports[name] || [];
if(exports[name].indexOf(scopedName) < 0) {
exports[name].push(scopedName);
Expand Down

0 comments on commit d221675

Please sign in to comment.