From 18f57c6fc32b36c2fda93e93ba4756a569ad13d2 Mon Sep 17 00:00:00 2001 From: Explicit12 Date: Thu, 26 Dec 2024 12:24:32 +0200 Subject: [PATCH] Used vueless config for webTypes --- src/plugin-vite.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugin-vite.js b/src/plugin-vite.js index 1983aa3e..90f9285e 100644 --- a/src/plugin-vite.js +++ b/src/plugin-vite.js @@ -11,6 +11,7 @@ import { createTailwindSafelist, clearTailwindSafelist } from "./utils/node/tail import { getNuxtFiles, getVueFiles } from "./utils/node/helper.js"; import { componentResolver, directiveResolver } from "./utils/node/vuelessResolver.js"; import { setCustomPropTypes, removeCustomPropTypes } from "./utils/node/dynamicProps.js"; +import { vuelessConfig } from "./utils/ui.js"; /* Automatically importing Vueless components on demand */ export const VuelessUnpluginComponents = (options) => @@ -68,10 +69,9 @@ export const Vueless = function (options = {}) { if ((config.command.includes("sb:") && mode === "storybook") || isVuelessEnv) { try { - const webTypesModule = await import("@vueless/storybook/webTypes"); - const buildWebTypes = webTypesModule.default; + const { default: buildWebTypes } = await import("@vueless/storybook/webTypes"); - await buildWebTypes(); + await buildWebTypes(vuelessConfig); } catch (error) { // eslint-disable-next-line no-console console.warn(error);