Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
*/
cacheDirectory: dev
? path.join(
root,
'node_modules',
'.cache',
'babel-loader',
platform
)
: false,
},
},
],
},
{
test: AssetResolver.test,
use: {
/**
* Asset loader enables asset management based on image scale
* This needs the AssetResolver plugin in resolver.plugins to work
*/
loader: ASSET_LOADER_PATH,
options: {
runtime,
platform,
root,
bundle: env.bundleTarget === 'file',
},
},
},
],
},
*/
cacheDirectory: dev
? path.join(
root,
'node_modules',
'.cache',
'babel-loader',
platform
)
: false,
},
},
],
},
{
test: AssetResolver.test,
use: {
/**
* Asset loader enables asset management based on image scale
* This needs the AssetResolver plugin in resolver.plugins to work
*/
loader: ASSET_LOADER_PATH,
options: {
runtime,
platform,
root,
bundle: env.bundleTarget === 'file',
},
},
},
],
},