import { resolve as pathResolve } from 'path'; import { getSourcePath } from '@erect/core/paths'; import { isErectProject } from './utils/isErectProject'; if (isErectProject()) { let pluggableFile: string | void; try { pluggableFile = require.resolve( pathResolve(getSourcePath(), 'pluggable'), ); } catch (error) {} if (typeof pluggableFile === 'string') { require(pluggableFile); } }