神仙 9 mēneši atpakaļ
vecāks
revīzija
1bf76c618b

+ 1 - 1
packages/vite-plugin/dist/index.js

@@ -272,7 +272,7 @@
 			`;
                 if (!ignore.includes(item.name)) {
                     ignore.push(item.name);
-                    t0 += t;
+                    t0 += t + "\n\n";
                 }
             }
             return t0;

+ 1 - 0
packages/vite-plugin/package.json

@@ -32,6 +32,7 @@
 		"@vue/compiler-sfc": "^3.4.24",
 		"axios": "^1.6.8",
 		"glob": "^10.3.12",
+		"lodash": "^4.17.21",
 		"lodash-es": "^4.17.21",
 		"magic-string": "^0.30.10",
 		"prettier": "^3.2.5",

+ 8 - 0
packages/vite-plugin/pnpm-lock.yaml

@@ -17,6 +17,9 @@ importers:
       glob:
         specifier: ^10.3.12
         version: 10.3.12
+      lodash:
+        specifier: ^4.17.21
+        version: 4.17.21
       lodash-es:
         specifier: ^4.17.21
         version: 4.17.21
@@ -847,6 +850,9 @@ packages:
   lodash.merge@4.6.2:
     resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
 
+  lodash@4.17.21:
+    resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}
+
   lru-cache@10.2.0:
     resolution: {integrity: sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==}
     engines: {node: 14 || >=16.14}
@@ -1868,6 +1874,8 @@ snapshots:
 
   lodash.merge@4.6.2: {}
 
+  lodash@4.17.21: {}
+
   lru-cache@10.2.0: {}
 
   lru-cache@6.0.0:

+ 1 - 1
packages/vite-plugin/rollup.config.js

@@ -5,7 +5,7 @@ import { defineConfig } from "rollup";
 export default defineConfig({
 	input: ["src/index.ts"],
 
-	external: ["lodash-es"],
+	external: ["lodash"],
 
 	output: {
 		name: "index",

+ 1 - 1
packages/vite-plugin/src/ctx/index.ts

@@ -1,7 +1,7 @@
 import { join } from "path";
 import { readFile, rootDir, writeFile, error } from "../utils";
 import { glob } from "glob";
-import { assign, cloneDeep, isEqual, orderBy } from "lodash-es";
+import { assign, cloneDeep, isEqual, orderBy } from "lodash";
 import { config } from "../config";
 import fs from "fs";
 import axios from "axios";

+ 1 - 1
packages/vite-plugin/src/eps/index.ts

@@ -1,7 +1,7 @@
 import { createDir, error, firstUpperCase, readFile, rootDir, toCamel } from "../utils";
 import { join } from "path";
 import axios from "axios";
-import { isArray, isEmpty, last, merge, values } from "lodash-es";
+import { isArray, isEmpty, last, merge, values } from "lodash";
 import { createWriteStream } from "fs";
 import prettier from "prettier";
 import { config } from "../config";

+ 1 - 1
packages/vite-plugin/src/index.ts

@@ -3,7 +3,7 @@ import { config } from "./config";
 import { demo } from "./demo";
 import { virtual } from "./virtual";
 import type { Config } from "../types";
-import { merge } from "lodash-es";
+import { merge } from "lodash";
 
 export function cool(options: Config.Options) {
 	// 应用类型,admin | app