@vixt/core 0.1.8 → 0.1.10

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/dist/index.d.mts CHANGED
@@ -37,13 +37,13 @@ interface AppOptions {
37
37
  * @default 'div'
38
38
  */
39
39
  rootTag?: string;
40
- /** transform main.ts */
41
- transformMain?: (code: string, vixt: Vixt) => string | undefined;
42
40
  css?: string[];
43
41
  /**
44
42
  * @default './loading.html'
45
43
  */
46
44
  loadingTemplate?: string;
45
+ /** transform main.ts */
46
+ transformMain?: (code: string, vixt: Vixt) => string | undefined;
47
47
  }
48
48
  declare const app: VixtModule<AppOptions>;
49
49
 
package/dist/index.d.ts CHANGED
@@ -37,13 +37,13 @@ interface AppOptions {
37
37
  * @default 'div'
38
38
  */
39
39
  rootTag?: string;
40
- /** transform main.ts */
41
- transformMain?: (code: string, vixt: Vixt) => string | undefined;
42
40
  css?: string[];
43
41
  /**
44
42
  * @default './loading.html'
45
43
  */
46
44
  loadingTemplate?: string;
45
+ /** transform main.ts */
46
+ transformMain?: (code: string, vixt: Vixt) => string | undefined;
47
47
  }
48
48
  declare const app: VixtModule<AppOptions>;
49
49
 
package/dist/index.mjs CHANGED
@@ -159,7 +159,7 @@ function generateIndexHtml(options, vixt) {
159
159
  const { head = {}, rootTag, rootId } = options;
160
160
  const headTemplate = Object.entries(head).filter(([k]) => k !== "noscript").map(([tag, attrs]) => attrs.map((e) => resolveHeadTag(tag, e))).flat().join("\n");
161
161
  const noscriptTemplate = Object.entries(head).filter(([k]) => k === "noscript").map(([tag, attrs]) => attrs.map((e) => resolveHeadTag(tag, e))).flat().join("\n");
162
- let { loadingTemplate } = options;
162
+ let { loadingTemplate = "" } = options;
163
163
  if (!loadingTemplate) {
164
164
  for (const layer of vixt._layers) {
165
165
  const loadingTemplatePath = path.resolve(layer.cwd, "loading.html");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/core",
3
3
  "type": "module",
4
- "version": "0.1.8",
4
+ "version": "0.1.10",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/SoulLyoko/vixt#readme",
@@ -31,7 +31,7 @@
31
31
  "pathe": "^1.1.2",
32
32
  "pkg-types": "^1.1.3",
33
33
  "tsx": "^4.16.5",
34
- "vite": "^5.3.5",
34
+ "vite": "^5.4.0",
35
35
  "vite-plugin-checker": "^0.7.2",
36
36
  "vue-tsc": "^2.0.29"
37
37
  },