import { Plugin } from 'vite' ; import usePreloadRuntimePublicPath from './preloadRuntimePublicPath' ; import { ResolvedConfig } from '../interface' ; const mountingCorePlugins = ( config ) : Array < Plugin | null > => [ config ?. build ?. runtimePublicPath ? usePreloadRuntimePublicPath ( config ?. build ?. runtimePublicPath ) : null , ] ; export default mountingCorePlugins ;