Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
chunk.files.forEach(function(fileName) {
var result = compilation.assets[fileName].source()
result = result.replace(/marko_loadTemplate\(\/\*require\.resolve\*\/\(/g, 'marko_loadTemplate(__webpack_require__(')
compilation.assets[fileName] = new ConcatSource(result)
})
})