@uni-helper/vite-plugin-uni-pages 0.1.1 → 0.1.2
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.cjs +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -8,7 +8,7 @@ const chokidar = require('chokidar');
|
|
|
8
8
|
const vite = require('vite');
|
|
9
9
|
const unconfig = require('unconfig');
|
|
10
10
|
const Debug = require('debug');
|
|
11
|
-
const
|
|
11
|
+
const lodash = require('lodash');
|
|
12
12
|
const fg = require('fast-glob');
|
|
13
13
|
const fs = require('fs');
|
|
14
14
|
const JSON5 = require('json5');
|
|
@@ -52,7 +52,7 @@ function isConfigFile(path) {
|
|
|
52
52
|
return path.includes("pages.config");
|
|
53
53
|
}
|
|
54
54
|
function mergePageMetaDataArray(pageMetaData) {
|
|
55
|
-
const pageMetaDataObj =
|
|
55
|
+
const pageMetaDataObj = lodash.groupBy(pageMetaData, "path");
|
|
56
56
|
const result = [];
|
|
57
57
|
for (const path in pageMetaDataObj) {
|
|
58
58
|
const _pageMetaData = pageMetaDataObj[path];
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import chokidar from 'chokidar';
|
|
|
4
4
|
import { normalizePath } from 'vite';
|
|
5
5
|
import { loadConfig } from 'unconfig';
|
|
6
6
|
import Debug from 'debug';
|
|
7
|
-
import { groupBy } from 'lodash
|
|
7
|
+
import { groupBy } from 'lodash';
|
|
8
8
|
import fg from 'fast-glob';
|
|
9
9
|
import fs from 'fs';
|
|
10
10
|
import JSON5 from 'json5';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uni-helper/vite-plugin-uni-pages",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"packageManager": "pnpm@7.16.1",
|
|
6
6
|
"description": "File system based routing for uni-app applications using Vite",
|
|
7
7
|
"author": "KeJun",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
".": {
|
|
19
19
|
"types": "./dist/index.d.ts",
|
|
20
20
|
"require": "./dist/index.cjs",
|
|
21
|
-
"import": "./dist/index.
|
|
21
|
+
"import": "./dist/index.mjs"
|
|
22
22
|
},
|
|
23
23
|
"./client": {
|
|
24
24
|
"types": "./client.d.ts"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"main": "./dist/index.mjs",
|
|
28
|
-
"module": "./dist/index.
|
|
28
|
+
"module": "./dist/index.cjs",
|
|
29
29
|
"types": "./dist/index.d.ts",
|
|
30
30
|
"files": [
|
|
31
31
|
"dist",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"debug": "^4.3.4",
|
|
38
38
|
"fast-glob": "^3.2.12",
|
|
39
39
|
"json5": "^2.2.3",
|
|
40
|
-
"lodash
|
|
40
|
+
"lodash": "^4.17.21",
|
|
41
41
|
"magic-string": "^0.27.0",
|
|
42
42
|
"unconfig": "^0.3.7",
|
|
43
43
|
"yaml": "^2.2.1"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@antfu/utils": "^0.7.2",
|
|
47
47
|
"@types/debug": "^4.1.7",
|
|
48
|
-
"@types/lodash
|
|
48
|
+
"@types/lodash": "^4.14.191",
|
|
49
49
|
"@types/node": "^18.11.18",
|
|
50
50
|
"vite": "^4.0.3"
|
|
51
51
|
},
|