Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
api.webpackUtils.addCacheSupport(rule, () =>
api.getCacheConfig(
'ts-loader',
{
typescript: api.localRequire('typescript/package').version,
'ts-loader': require('ts-loader/package').version
},
configFile
)
)