import { render } from 'reactant-web' ; import { createSharedApp } from 'reactant-share' ; import { AppView } from './app.view' ; createSharedApp ( { modules : [ ] , main : AppView , render , share : { name : 'SharedWorkerApp' , port : 'client' , type : 'SharedWorker' , workerURL : 'worker.bundle.js' , } , } ) . then ( ( app ) => { app . bootstrap ( document . getElementById ( 'app' ) ) ; } ) ;