weapp-vite 1.6.0 → 1.6.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.
@@ -3,7 +3,7 @@ import logger from "@weapp-core/logger";
3
3
  var logger_default = logger;
4
4
 
5
5
  // package.json
6
- var version = "1.6.0";
6
+ var version = "1.6.2";
7
7
 
8
8
  // src/constants.ts
9
9
  var VERSION = version;
@@ -13,7 +13,7 @@ var supportedCssLangs = ["wxss", "scss", "less", "sass", "styl"];
13
13
  // src/context.ts
14
14
  import { createRequire } from "node:module";
15
15
  import process from "node:process";
16
- import { addExtension, defu, isObject as isObject2, objectHash, removeExtension } from "@weapp-core/shared";
16
+ import { addExtension, defu, get as get2, isObject as isObject2, objectHash, removeExtension } from "@weapp-core/shared";
17
17
  import fs6 from "fs-extra";
18
18
  import path5 from "pathe";
19
19
  import { build, loadConfigFromFile } from "vite";
@@ -627,11 +627,10 @@ var CompilerContext = class {
627
627
  include: void 0
628
628
  }
629
629
  },
630
- plugins: [
631
- tsconfigPaths()
632
- ],
633
630
  logLevel: "warn"
634
631
  });
632
+ this.inlineConfig.plugins ??= [];
633
+ this.inlineConfig.plugins?.push(tsconfigPaths(this.inlineConfig.weapp?.tsconfigPaths));
635
634
  this.aliasEntries = getAliasEntries(this.inlineConfig.weapp?.jsonAlias);
636
635
  }
637
636
  get dependenciesCacheFilePath() {
@@ -833,6 +832,9 @@ var CompilerContext = class {
833
832
  }
834
833
  }
835
834
  }
835
+ if (get2(appEntry, "json.tabBar.custom")) {
836
+ await this.scanComponentEntry("custom-tab-bar/index", appDirname);
837
+ }
836
838
  return appEntry;
837
839
  }
838
840
  } else {
package/dist/cli.cjs CHANGED
@@ -22,7 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  mod
23
23
  ));
24
24
 
25
- // ../../node_modules/.pnpm/tsup@8.3.0_jiti@2.3.1_postcss@8.4.47_tsx@4.19.1_typescript@5.6.3_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js
25
+ // ../../node_modules/.pnpm/tsup@8.3.0_jiti@2.3.1_postcss@8.4.47_tsx@4.19.1_typescript@5.6.3_yaml@2.6.0/node_modules/tsup/assets/cjs_shims.js
26
26
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
27
27
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
28
28
 
@@ -34,7 +34,7 @@ var import_vite3 = require("vite");
34
34
  var import_weapp_ide_cli = require("weapp-ide-cli");
35
35
 
36
36
  // package.json
37
- var version = "1.6.0";
37
+ var version = "1.6.2";
38
38
 
39
39
  // src/constants.ts
40
40
  var VERSION = version;
@@ -662,11 +662,10 @@ var CompilerContext = class {
662
662
  include: void 0
663
663
  }
664
664
  },
665
- plugins: [
666
- (0, import_vite_tsconfig_paths.default)()
667
- ],
668
665
  logLevel: "warn"
669
666
  });
667
+ this.inlineConfig.plugins ??= [];
668
+ this.inlineConfig.plugins?.push((0, import_vite_tsconfig_paths.default)(this.inlineConfig.weapp?.tsconfigPaths));
670
669
  this.aliasEntries = getAliasEntries(this.inlineConfig.weapp?.jsonAlias);
671
670
  }
672
671
  get dependenciesCacheFilePath() {
@@ -868,6 +867,9 @@ var CompilerContext = class {
868
867
  }
869
868
  }
870
869
  }
870
+ if ((0, import_shared2.get)(appEntry, "json.tabBar.custom")) {
871
+ await this.scanComponentEntry("custom-tab-bar/index", appDirname);
872
+ }
871
873
  return appEntry;
872
874
  }
873
875
  } else {
package/dist/cli.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  VERSION,
3
3
  createCompilerContext,
4
4
  logger_default
5
- } from "./chunk-MVHNNHNO.mjs";
5
+ } from "./chunk-A4FBRNGQ.mjs";
6
6
  import "./chunk-444MQSSG.mjs";
7
7
 
8
8
  // src/cli.ts
@@ -1,6 +1,7 @@
1
1
  import { InlineConfig, UserConfig, UserConfigFnObject, UserConfigExport } from 'vite';
2
2
  import { PackageJson } from 'pkg-types';
3
3
  import { Options } from 'tsup';
4
+ import { PluginOptions } from 'vite-tsconfig-paths';
4
5
 
5
6
  interface Alias {
6
7
  find: string | RegExp;
@@ -49,6 +50,7 @@ interface WeappViteConfig {
49
50
  wxss: string;
50
51
  }>;
51
52
  };
53
+ tsconfigPaths?: PluginOptions;
52
54
  }
53
55
  interface BaseEntry {
54
56
  path: string;
@@ -1,6 +1,7 @@
1
1
  import { InlineConfig, UserConfig, UserConfigFnObject, UserConfigExport } from 'vite';
2
2
  import { PackageJson } from 'pkg-types';
3
3
  import { Options } from 'tsup';
4
+ import { PluginOptions } from 'vite-tsconfig-paths';
4
5
 
5
6
  interface Alias {
6
7
  find: string | RegExp;
@@ -49,6 +50,7 @@ interface WeappViteConfig {
49
50
  wxss: string;
50
51
  }>;
51
52
  };
53
+ tsconfigPaths?: PluginOptions;
52
54
  }
