diff --git a/src/index.ts b/src/index.ts index a0651a9..7a5ad89 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ -import App from './app/app.component'; BI.DOM.ready(() => { + const app = require('./app/app.component').default; BI.createWidget({ - type:App, + type:app, element: 'body', }); });