Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
*/
const loaders = [
// loads images and fonts
{
test: [].concat(imageIncludes).concat(fontIncludes),
use: [{
loader: '@ff0000-ad-tech/fba-loader',
options: {
emitFile: false
}
}]
}
]
// get Babel loaders based on environment (debug or production)
const babelLoaderCreator = DM.deploy.get().output.debug ? DM.babel.debug : DM.babel.production
log(`using ${DM.deploy.get().output.debug ? 'debug' : 'production'} Babel settings`)
// FBA type objects used with binary-imports module
// (https://github.com/ff0000-ad-tech/binary-imports)
const fbaTypes = [{
type: 'fbAi',
include: imageIncludes
},
{
type: 'fbAf',
include: fontIncludes
}
]
const babelLoaders = babelLoaderCreator({
// loads images and fonts
{
test: [].concat(imageIncludes).concat(fontIncludes),
use: [
{
loader: '@ff0000-ad-tech/fba-loader',
options: {
emitFile: false
}
}
]
}
]
// get Babel loaders based on environment (debug or production)
const babelLoaderCreator = DM.deploy.get().output.debug ? DM.babel.debug : DM.babel.production
log(`using ${DM.deploy.get().output.debug ? 'debug' : 'production'} Babel settings`)
// FBA type objects used with binary-imports module
// (https://github.com/ff0000-ad-tech/binary-imports)
const fbaTypes = [
{
type: 'fbAi',
include: imageIncludes
},
{
type: 'fbAf',
include: fontIncludes
}
]