We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
userRequest
module.userRequest
1 parent 3191765 commit 51629a4Copy full SHA for 51629a4
index.js
@@ -32,6 +32,14 @@ module.exports.pitch = function(remainingRequest) {
32
);
33
this.cacheable && this.cacheable();
34
if(!this.query) throw new Error("query parameter is missing");
35
+ /*
36
+ * Workaround until module.libIdent() in webpack/webpack handles this correctly.
37
+ *
38
+ * fixes:
39
+ * - https://github.com/webpack-contrib/expose-loader/issues/55
40
+ * - https://github.com/webpack-contrib/expose-loader/issues/49
41
+ */
42
+ this._module.userRequest = this._module.userRequest + '-exposed';
43
return accesorString(this.query.substr(1)) + " = " +
44
"require(" + JSON.stringify("-!" + newRequestPath) + ");";
45
};
0 commit comments