53
55
  interface BaseEntry {
54
56
  path: string;
package/dist/config.d.cts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { UserConfig, UserConfigExport, UserConfigFnObject } from 'vite';
2
- export { d as defineConfig } from './config-C1YqV4ix.cjs';
2
+ export { d as defineConfig } from './config-DnL5jJ7i.cjs';
3
3
  import 'pkg-types';
4
4
  import 'tsup';
5
+ import 'vite-tsconfig-paths';
package/dist/config.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { UserConfig, UserConfigExport, UserConfigFnObject } from 'vite';
2
- export { d as defineConfig } from './config-C1YqV4ix.js';
2
+ export { d as defineConfig } from './config-DnL5jJ7i.js';
3
3
  import 'pkg-types';
4
4
  import 'tsup';
5
+ import 'vite-tsconfig-paths';
package/dist/index.cjs CHANGED
@@ -35,7 +35,7 @@ __export(src_exports, {
35
35
  });
36
36
  module.exports = __toCommonJS(src_exports);
37
37
 
38
- // ../../node_modules/.pnpm/tsup@8.3.0_jiti@2.3.1_postcss@8.4.47_tsx@4.19.1_typescript@5.6.3_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js
38
+ // ../../node_modules/.pnpm/tsup@8.3.0_jiti@2.3.1_postcss@8.4.47_tsx@4.19.1_typescript@5.6.3_yaml@2.6.0/node_modules/tsup/assets/cjs_shims.js
39
39
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
40
40
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
41
41
 
@@ -664,11 +664,10 @@ var CompilerContext = class {
664
664
  include: void 0
665
665
  }
666
666
  },
667
- plugins: [
668
- (0, import_vite_tsconfig_paths.default)()
669
- ],
670
667
  logLevel: "warn"
671
668
  });
669
+ this.inlineConfig.plugins ??= [];
670
+ this.inlineConfig.plugins?.push((0, import_vite_tsconfig_paths.default)(this.inlineConfig.weapp?.tsconfigPaths));
672
671
  this.aliasEntries = getAliasEntries(this.inlineConfig.weapp?.jsonAlias);
673
672
  }
674
673
  get dependenciesCacheFilePath() {
@@ -870,6 +869,9 @@ var CompilerContext = class {
870
869
  }
871
870
  }
872
871
  }
872
+ if ((0, import_shared2.get)(appEntry, "json.tabBar.custom")) {
873
+ await this.scanComponentEntry("custom-tab-bar/index", appDirname);
874
+ }
873
875
  return appEntry;
874
876
  }
875
877
  } else {
package/dist/index.d.cts CHANGED
@@ -1,8 +1,9 @@
1
1
  import { PackageJson } from 'pkg-types';
2
2
  import { RollupWatcher, RollupOutput } from 'rollup';
3
- import { P as ProjectConfig, E as Entry, A as AppEntry, S as SubPackageMetaValue, R as ResolvedAlias, C as CompilerContextOptions } from './config-C1YqV4ix.cjs';
3
+ import { P as ProjectConfig, E as Entry, A as AppEntry, S as SubPackageMetaValue, R as ResolvedAlias, C as CompilerContextOptions } from './config-DnL5jJ7i.cjs';
4
4
  import { InlineConfig } from 'vite';
5
5
  import { Options } from 'tsup';
6
+ import 'vite-tsconfig-paths';
6
7
 
7
8
  declare class CompilerContext {
8
9
  /**
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import { PackageJson } from 'pkg-types';
2
2
  import { RollupWatcher, RollupOutput } from 'rollup';
3
- import { P as ProjectConfig, E as Entry, A as AppEntry, S as SubPackageMetaValue, R as ResolvedAlias, C as CompilerContextOptions } from './config-C1YqV4ix.js';
3
+ import { P as ProjectConfig, E as Entry, A as AppEntry, S as SubPackageMetaValue, R as ResolvedAlias, C as CompilerContextOptions } from './config-DnL5jJ7i.js';
4
4
  import { InlineConfig } from 'vite';
5
5
  import { Options } from 'tsup';
6
+ import 'vite-tsconfig-paths';
6
7
 
7
8
  declare class CompilerContext {
8
9
  /**
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CompilerContext,
3
3
  createCompilerContext
4
- } from "./chunk-MVHNNHNO.mjs";
4
+ } from "./chunk-A4FBRNGQ.mjs";
5
5
  import "./chunk-444MQSSG.mjs";
6
6
  export {
7
7
  CompilerContext,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite",
3
3
  "type": "module",
4
- "version": "1.6.0",
4
+ "version": "1.6.2",
5
5
  "description": "weapp-vite 一个现代化的小程序打包工具",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -61,10 +61,10 @@
61
61
  "picomatch": "^4.0.2",
62
62
  "tsup": "^8.3.0",
63
63
  "vite-tsconfig-paths": "^5.0.1",
64
- "@weapp-core/init": "^1.1.2",
65
- "@weapp-core/schematics": "^1.0.1",
66
- "@weapp-core/shared": "^1.0.3",
64
+ "@weapp-core/init": "^1.1.4",
67
65
  "@weapp-core/logger": "^1.0.1",
66
+ "@weapp-core/shared": "^1.0.3",
67
+ "@weapp-core/schematics": "^1.0.2",
68
68
  "weapp-ide-cli": "^2.0.6"
69
69
  },
70
70
  "publishConfig": {