@pubinfo/vite 2.0.4 → 2.0.6

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.js +15 -21
  2. 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
- ...autoImport({
390
- imports: [
391
- "vue",
392
- "vue-router",
393
- "pinia",
394
- { pubinfo: ["useAuth"] }
395
- ],
396
- ignore: ["h"],
397
- dts: "./.pubinfo/auto-imports.d.ts",
398
- resolvers: [AntDesignVueResolver(), IconsResolver({ prefix: "i" })]
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
- ...dts({
462
- clearPureImport: false,
463
- exclude: ["tests/**/*"]
464
- }),
465
- enforce: "post"
466
- };
457
+ return dts({
458
+ clearPureImport: false,
459
+ exclude: ["tests/**/*"]
460
+ });
467
461
  }
468
462
 
469
463
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pubinfo/vite",
3
3
  "type": "module",
4
- "version": "2.0.4",
4
+ "version": "2.0.6",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",