diff --git a/useable.js b/useable.js index af5a390b..e2099e26 100644 --- a/useable.js +++ b/useable.js @@ -13,9 +13,9 @@ module.exports.pitch = function(remainingRequest) { "var dispose;", "var content = require(" + loaderUtils.stringifyRequest(this, "!!" + remainingRequest) + ");", "if(typeof content === 'string') content = [[module.id, content, '']];", + "if(content.locals) exports.locals = content.locals;", "exports.use = exports.ref = function() {", " if(!(refs++)) {", - " exports.locals = content.locals;", " dispose = require(" + loaderUtils.stringifyRequest(this, "!" + path.join(__dirname, "addStyles.js")) + ")(content, " + JSON.stringify(query) + ");", " }", " return exports;",