@vixt/uni 0.4.3 → 0.4.5

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.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -5
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { generateClient, generateCss, generateAppConfig, generatePlugins, defineVixtModule, generateIndexHtml, defineVitePlugin, resolveLayersDirs, createVixtPlugin } from '@vixt/core';
1
+ import { generateClient, generateCss, generateAppConfig, generatePlugins, defineVixtModule, generateIndexHtml, defineVitePlugin, resolveLayersDirs, patchUnocss, createVixtPlugin } from '@vixt/core';
2
2
  import path from 'pathe';
3
3
  import { genarateAppComponent } from '@vixt/vue';
4
4
  import fs from 'fs-extra';
@@ -70,8 +70,7 @@ const defaults$1 = {
70
70
  css: [],
71
71
  head: {
72
72
  meta: [
73
- { charset: "utf-8" },
74
- { name: "viewport", content: "width=device-width, initial-scale=1" }
73
+ { charset: "utf-8" }
75
74
  ]
76
75
  }
77
76
  };
@@ -195,15 +194,16 @@ const presetUni = defineVixtModule({
195
194
  unocss: {}
196
195
  };
197
196
  const options = vixt.options = defu(vixt.options, defaultOptions);
197
+ patchUnocss();
198
198
  const modules = [
199
199
  Pages(options.uniPages),
200
200
  Layouts(options.uniLayouts),
201
201
  Components(options.uniComponents),
202
202
  AutoImport(options.imports),
203
203
  UnoCSS(options.unocss),
204
+ uniPatch(),
204
205
  // @ts-expect-error
205
- Uni.default(options.uni),
206
- uniPatch()
206
+ Uni.default(options.uni)
207
207
  ];
208
208
  return modules;
209
209
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/uni",
3
3
  "type": "module",
4
- "version": "0.4.3",
4
+ "version": "0.4.5",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/SoulLyoko/vixt#readme",
@@ -26,8 +26,8 @@
26
26
  "@uni-helper/vite-plugin-uni-layouts": "^0.1.10",
27
27
  "@uni-helper/vite-plugin-uni-pages": "^0.2.28",
28
28
  "unocss-applet": "^0.10.0",
29
- "@vixt/core": "0.4.3",
30
- "@vixt/vue": "0.4.3"
29
+ "@vixt/vue": "0.4.5",
30
+ "@vixt/core": "0.4.5"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "unbuild",