@pubinfo/vite 2.0.4 → 2.0.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.
- package/dist/index.js +15 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -385,20 +385,17 @@ const ctx = new Ctx();
|
|
|
385
385
|
//#endregion
|
|
386
386
|
//#region src/plugins/intergrations/auto-import.ts
|
|
387
387
|
function createAutoImport() {
|
|
388
|
-
return {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
}),
|
|
400
|
-
enforce: "pre"
|
|
401
|
-
};
|
|
388
|
+
return autoImport({
|
|
389
|
+
imports: [
|
|
390
|
+
"vue",
|
|
391
|
+
"vue-router",
|
|
392
|
+
"pinia",
|
|
393
|
+
{ pubinfo: ["useAuth"] }
|
|
394
|
+
],
|
|
395
|
+
ignore: ["h"],
|
|
396
|
+
dts: "./.pubinfo/auto-imports.d.ts",
|
|
397
|
+
resolvers: [AntDesignVueResolver(), IconsResolver({ prefix: "i" })]
|
|
398
|
+
});
|
|
402
399
|
}
|
|
403
400
|
|
|
404
401
|
//#endregion
|
|
@@ -457,13 +454,10 @@ function createCompression(env) {
|
|
|
457
454
|
//#endregion
|
|
458
455
|
//#region src/plugins/intergrations/dts.ts
|
|
459
456
|
function createDTS() {
|
|
460
|
-
return {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
}),
|
|
465
|
-
enforce: "post"
|
|
466
|
-
};
|
|
457
|
+
return dts({
|
|
458
|
+
clearPureImport: false,
|
|
459
|
+
exclude: ["tests/**/*"]
|
|
460
|
+
});
|
|
467
461
|
}
|
|
468
462
|
|
|
469
463
|
//#endregion
|