import { WeChatAdaptor } from './wechat' ; import { Adaptor , AdaptorType , ExportComponentMeta } from './common' ; import { GojiTarget } from '../constants' ; export * from './common' ; export const createAdaptor = ( type , target , exportMeta , disablePageSharing ) : Adaptor => { switch ( target ) { case 'wechat' : return new WeChatAdaptor ( type , exportMeta , disablePageSharing ) ; default : return new WeChatAdaptor ( type , exportMeta , disablePageSharing ) ; } } ;