weapp-vite 2.1.2 → 2.1.4
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/{CompilerContext-DWFbNP11.d.cts → CompilerContext-C7LldNoo.d.cts} +2 -1
- package/dist/{CompilerContext-BjnJU9GL.d.ts → CompilerContext-D0jeQpYe.d.ts} +2 -1
- package/dist/auto-import-components/resolvers.mjs +1 -1
- package/dist/{chunk-NIZ7SGOM.mjs → chunk-3X3GXWYT.mjs} +15 -6
- package/dist/{chunk-TY34W2IS.mjs → chunk-CRVQ5UE6.mjs} +1 -1
- package/dist/{chunk-QFMRMB73.mjs → chunk-HAHM2NKS.mjs} +2 -2
- package/dist/cli.cjs +16 -7
- package/dist/cli.mjs +3 -3
- package/dist/{config-EPV0G671.d.ts → config-C-GvdaN9.d.ts} +1 -1
- package/dist/{config-Cvwqemwg.d.cts → config-D9TqUhDK.d.cts} +1 -1
- package/dist/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.mjs +2 -2
- package/dist/index.cjs +16 -7
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/json.d.cts +2 -2
- package/dist/json.d.ts +2 -2
- package/dist/json.mjs +1 -1
- package/package.json +14 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { R as ResolvedValue } from './types-dS68tjL6.cjs';
|
|
2
|
-
import { E as Entry, S as SubPackageMetaValue, R as ResolvedAlias, P as ProjectConfig, M as MpPlatform, W as WeappViteConfig, a as SubPackage, A as AppEntry, b as ScanWxmlOptions } from './config-
|
|
2
|
+
import { E as Entry, S as SubPackageMetaValue, R as ResolvedAlias, P as ProjectConfig, M as MpPlatform, W as WeappViteConfig, a as SubPackage, A as AppEntry, b as ScanWxmlOptions } from './config-D9TqUhDK.cjs';
|
|
3
3
|
import { PackageJson } from 'pkg-types';
|
|
4
4
|
import { InlineConfig } from 'vite';
|
|
5
5
|
import { RollupWatcher, RollupOutput } from 'rollup';
|
|
@@ -107,6 +107,7 @@ declare class ConfigService {
|
|
|
107
107
|
get packageJson(): PackageJson;
|
|
108
108
|
get projectConfig(): ProjectConfig;
|
|
109
109
|
get srcRoot(): string;
|
|
110
|
+
get absoluteSrcRoot(): string;
|
|
110
111
|
get mode(): string;
|
|
111
112
|
get aliasEntries(): ResolvedAlias[];
|
|
112
113
|
get platform(): MpPlatform;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { R as ResolvedValue } from './types-dS68tjL6.js';
|
|
2
|
-
import { E as Entry, S as SubPackageMetaValue, R as ResolvedAlias, P as ProjectConfig, M as MpPlatform, W as WeappViteConfig, a as SubPackage, A as AppEntry, b as ScanWxmlOptions } from './config-
|
|
2
|
+
import { E as Entry, S as SubPackageMetaValue, R as ResolvedAlias, P as ProjectConfig, M as MpPlatform, W as WeappViteConfig, a as SubPackage, A as AppEntry, b as ScanWxmlOptions } from './config-C-GvdaN9.js';
|
|
3
3
|
import { PackageJson } from 'pkg-types';
|
|
4
4
|
import { InlineConfig } from 'vite';
|
|
5
5
|
import { RollupWatcher, RollupOutput } from 'rollup';
|
|
@@ -107,6 +107,7 @@ declare class ConfigService {
|
|
|
107
107
|
get packageJson(): PackageJson;
|
|
108
108
|
get projectConfig(): ProjectConfig;
|
|
109
109
|
get srcRoot(): string;
|
|
110
|
+
get absoluteSrcRoot(): string;
|
|
110
111
|
get mode(): string;
|
|
111
112
|
get aliasEntries(): ResolvedAlias[];
|
|
112
113
|
get platform(): MpPlatform;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__name,
|
|
4
4
|
__toESM,
|
|
5
5
|
init_esm_shims
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HAHM2NKS.mjs";
|
|
7
7
|
|
|
8
8
|
// ../../node_modules/.pnpm/reflect-metadata@0.2.2/node_modules/reflect-metadata/Reflect.js
|
|
9
9
|
var require_Reflect = __commonJS({
|
|
@@ -1258,7 +1258,7 @@ var Symbols = {
|
|
|
1258
1258
|
// src/inversify.config.ts
|
|
1259
1259
|
init_esm_shims();
|
|
1260
1260
|
|
|
1261
|
-
// ../../node_modules/.pnpm/inversify@6.2.
|
|
1261
|
+
// ../../node_modules/.pnpm/inversify@6.2.2_reflect-metadata@0.2.2/node_modules/inversify/lib/esm/index.js
|
|
1262
1262
|
init_esm_shims();
|
|
1263
1263
|
var import_reflect_metadata = __toESM(require_Reflect(), 1);
|
|
1264
1264
|
|
|
@@ -1649,7 +1649,7 @@ var _ = /* @__PURE__ */ __name((t4) => /* @__PURE__ */ function(t5, e2) {
|
|
|
1649
1649
|
};
|
|
1650
1650
|
}(void 0 === t4 ? M : (e2) => D(e2, t4), void 0 === t4 ? w : (e2) => E(e2, t4)), "_");
|
|
1651
1651
|
|
|
1652
|
-
// ../../node_modules/.pnpm/inversify@6.2.
|
|
1652
|
+
// ../../node_modules/.pnpm/inversify@6.2.2_reflect-metadata@0.2.2/node_modules/inversify/lib/esm/index.js
|
|
1653
1653
|
var s2 = "named";
|
|
1654
1654
|
var o2 = "name";
|
|
1655
1655
|
var a2 = "unmanaged";
|
|
@@ -14749,6 +14749,9 @@ var ConfigService2 = class {
|
|
|
14749
14749
|
get srcRoot() {
|
|
14750
14750
|
return this.options.srcRoot;
|
|
14751
14751
|
}
|
|
14752
|
+
get absoluteSrcRoot() {
|
|
14753
|
+
return path7.resolve(this.cwd, this.srcRoot);
|
|
14754
|
+
}
|
|
14752
14755
|
get mode() {
|
|
14753
14756
|
return this.options.mode;
|
|
14754
14757
|
}
|
|
@@ -14819,7 +14822,7 @@ ConfigService2 = _ts_decorate4([
|
|
|
14819
14822
|
// src/context/services/JsonService.ts
|
|
14820
14823
|
init_esm_shims();
|
|
14821
14824
|
|
|
14822
|
-
// ../../node_modules/.pnpm/bundle-require@5.1.0_esbuild@0.
|
|
14825
|
+
// ../../node_modules/.pnpm/bundle-require@5.1.0_esbuild@0.25.0/node_modules/bundle-require/dist/index.js
|
|
14823
14826
|
init_esm_shims();
|
|
14824
14827
|
import fs22 from "fs";
|
|
14825
14828
|
import path22 from "path";
|
|
@@ -15004,7 +15007,7 @@ var loadTsConfigInternal = /* @__PURE__ */ __name((dir = process.cwd(), name = "
|
|
|
15004
15007
|
}, "loadTsConfigInternal");
|
|
15005
15008
|
var loadTsConfig = /* @__PURE__ */ __name((dir, name) => loadTsConfigInternal(dir, name), "loadTsConfig");
|
|
15006
15009
|
|
|
15007
|
-
// ../../node_modules/.pnpm/bundle-require@5.1.0_esbuild@0.
|
|
15010
|
+
// ../../node_modules/.pnpm/bundle-require@5.1.0_esbuild@0.25.0/node_modules/bundle-require/dist/index.js
|
|
15008
15011
|
import fs6 from "fs";
|
|
15009
15012
|
import path9 from "path";
|
|
15010
15013
|
import { createRequire as createRequire2 } from "module";
|
|
@@ -23135,7 +23138,13 @@ var WxmlService2 = class {
|
|
|
23135
23138
|
...this.configService.weappViteConfig?.enhance?.wxml === true ? {} : this.configService.weappViteConfig?.enhance?.wxml
|
|
23136
23139
|
});
|
|
23137
23140
|
this.tokenMap.set(filepath, res);
|
|
23138
|
-
await this.addDeps(filepath, res.deps.filter((x4) => isImportTag(x4.tagName) && isTemplate(x4.value)).map((x4) =>
|
|
23141
|
+
await this.addDeps(filepath, res.deps.filter((x4) => isImportTag(x4.tagName) && isTemplate(x4.value)).map((x4) => {
|
|
23142
|
+
if (x4.value.startsWith("/")) {
|
|
23143
|
+
return path14.resolve(this.configService.absoluteSrcRoot, x4.value.slice(1));
|
|
23144
|
+
} else {
|
|
23145
|
+
return path14.resolve(dirname3, x4.value);
|
|
23146
|
+
}
|
|
23147
|
+
}));
|
|
23139
23148
|
return res;
|
|
23140
23149
|
} else {
|
|
23141
23150
|
logger_default.warn(`\u5F15\u7528\u6A21\u677F ${this.configService.relativeCwd(filepath)} \u4E0D\u5B58\u5728!`);
|
|
@@ -28,9 +28,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
mod
|
|
29
29
|
));
|
|
30
30
|
|
|
31
|
-
// ../../node_modules/.pnpm/tsup@8.3.6_@swc+core@1.10.
|
|
31
|
+
// ../../node_modules/.pnpm/tsup@8.3.6_@swc+core@1.10.15_jiti@2.4.2_postcss@8.5.2_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js
|
|
32
32
|
var init_esm_shims = __esm({
|
|
33
|
-
"../../node_modules/.pnpm/tsup@8.3.6_@swc+core@1.10.
|
|
33
|
+
"../../node_modules/.pnpm/tsup@8.3.6_@swc+core@1.10.15_jiti@2.4.2_postcss@8.5.2_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js"() {
|
|
34
34
|
"use strict";
|
|
35
35
|
}
|
|
36
36
|
});
|
package/dist/cli.cjs
CHANGED
|
@@ -29,10 +29,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
mod
|
|
30
30
|
));
|
|
31
31
|
|
|
32
|
-
// ../../node_modules/.pnpm/tsup@8.3.6_@swc+core@1.10.
|
|
32
|
+
// ../../node_modules/.pnpm/tsup@8.3.6_@swc+core@1.10.15_jiti@2.4.2_postcss@8.5.2_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js
|
|
33
33
|
var getImportMetaUrl, importMetaUrl;
|
|
34
34
|
var init_cjs_shims = __esm({
|
|
35
|
-
"../../node_modules/.pnpm/tsup@8.3.6_@swc+core@1.10.
|
|
35
|
+
"../../node_modules/.pnpm/tsup@8.3.6_@swc+core@1.10.15_jiti@2.4.2_postcss@8.5.2_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
getImportMetaUrl = /* @__PURE__ */ __name(() => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href, "getImportMetaUrl");
|
|
38
38
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
@@ -1901,7 +1901,7 @@ var Symbols = {
|
|
|
1901
1901
|
// src/inversify.config.ts
|
|
1902
1902
|
init_cjs_shims();
|
|
1903
1903
|
|
|
1904
|
-
// ../../node_modules/.pnpm/inversify@6.2.
|
|
1904
|
+
// ../../node_modules/.pnpm/inversify@6.2.2_reflect-metadata@0.2.2/node_modules/inversify/lib/esm/index.js
|
|
1905
1905
|
init_cjs_shims();
|
|
1906
1906
|
var import_reflect_metadata = __toESM(require_Reflect(), 1);
|
|
1907
1907
|
|
|
@@ -2292,7 +2292,7 @@ var _ = /* @__PURE__ */ __name((t4) => /* @__PURE__ */ function(t5, e2) {
|
|
|
2292
2292
|
};
|
|
2293
2293
|
}(void 0 === t4 ? M : (e2) => D(e2, t4), void 0 === t4 ? w : (e2) => E(e2, t4)), "_");
|
|
2294
2294
|
|
|
2295
|
-
// ../../node_modules/.pnpm/inversify@6.2.
|
|
2295
|
+
// ../../node_modules/.pnpm/inversify@6.2.2_reflect-metadata@0.2.2/node_modules/inversify/lib/esm/index.js
|
|
2296
2296
|
var s2 = "named";
|
|
2297
2297
|
var o2 = "name";
|
|
2298
2298
|
var a2 = "unmanaged";
|
|
@@ -15402,6 +15402,9 @@ var ConfigService2 = class {
|
|
|
15402
15402
|
get srcRoot() {
|
|
15403
15403
|
return this.options.srcRoot;
|
|
15404
15404
|
}
|
|
15405
|
+
get absoluteSrcRoot() {
|
|
15406
|
+
return import_pathe7.default.resolve(this.cwd, this.srcRoot);
|
|
15407
|
+
}
|
|
15405
15408
|
get mode() {
|
|
15406
15409
|
return this.options.mode;
|
|
15407
15410
|
}
|
|
@@ -15472,7 +15475,7 @@ ConfigService2 = _ts_decorate4([
|
|
|
15472
15475
|
// src/context/services/JsonService.ts
|
|
15473
15476
|
init_cjs_shims();
|
|
15474
15477
|
|
|
15475
|
-
// ../../node_modules/.pnpm/bundle-require@5.1.0_esbuild@0.
|
|
15478
|
+
// ../../node_modules/.pnpm/bundle-require@5.1.0_esbuild@0.25.0/node_modules/bundle-require/dist/index.js
|
|
15476
15479
|
init_cjs_shims();
|
|
15477
15480
|
var import_fs2 = __toESM(require("fs"), 1);
|
|
15478
15481
|
var import_path2 = __toESM(require("path"), 1);
|
|
@@ -15657,7 +15660,7 @@ var loadTsConfigInternal = /* @__PURE__ */ __name((dir = process.cwd(), name = "
|
|
|
15657
15660
|
}, "loadTsConfigInternal");
|
|
15658
15661
|
var loadTsConfig = /* @__PURE__ */ __name((dir, name) => loadTsConfigInternal(dir, name), "loadTsConfig");
|
|
15659
15662
|
|
|
15660
|
-
// ../../node_modules/.pnpm/bundle-require@5.1.0_esbuild@0.
|
|
15663
|
+
// ../../node_modules/.pnpm/bundle-require@5.1.0_esbuild@0.25.0/node_modules/bundle-require/dist/index.js
|
|
15661
15664
|
var import_fs3 = __toESM(require("fs"), 1);
|
|
15662
15665
|
var import_path3 = __toESM(require("path"), 1);
|
|
15663
15666
|
var import_module2 = require("module");
|
|
@@ -23790,7 +23793,13 @@ var WxmlService2 = class {
|
|
|
23790
23793
|
...this.configService.weappViteConfig?.enhance?.wxml === true ? {} : this.configService.weappViteConfig?.enhance?.wxml
|
|
23791
23794
|
});
|
|
23792
23795
|
this.tokenMap.set(filepath, res);
|
|
23793
|
-
await this.addDeps(filepath, res.deps.filter((x4) => isImportTag(x4.tagName) && isTemplate(x4.value)).map((x4) =>
|
|
23796
|
+
await this.addDeps(filepath, res.deps.filter((x4) => isImportTag(x4.tagName) && isTemplate(x4.value)).map((x4) => {
|
|
23797
|
+
if (x4.value.startsWith("/")) {
|
|
23798
|
+
return import_pathe11.default.resolve(this.configService.absoluteSrcRoot, x4.value.slice(1));
|
|
23799
|
+
} else {
|
|
23800
|
+
return import_pathe11.default.resolve(dirname3, x4.value);
|
|
23801
|
+
}
|
|
23802
|
+
}));
|
|
23794
23803
|
return res;
|
|
23795
23804
|
} else {
|
|
23796
23805
|
logger_default.warn(`\u5F15\u7528\u6A21\u677F ${this.configService.relativeCwd(filepath)} \u4E0D\u5B58\u5728!`);
|
package/dist/cli.mjs
CHANGED
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
createCompilerContext,
|
|
4
4
|
logger_default,
|
|
5
5
|
require_Reflect
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-3X3GXWYT.mjs";
|
|
7
|
+
import "./chunk-CRVQ5UE6.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name,
|
|
10
10
|
__toESM,
|
|
11
11
|
init_esm_shims
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HAHM2NKS.mjs";
|
|
13
13
|
|
|
14
14
|
// src/cli.ts
|
|
15
15
|
init_esm_shims();
|
|
@@ -56,7 +56,7 @@ type GenerateExtensionsOptions = Partial<{
|
|
|
56
56
|
js: 'js' | 'ts' | (string & {});
|
|
57
57
|
json: 'js' | 'ts' | 'json' | (string & {});
|
|
58
58
|
wxml: 'wxml' | (string & {});
|
|
59
|
-
wxss: 'wxss' | 'scss' | 'less' | (string & {});
|
|
59
|
+
wxss: 'wxss' | 'scss' | 'less' | 'css' | (string & {});
|
|
60
60
|
}>;
|
|
61
61
|
type GenerateDirsOptions = Partial<{
|
|
62
62
|
app: string;
|
|
@@ -56,7 +56,7 @@ type GenerateExtensionsOptions = Partial<{
|
|
|
56
56
|
js: 'js' | 'ts' | (string & {});
|
|
57
57
|
json: 'js' | 'ts' | 'json' | (string & {});
|
|
58
58
|
wxml: 'wxml' | (string & {});
|
|
59
|
-
wxss: 'wxss' | 'scss' | 'less' | (string & {});
|
|
59
|
+
wxss: 'wxss' | 'scss' | 'less' | 'css' | (string & {});
|
|
60
60
|
}>;
|
|
61
61
|
type GenerateDirsOptions = Partial<{
|
|
62
62
|
app: string;
|
package/dist/config.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { UserConfig, UserConfigExport, UserConfigFnObject } from 'vite';
|
|
2
|
-
export { d as defineConfig } from './config-
|
|
2
|
+
export { d as defineConfig } from './config-D9TqUhDK.cjs';
|
|
3
3
|
import './types-dS68tjL6.cjs';
|
|
4
4
|
import 'tsup';
|
|
5
5
|
import 'vite-tsconfig-paths';
|
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { UserConfig, UserConfigExport, UserConfigFnObject } from 'vite';
|
|
2
|
-
export { d as defineConfig } from './config-
|
|
2
|
+
export { d as defineConfig } from './config-C-GvdaN9.js';
|
|
3
3
|
import './types-dS68tjL6.js';
|
|
4
4
|
import 'tsup';
|
|
5
5
|
import 'vite-tsconfig-paths';
|
package/dist/config.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -34,10 +34,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
34
|
));
|
|
35
35
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
36
|
|
|
37
|
-
// ../../node_modules/.pnpm/tsup@8.3.6_@swc+core@1.10.
|
|
37
|
+
// ../../node_modules/.pnpm/tsup@8.3.6_@swc+core@1.10.15_jiti@2.4.2_postcss@8.5.2_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js
|
|
38
38
|
var getImportMetaUrl, importMetaUrl;
|
|
39
39
|
var init_cjs_shims = __esm({
|
|
40
|
-
"../../node_modules/.pnpm/tsup@8.3.6_@swc+core@1.10.
|
|
40
|
+
"../../node_modules/.pnpm/tsup@8.3.6_@swc+core@1.10.15_jiti@2.4.2_postcss@8.5.2_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js"() {
|
|
41
41
|
"use strict";
|
|
42
42
|
getImportMetaUrl = /* @__PURE__ */ __name(() => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href, "getImportMetaUrl");
|
|
43
43
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
@@ -1285,7 +1285,7 @@ var Symbols = {
|
|
|
1285
1285
|
// src/inversify.config.ts
|
|
1286
1286
|
init_cjs_shims();
|
|
1287
1287
|
|
|
1288
|
-
// ../../node_modules/.pnpm/inversify@6.2.
|
|
1288
|
+
// ../../node_modules/.pnpm/inversify@6.2.2_reflect-metadata@0.2.2/node_modules/inversify/lib/esm/index.js
|
|
1289
1289
|
init_cjs_shims();
|
|
1290
1290
|
var import_reflect_metadata = __toESM(require_Reflect(), 1);
|
|
1291
1291
|
|
|
@@ -1676,7 +1676,7 @@ var _ = /* @__PURE__ */ __name((t4) => /* @__PURE__ */ function(t5, e2) {
|
|
|
1676
1676
|
};
|
|
1677
1677
|
}(void 0 === t4 ? M : (e2) => D(e2, t4), void 0 === t4 ? w : (e2) => E(e2, t4)), "_");
|
|
1678
1678
|
|
|
1679
|
-
// ../../node_modules/.pnpm/inversify@6.2.
|
|
1679
|
+
// ../../node_modules/.pnpm/inversify@6.2.2_reflect-metadata@0.2.2/node_modules/inversify/lib/esm/index.js
|
|
1680
1680
|
var s2 = "named";
|
|
1681
1681
|
var o2 = "name";
|
|
1682
1682
|
var a2 = "unmanaged";
|
|
@@ -14806,6 +14806,9 @@ var ConfigService2 = class {
|
|
|
14806
14806
|
get srcRoot() {
|
|
14807
14807
|
return this.options.srcRoot;
|
|
14808
14808
|
}
|
|
14809
|
+
get absoluteSrcRoot() {
|
|
14810
|
+
return import_pathe7.default.resolve(this.cwd, this.srcRoot);
|
|
14811
|
+
}
|
|
14809
14812
|
get mode() {
|
|
14810
14813
|
return this.options.mode;
|
|
14811
14814
|
}
|
|
@@ -14876,7 +14879,7 @@ ConfigService2 = _ts_decorate4([
|
|
|
14876
14879
|
// src/context/services/JsonService.ts
|
|
14877
14880
|
init_cjs_shims();
|
|
14878
14881
|
|
|
14879
|
-
// ../../node_modules/.pnpm/bundle-require@5.1.0_esbuild@0.
|
|
14882
|
+
// ../../node_modules/.pnpm/bundle-require@5.1.0_esbuild@0.25.0/node_modules/bundle-require/dist/index.js
|
|
14880
14883
|
init_cjs_shims();
|
|
14881
14884
|
var import_fs2 = __toESM(require("fs"), 1);
|
|
14882
14885
|
var import_path2 = __toESM(require("path"), 1);
|
|
@@ -15061,7 +15064,7 @@ var loadTsConfigInternal = /* @__PURE__ */ __name((dir = process.cwd(), name = "
|
|
|
15061
15064
|
}, "loadTsConfigInternal");
|
|
15062
15065
|
var loadTsConfig = /* @__PURE__ */ __name((dir, name) => loadTsConfigInternal(dir, name), "loadTsConfig");
|
|
15063
15066
|
|
|
15064
|
-
// ../../node_modules/.pnpm/bundle-require@5.1.0_esbuild@0.
|
|
15067
|
+
// ../../node_modules/.pnpm/bundle-require@5.1.0_esbuild@0.25.0/node_modules/bundle-require/dist/index.js
|
|
15065
15068
|
var import_fs3 = __toESM(require("fs"), 1);
|
|
15066
15069
|
var import_path3 = __toESM(require("path"), 1);
|
|
15067
15070
|
var import_module2 = require("module");
|
|
@@ -23194,7 +23197,13 @@ var WxmlService2 = class {
|
|
|
23194
23197
|
...this.configService.weappViteConfig?.enhance?.wxml === true ? {} : this.configService.weappViteConfig?.enhance?.wxml
|
|
23195
23198
|
});
|
|
23196
23199
|
this.tokenMap.set(filepath, res);
|
|
23197
|
-
await this.addDeps(filepath, res.deps.filter((x4) => isImportTag(x4.tagName) && isTemplate(x4.value)).map((x4) =>
|
|
23200
|
+
await this.addDeps(filepath, res.deps.filter((x4) => isImportTag(x4.tagName) && isTemplate(x4.value)).map((x4) => {
|
|
23201
|
+
if (x4.value.startsWith("/")) {
|
|
23202
|
+
return import_pathe11.default.resolve(this.configService.absoluteSrcRoot, x4.value.slice(1));
|
|
23203
|
+
} else {
|
|
23204
|
+
return import_pathe11.default.resolve(dirname3, x4.value);
|
|
23205
|
+
}
|
|
23206
|
+
}));
|
|
23198
23207
|
return res;
|
|
23199
23208
|
} else {
|
|
23200
23209
|
logger_default.warn(`\u5F15\u7528\u6A21\u677F ${this.configService.relativeCwd(filepath)} \u4E0D\u5B58\u5728!`);
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { d as defineConfig } from './config-
|
|
2
|
-
import { L as LoadConfigOptions, C as CompilerContext } from './CompilerContext-
|
|
1
|
+
export { d as defineConfig } from './config-D9TqUhDK.cjs';
|
|
2
|
+
import { L as LoadConfigOptions, C as CompilerContext } from './CompilerContext-C7LldNoo.cjs';
|
|
3
3
|
export { UserConfig, UserConfigExport, UserConfigFnObject } from 'vite';
|
|
4
4
|
import './types-dS68tjL6.cjs';
|
|
5
5
|
import 'tsup';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { d as defineConfig } from './config-
|
|
2
|
-
import { L as LoadConfigOptions, C as CompilerContext } from './CompilerContext-
|
|
1
|
+
export { d as defineConfig } from './config-C-GvdaN9.js';
|
|
2
|
+
import { L as LoadConfigOptions, C as CompilerContext } from './CompilerContext-D0jeQpYe.js';
|
|
3
3
|
export { UserConfig, UserConfigExport, UserConfigFnObject } from 'vite';
|
|
4
4
|
import './types-dS68tjL6.js';
|
|
5
5
|
import 'tsup';
|
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCompilerContext,
|
|
3
3
|
require_Reflect
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3X3GXWYT.mjs";
|
|
5
5
|
import {
|
|
6
6
|
defineConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CRVQ5UE6.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__toESM,
|
|
10
10
|
init_esm_shims
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HAHM2NKS.mjs";
|
|
12
12
|
|
|
13
13
|
// src/index.ts
|
|
14
14
|
init_esm_shims();
|
package/dist/json.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { App, Page, Component, Sitemap, Theme } from '@weapp-core/schematics';
|
|
2
2
|
export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
|
|
3
|
-
import { C as CompilerContext } from './CompilerContext-
|
|
3
|
+
import { C as CompilerContext } from './CompilerContext-C7LldNoo.cjs';
|
|
4
4
|
import './types-dS68tjL6.cjs';
|
|
5
|
-
import './config-
|
|
5
|
+
import './config-D9TqUhDK.cjs';
|
|
6
6
|
import 'vite';
|
|
7
7
|
import 'tsup';
|
|
8
8
|
import 'vite-tsconfig-paths';
|
package/dist/json.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { App, Page, Component, Sitemap, Theme } from '@weapp-core/schematics';
|
|
2
2
|
export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
|
|
3
|
-
import { C as CompilerContext } from './CompilerContext-
|
|
3
|
+
import { C as CompilerContext } from './CompilerContext-D0jeQpYe.js';
|
|
4
4
|
import './types-dS68tjL6.js';
|
|
5
|
-
import './config-
|
|
5
|
+
import './config-C-GvdaN9.js';
|
|
6
6
|
import 'vite';
|
|
7
7
|
import 'tsup';
|
|
8
8
|
import 'vite-tsconfig-paths';
|
package/dist/json.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.4",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -80,28 +80,28 @@
|
|
|
80
80
|
"node": ">=20.0.0"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@babel/core": "^7.26.
|
|
84
|
-
"@babel/preset-env": "^7.26.
|
|
83
|
+
"@babel/core": "^7.26.8",
|
|
84
|
+
"@babel/preset-env": "^7.26.8",
|
|
85
85
|
"@babel/preset-typescript": "^7.26.0",
|
|
86
|
-
"@babel/types": "^7.26.
|
|
86
|
+
"@babel/types": "^7.26.8",
|
|
87
87
|
"comment-json": "^4.2.5",
|
|
88
88
|
"debug": "^4.4.0",
|
|
89
89
|
"del": "^8.0.0",
|
|
90
|
-
"esbuild": "^0.
|
|
90
|
+
"esbuild": "^0.25.0",
|
|
91
91
|
"fdir": "^6.4.3",
|
|
92
92
|
"fs-extra": "^11.3.0",
|
|
93
93
|
"pathe": "^2.0.2",
|
|
94
94
|
"picomatch": "^4.0.2",
|
|
95
|
-
"postcss": "^8.5.
|
|
96
|
-
"ts-morph": "^25.0.
|
|
95
|
+
"postcss": "^8.5.2",
|
|
96
|
+
"ts-morph": "^25.0.1",
|
|
97
97
|
"tsup": "^8.3.6",
|
|
98
|
-
"vite": "^5.4.
|
|
98
|
+
"vite": "^5.4.14",
|
|
99
99
|
"vite-tsconfig-paths": "^5.1.4",
|
|
100
|
-
"@weapp-core/
|
|
101
|
-
"@weapp-core/
|
|
102
|
-
"@weapp-core/
|
|
103
|
-
"@weapp-core/
|
|
104
|
-
"weapp-ide-cli": "^2.0.
|
|
100
|
+
"@weapp-core/logger": "^1.0.3",
|
|
101
|
+
"@weapp-core/schematics": "^1.0.10",
|
|
102
|
+
"@weapp-core/init": "^1.1.16",
|
|
103
|
+
"@weapp-core/shared": "^1.0.6",
|
|
104
|
+
"weapp-ide-cli": "^2.0.10"
|
|
105
105
|
},
|
|
106
106
|
"publishConfig": {
|
|
107
107
|
"access": "public",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"bundle-require": "^5.1.0",
|
|
112
112
|
"cac": "^6.7.14",
|
|
113
113
|
"htmlparser2": "^10.0.0",
|
|
114
|
-
"inversify": "^6.2.
|
|
114
|
+
"inversify": "^6.2.2",
|
|
115
115
|
"local-pkg": "^1.0.0",
|
|
116
116
|
"magic-string": "^0.30.17",
|
|
117
117
|
"reflect-metadata": "^0.2.2"
|