vueless 1.4.3-beta.4 → 1.4.3

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.
@@ -48,7 +48,7 @@ export function useUI<T>(defaultConfig: T, mutatedProps?: MutatedProps, topLevel
48
48
 
49
49
  const firstClassKey = Object.keys(defaultConfig || {})[0];
50
50
  const config = ref({}) as Ref<ComponentConfigFull<T>>;
51
- const isDev = import.meta.env?.DEV;
51
+ const isDev = import.meta.env?.DEV || __VUELESS_DEV__;
52
52
  const isUnstyled = Boolean(vuelessConfig.unstyled);
53
53
 
54
54
  /* Hoist shared reactive primitives — create once, share across all keys. */
package/modules.d.ts CHANGED
@@ -31,3 +31,5 @@ declare module "virtual:vueless/vue-i18n" {
31
31
  export type I18n = UnknownObject;
32
32
  export type VueMessageType = UnknownObject;
33
33
  }
34
+
35
+ declare const __VUELESS_DEV__: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "1.4.3-beta.4",
3
+ "version": "1.4.3",
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",
@@ -57,7 +57,7 @@
57
57
  "@vue/eslint-config-typescript": "^14.6.0",
58
58
  "@vue/test-utils": "^2.4.6",
59
59
  "@vue/tsconfig": "^0.7.0",
60
- "@vueless/storybook": "^1.4.17",
60
+ "@vueless/storybook": "^1.4.18",
61
61
  "eslint": "^9.32.0",
62
62
  "eslint-plugin-storybook": "^10.0.2",
63
63
  "eslint-plugin-vue": "^10.3.0",
package/plugin-vite.js CHANGED
@@ -104,6 +104,7 @@ export const Vueless = function (options = {}) {
104
104
  config: () => ({
105
105
  define: {
106
106
  "process.env": {},
107
+ __VUELESS_DEV__: process.argv.includes("--watch") || process.argv.includes("-w"),
107
108
  },
108
109
  optimizeDeps: {
109
110
  include: isInternalEnv