Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const config: StorybookConfig = {
viteFinal(config) {
// Storybook's vue3-vite framework adds its own Vue plugin with default options.
// We need to configure `isCustomElement` so Vue treats `craft-*` tags as web
// components (from @craftcms/cp) rather than trying to resolve them as Vue
// components (from @craftcms/ui) rather than trying to resolve them as Vue
// components. Since Vite's mergeConfig doesn't deep-merge plugin options,
// we remove Storybook's Vue plugin and add our own with the correct config.
const filteredPlugins = (config.plugins || []).flat().filter((plugin) => {
Expand Down
2 changes: 1 addition & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {Preview} from '@storybook/vue3';
import {setup} from '@storybook/vue3';
import {withThemeByDataAttribute} from '@storybook/addon-themes';
import '@craftcms/cp';
import '@craftcms/ui';
import '../resources/css/cp.css';
import './preview.css';
import {installInertiaMock, setPageProps} from './inertia-mock';
Expand Down
Loading
Loading