(source, map)
| 4 | const loaderName = 'string-replace-loader' |
| 5 | |
| 6 | function loader (source, map) { |
| 7 | this.cacheable() |
| 8 | |
| 9 | const optionsArr = getOptionsArr(loaderName, this) |
| 10 | |
| 11 | let newSource = source |
| 12 | for (const options of optionsArr) { |
| 13 | newSource = replace(newSource, options, this) |
| 14 | } |
| 15 | |
| 16 | this.callback(null, newSource, map) |
| 17 | } |
| 18 | |
| 19 | module.exports = loader |
nothing calls this directly
no test coverage detected
searching dependent graphs…