import { InDiv , IPlugin } from '@indiv/core' ; import { _document , PlatfromServerRenderer } from '../renderer' ; import { templateChecker } from './template-checker' ; export class implements IPlugin export class PlatformServer implements IPlugin { public bootstrap ( application ) { const rootElement = _document . createElement ( 'div' ) ; rootElement . id = 'root' ; _document . documentElement . appendChild ( rootElement ) ; application . setIndivEnv ( 'server' , true ) ; application . setRootElement ( _document . getElementById ( 'root' ) ) ; application . setRenderer ( PlatfromServerRenderer ) ; application . setTemplateChecker ( templateChecker ) ; } }