import { LoaderFactory } from '../interface' ; const factory = ( { mode } ) => { if ( mode !== 'production' ) { return null ; } try { const { default : loader } = require ( '@reskript/config-img-loader' ) ; return loader ; } catch { return null ; } } ; export default factory ;