File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change 1-
21export const parameters = {
3- actions : { argTypesRegex : " ^on[A-Z].*" } ,
4- }
2+ actions : { argTypesRegex : ' ^on[A-Z].*' } ,
3+ } ;
54
6- import { configure , setCustomElements } from '@storybook/web-components' ;
5+ import { setCustomElements } from '@storybook/web-components' ;
76import customElements from '../custom-elements.json' ;
87
98import '../src/utils/show-pins-element' ;
109
1110// Configure Storybook Docs Addon for Web Components
1211setCustomElements ( customElements ) ;
13-
14- // force full reload to not re-register web components
15- const req = require . context ( '../src' , true , / \. s t o r i e s \. ( t s | j s ) $ / ) ;
16-
17- configure ( req , module ) ;
18-
19- if ( module . hot ) {
20- module . hot . accept ( req . id , ( ) => {
21- const currentLocationHref = window . location . href ;
22- window . history . pushState ( null , null , currentLocationHref ) ;
23- window . location . reload ( ) ;
24- } ) ;
25- }
You can’t perform that action at this time.
0 commit comments