()
| 21 | }; |
| 22 | |
| 23 | function resolveHasteDefines() { |
| 24 | // Run in the context of webpack's compiler. |
| 25 | var hasteMap = buildHasteMap(); |
| 26 | this.resolvers.normal.plugin('module', function(request, callback) { |
| 27 | var hastePath = hasteMap[request.request]; |
| 28 | if (hastePath) { |
| 29 | return callback(null, { |
| 30 | path: hastePath, |
| 31 | query: request.query, |
| 32 | file: true, |
| 33 | resolved: true |
| 34 | }); |
| 35 | } |
| 36 | return callback(); |
| 37 | }); |
| 38 | } |
| 39 | |
| 40 | module.exports = { |
| 41 | resolveHasteDefines: resolveHasteDefines |
nothing calls this directly
no test coverage detected