Skip to content

Commit 85e3bb3

Browse files
committed
1 parent e4c186b commit 85e3bb3

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

.storybook/preview.js

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,11 @@
1-
21
export 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';
76
import customElements from '../custom-elements.json';
87

98
import '../src/utils/show-pins-element';
109

1110
// Configure Storybook Docs Addon for Web Components
1211
setCustomElements(customElements);
13-
14-
// force full reload to not re-register web components
15-
const req = require.context('../src', true, /\.stories\.(ts|js)$/);
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-
}

0 commit comments

Comments
 (0)