Skip to content

Commit 9ccc166

Browse files
authored
Merge pull request #1381 from valadas/storybook-fix-2
Additional storybook fix
2 parents 0c25eae + ac00029 commit 9ccc166

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/stencil-library/.storybook/preview.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
// Reverting to .ts as React is no longer part of this version
22
import type { Preview } from '@storybook/web-components-vite';
33
import { setCustomElementsManifest } from '@storybook/web-components-vite';
4-
import { defineCustomElements } from '../loader';
54
import customElements from '../custom-elements.json';
65
import { Title, Subtitle, Description, Primary, Controls, Stories } from '@storybook/addon-docs/blocks';
76
import React from 'react';
87
import { h } from '@stencil/core';
98

10-
// Register Stencil components and set the custom elements manifest
11-
defineCustomElements();
9+
// Import the full bundle instead of using the loader
10+
import '../dist/dnn/dnn.esm.js';
1211
setCustomElementsManifest(customElements);
1312

1413
const preview: Preview = {

0 commit comments

Comments
 (0)