diff --git a/packages/design-core/src/init.js b/packages/design-core/src/init.js index c5413fe8ea..7a65d71b5f 100644 --- a/packages/design-core/src/init.js +++ b/packages/design-core/src/init.js @@ -151,4 +151,6 @@ export const init = async ({ app.mount(selector) appMounted?.({ app }) + + return app } diff --git a/packages/design-core/src/preview/src/main.js b/packages/design-core/src/preview/src/main.js index a021f48040..68b5075929 100644 --- a/packages/design-core/src/preview/src/main.js +++ b/packages/design-core/src/preview/src/main.js @@ -30,4 +30,6 @@ export const initPreview = ({ registry, lifeCycles = {} }) => { initSvgs(app) app.mount('#app') + + return app }