-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23772 from storybookjs/chaks/vue3-global-app-install
Vue3: Add support for Global Apps install
- Loading branch information
Showing
5 changed files
with
29 additions
and
15 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,5 +1,10 @@ | ||
import { global } from '@storybook/global'; | ||
import type { App } from 'vue'; | ||
import type { StoryContext } from './public-types'; | ||
|
||
const { window: globalWindow } = global; | ||
|
||
globalWindow.STORYBOOK_ENV = 'vue3'; | ||
globalWindow.PLUGINS_SETUP_FUNCTIONS ||= new Set< | ||
(app: App<any>, context: StoryContext) => unknown | ||
>(); |
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
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 +1,2 @@ | ||
declare var STORYBOOK_ENV: 'vue3'; | ||
declare var PLUGINS_SETUP_FUNCTIONS = new Set<(app, context) => unknown>(); |