-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
75 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@storybook-vue/nuxt", | ||
"version": "0.2.3-alpha.12", | ||
"version": "0.2.3-alpha.13", | ||
"packageManager": "[email protected]", | ||
"description": "Storybook for Nuxt and Vite: Develop Vue3 components in isolation with Hot Reloading.", | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
async function initNuxt() { | ||
const { useStorybook } = await import('./runtime/composables/storybook') | ||
useStorybook() | ||
const vueAppRootContainer = document.createElement('div') | ||
vueAppRootContainer.id = '__nuxt' | ||
vueAppRootContainer.setAttribute('hidden', 'true') | ||
document.body.appendChild(vueAppRootContainer) | ||
|
||
// entry() | ||
const logger = console | ||
async function nuxtAppEntry() { | ||
const nuxtApp = () => import('#app/entry').then(m => m.default).catch(() => {}) | ||
// i | ||
const vueAppPromise = nuxtApp().catch((_error) => { | ||
// consola.error('Error while mounting app:', error) | ||
}) | ||
return vueAppPromise | ||
} | ||
initNuxt() | ||
export default initNuxt | ||
|
||
nuxtAppEntry().then((app: any) => { | ||
logger.log('nuxtAppEntry done', app) | ||
app().then(() => { | ||
logger.log('nuxtAppEntry app done') | ||
}).catch(() => { logger.log('nuxtAppEntry app error') }) | ||
// app() | ||
}) | ||
|
||
export default nuxtAppEntry |
53 changes: 0 additions & 53 deletions
53
packages/storybook-nuxt/src/runtime/composables/storybook.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters