Skip to content

Commit

Permalink
Used vueless config for webTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Explicit12 committed Dec 26, 2024
1 parent 1df7d77 commit 18f57c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugin-vite.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 18f57c6

Please sign in to comment.