vueless 1.2.5 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
5
5
  "author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
6
6
  "homepage": "https://vueless.com",
@@ -45,7 +45,7 @@
45
45
  "vuedraggable": "4.1.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@material-symbols/svg-500": "^0.33.0",
48
+ "@material-symbols/svg-500": "^0.35.0",
49
49
  "@release-it/bumper": "^7.0.5",
50
50
  "@tsconfig/node20": "^20.1.6",
51
51
  "@types/jsdom": "^21.1.7",
@@ -65,7 +65,7 @@
65
65
  "prettier": "^3.6.2",
66
66
  "release-it": "^19.0.4",
67
67
  "typescript": "^5.8.3",
68
- "vite": "^7.0.6",
68
+ "vite": "^7.1.5",
69
69
  "vitest": "^3.2.4",
70
70
  "vue": "^3.5.18",
71
71
  "vue-router": "^4.5.1",
package/plugin-vite.js CHANGED
@@ -106,11 +106,6 @@ export const Vueless = function (options = {}) {
106
106
  define: {
107
107
  "process.env": {},
108
108
  },
109
- build: {
110
- rollupOptions: {
111
- external: ["node:fs/promises"],
112
- },
113
- },
114
109
  optimizeDeps: {
115
110
  include: isInternalEnv
116
111
  ? []
package/utils/ui.ts CHANGED
@@ -5,12 +5,7 @@ import { extendTailwindMerge } from "tailwind-merge";
5
5
  import { isCSR, isSSR } from "./helper";
6
6
  import { createGetMergedConfig } from "./node/mergeConfigs";
7
7
  import { COMPONENT_NAME as U_ICON } from "../ui.image-icon/constants";
8
- import {
9
- VUELESS_CACHE_DIR,
10
- ICON_NON_PROPS_DEFAULTS,
11
- VUELESS_CONFIG_FILE_NAME,
12
- TAILWIND_MERGE_EXTENSION,
13
- } from "../constants";
8
+ import { ICON_NON_PROPS_DEFAULTS, TAILWIND_MERGE_EXTENSION } from "../constants";
14
9
 
15
10
  import type { Config, ComponentDefaults, UnknownObject, ComponentNames } from "../types";
16
11
 
@@ -46,21 +41,19 @@ if (isCSR) {
46
41
  }
47
42
 
48
43
  if (isSSR) {
49
- /* Load Tailwind config from the project root in IIFE (no top-level await). */
50
44
  (async () => {
51
45
  try {
52
- const { readFile } = await import("node:fs/promises");
53
-
54
- const path = `${process.cwd()}/${VUELESS_CACHE_DIR}/${VUELESS_CONFIG_FILE_NAME}.mjs`;
55
- const code = await readFile(path, "utf8");
46
+ // @ts-expect-error: vueless.config.js is optional
47
+ vuelessConfig = (await import(/* @vite-ignore */ "/vueless.config.js")).default;
48
+ } catch {
49
+ vuelessConfig = {};
50
+ }
56
51
 
57
- vuelessConfig = (
58
- await import(
59
- /* @vite-ignore */ `data:text/javascript;base64,${Buffer.from(code).toString("base64")}`
60
- )
61
- ).default;
52
+ try {
53
+ // @ts-expect-error: vueless.config.ts is optional
54
+ vuelessConfig = (await import(/* @vite-ignore */ "/vueless.config.ts")).default;
62
55
  } catch {
63
- vuelessConfig = {} as Config;
56
+ vuelessConfig = {};
64
57
  }
65
58
  })();
66
59
  }