1 | /*
|
2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
3 | Author Tobias Koppers @sokra
|
4 | */
|
5 | module.exports = function() {};
|
6 | module.exports.pitch = function(remainingRequest) {
|
7 | if(!this.query) throw new Error("query parameter is missing");
|
8 | return "module.exports = " +
|
9 | "global[" + JSON.stringify(this.query.substr(1)) + "] = " +
|
10 | "require(" + JSON.stringify(remainingRequest) + ");";
|
11 | }; |
\ | No newline at end of file |