From ac0002913f3b12c885c9a0168b29b7aba607b1e8 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 23 Aug 2025 16:58:24 -0400 Subject: [PATCH] Additional storybook fix Somehow one of the storybook fixes was not commited. This should be the final fix to make it work (famous last words). --- packages/stencil-library/.storybook/preview.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/stencil-library/.storybook/preview.tsx b/packages/stencil-library/.storybook/preview.tsx index 3ccbdf51..a08873b1 100644 --- a/packages/stencil-library/.storybook/preview.tsx +++ b/packages/stencil-library/.storybook/preview.tsx @@ -1,14 +1,13 @@ // Reverting to .ts as React is no longer part of this version import type { Preview } from '@storybook/web-components-vite'; import { setCustomElementsManifest } from '@storybook/web-components-vite'; -import { defineCustomElements } from '../loader'; import customElements from '../custom-elements.json'; import { Title, Subtitle, Description, Primary, Controls, Stories } from '@storybook/addon-docs/blocks'; import React from 'react'; import { h } from '@stencil/core'; -// Register Stencil components and set the custom elements manifest -defineCustomElements(); +// Import the full bundle instead of using the loader +import '../dist/dnn/dnn.esm.js'; setCustomElementsManifest(customElements); const preview: Preview = {