Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
timseAtl committed Nov 16, 2017
1 parent 262d9d4 commit 85dc4fc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ module.exports.pitch = function(remainingRequest) {
);
this.cacheable && this.cacheable();
if(!this.query) throw new Error("query parameter is missing");
/*
* workaround untill webpack-core module.libUtil handles this correctly.
*
* fixes:
* - https://github.com/webpack-contrib/expose-loader/issues/55
* - https://github.com/webpack-contrib/expose-loader/issues/49
*/
this._module.userRequest = this._module.userRequest + ' - exposed';
return accesorString(this.query.substr(1)) + " = " +
"require(" + JSON.stringify("-!" + newRequestPath) + ");";
Expand Down

0 comments on commit 85dc4fc

Please sign in to comment.