weapp-vite 6.19.3 → 6.19.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.
@@ -1,4 +1,4 @@
1
- import { n as getCompilerContext, v as getRouteRuntimeGlobalKeys } from "./createContext-BovlKdUA.mjs";
1
+ import { n as getCompilerContext, v as getRouteRuntimeGlobalKeys } from "./createContext-r2rcHex1.mjs";
2
2
  //#region src/auto-routes.ts
3
3
  const ROUTE_RUNTIME_OVERRIDE_KEY = Symbol.for("weapp-vite.route-runtime");
4
4
  function createGetter(resolver) {
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { C as parseCommentJson, D as isPathInside, E as shouldPassPlatformArgToIdeOpen, S as loadViteConfigFile, T as getDefaultIdeProjectRoot, _ as resolveHmrProfileJsonPath, a as formatBytes, b as checkRuntime, d as getBackendForCapability, f as resolveBackendExecution, g as SHARED_CHUNK_VIRTUAL_PREFIX, h as createSharedBuildConfig, m as syncManagedTsconfigBootstrapFiles, p as syncProjectSupportFiles, t as createCompilerContext, w as createCjsConfigLoadError, x as getProjectConfigFileName, y as resolveWeappConfigFile } from "./createContext-BovlKdUA.mjs";
1
+ import { C as parseCommentJson, D as isPathInside, E as shouldPassPlatformArgToIdeOpen, S as loadViteConfigFile, T as getDefaultIdeProjectRoot, _ as resolveHmrProfileJsonPath, a as formatBytes, b as checkRuntime, d as getBackendForCapability, f as resolveBackendExecution, g as SHARED_CHUNK_VIRTUAL_PREFIX, h as createSharedBuildConfig, m as syncManagedTsconfigBootstrapFiles, p as syncProjectSupportFiles, t as createCompilerContext, w as createCjsConfigLoadError, x as getProjectConfigFileName, y as resolveWeappConfigFile } from "./createContext-r2rcHex1.mjs";
2
2
  import { r as logger_default, t as colors } from "./logger-mt4mSTqV.mjs";
3
- import { h as VERSION } from "./file-K76qLAmU.mjs";
3
+ import { h as VERSION } from "./file-C-T36DmG.mjs";
4
4
  import { c as startWeappViteMcpServer, l as detectAiDevelopmentEnvironment, s as resolveWeappMcpConfig } from "./mcp-BG6TliEg.mjs";
5
5
  import { createRequire } from "node:module";
6
6
  import fs from "node:fs";
@@ -4540,7 +4540,7 @@ function resolveRunnableHotkeyDefinition(input) {
4540
4540
  }
4541
4541
  //#endregion
4542
4542
  //#region package.json
4543
- var version = "6.19.3";
4543
+ var version = "6.19.4";
4544
4544
  //#endregion
4545
4545
  //#region src/cli/devHotkeys/format.ts
4546
4546
  const FULLWIDTH_ASCII_START = 65281;
@@ -1,6 +1,6 @@
1
1
  import { n as applyWeappViteHostMeta } from "./pluginHost--CaeyWpA.mjs";
2
2
  import { n as configureLogger, r as logger_default } from "./logger-mt4mSTqV.mjs";
3
- import { _ as jsExtensions, a as findJsonEntry, b as vueExtensions, c as isJsOrTs, d as touch, g as configExtensions, i as findJsEntry, l as isTemplate, n as changeFileExtension, o as findTemplateEntry, p as inlineAutoRoutesImports, r as findCssEntry, s as findVueEntry, t as extractConfigFromVue, v as supportedCssLangs, y as templateExtensions } from "./file-K76qLAmU.mjs";
3
+ import { _ as jsExtensions, a as findJsonEntry, b as vueExtensions, c as isJsOrTs, d as touch, g as configExtensions, i as findJsEntry, l as isTemplate, n as changeFileExtension, o as findTemplateEntry, p as inlineAutoRoutesImports, r as findCssEntry, s as findVueEntry, t as extractConfigFromVue, v as supportedCssLangs, y as templateExtensions } from "./file-C-T36DmG.mjs";
4
4
  import { createRequire, isBuiltin } from "node:module";
5
5
  import { createDebug } from "obug";
6
6
  import fs, { existsSync, readFileSync, realpathSync } from "node:fs";
@@ -10,7 +10,7 @@ import { fileURLToPath } from "node:url";
10
10
  import path$1, { normalize, relative, win32 } from "node:path";
11
11
  import { MINI_PROGRAM_PLATFORM_ALIASES, MINI_PROGRAM_PLATFORM_DESCRIPTORS, MINI_PROGRAM_PLATFORM_DESCRIPTORS as MINI_PROGRAM_PLATFORM_ADAPTERS, addExtension, defu, escapeStringRegexp, get, getDefaultMiniProgramPlatform, getMiniProgramAppTypesPackage, getMiniProgramDefaultBuildTarget, getMiniProgramDirectivePrefix, getMiniProgramRouteRuntimeGlobalKeys, getMiniProgramRuntimeGlobalKey, getMiniProgramRuntimeGlobalKeys, getMiniProgramRuntimeGlobalKeysByResolvePriority, getSupportedMiniProgramDirectivePrefixes, getSupportedMiniProgramPlatforms, isEmptyObject, isObject, normalizeMiniProgramPlatform, removeExtension, removeExtensionDeep, resolveMiniProgramPlatform, set, supportsMiniProgramAutoTouchAppStyle } from "@weapp-core/shared";
12
12
  import { fs as fs$1 } from "@weapp-core/shared/fs";
13
- import { analyzeScript, analyzeScripts, collectComponentPropsFromCode, collectRequireTokens, collectScriptSetupImportsFromCode, generate, mayContainPlatformApiAccess, mayContainPlatformApiIdentifierByText, mayContainStaticRequireLiteral, parseJsLikeWithEngine, platformApiIdentifiers } from "@weapp-vite/ast";
13
+ import { analyzeScript, analyzeScripts, collectComponentPropsFromCode, collectRequireTokens, collectScriptSetupImportsFromCode, generate, mayContainPlatformApiIdentifierByText, mayContainStaticRequireLiteral, parseJsLikeWithEngine, platformApiIdentifiers } from "@weapp-vite/ast";
14
14
  import { collectOnPageScrollPerformanceWarnings } from "@weapp-vite/ast/operations/onPageScroll";
15
15
  import { collectSetDataPickKeysFromTemplateCode } from "@weapp-vite/ast/operations/setDataPick";
16
16
  import { compileScript, parse } from "vue/compiler-sfc";
@@ -25369,17 +25369,6 @@ function getRequireImportLiteral(node) {
25369
25369
  function getStaticStringLiteral(node) {
25370
25370
  return getRequireImportLiteral(node);
25371
25371
  }
25372
- function setRequireImportLiteral(node, nextValue) {
25373
- if (!node) return;
25374
- if (node.type === "StringLiteral" || node.type === "Literal") {
25375
- node.value = nextValue;
25376
- return;
25377
- }
25378
- if (node.type === "TemplateLiteral" && node.expressions?.length === 0 && node.quasis?.length === 1) {
25379
- node.quasis[0].value.raw = nextValue;
25380
- node.quasis[0].value.cooked = nextValue;
25381
- }
25382
- }
25383
25372
  function normalizeRelativeChunkImport(fileName, importee) {
25384
25373
  return toPosixPath(path.normalize(path.join(path.dirname(fileName), importee)));
25385
25374
  }
@@ -25417,10 +25406,11 @@ function createWeapiAccessExpression(globalName) {
25417
25406
  }
25418
25407
  //#endregion
25419
25408
  //#region src/plugins/core/lifecycle/platformApiRewrite.ts
25420
- function rewriteMiniProgramPlatformApiAccess(code, globalName, _options) {
25409
+ function createMiniProgramPlatformApiRewrite(code, globalName, _options) {
25421
25410
  const injectedApiIdentifier = WEAPP_VITE_INJECTED_API_IDENTIFIER;
25422
25411
  try {
25423
25412
  const ast = parseJsLike(code);
25413
+ const magicString = new MagicString(code);
25424
25414
  let mutated = false;
25425
25415
  const rewritePath = (path) => {
25426
25416
  const object = path.node?.object;
@@ -25428,22 +25418,60 @@ function rewriteMiniProgramPlatformApiAccess(code, globalName, _options) {
25428
25418
  const identifierName = object.name;
25429
25419
  if (!platformApiIdentifiers.has(identifierName)) return;
25430
25420
  if (path.scope?.hasBinding?.(identifierName)) return;
25431
- path.node.object = {
25432
- type: "Identifier",
25433
- name: injectedApiIdentifier
25434
- };
25421
+ if (typeof object.start !== "number" || typeof object.end !== "number" || object.start < 0 || object.end < object.start) return;
25422
+ magicString.update(object.start, object.end, injectedApiIdentifier);
25435
25423
  mutated = true;
25436
25424
  };
25437
25425
  traverse(ast, {
25438
25426
  MemberExpression: rewritePath,
25439
25427
  OptionalMemberExpression: rewritePath
25440
25428
  });
25441
- if (!mutated) return code;
25442
- const transformedCode = generate$1(ast).code;
25443
- return `${`var ${injectedApiIdentifier} = ${createWeapiAccessExpression(globalName)};`}\n${transformedCode}`;
25444
- } catch {
25445
- return code;
25446
- }
25429
+ if (mutated) {
25430
+ const aliasCode = `var ${injectedApiIdentifier} = ${createWeapiAccessExpression(globalName)};`;
25431
+ magicString.prepend(`${aliasCode}\n`);
25432
+ return magicString;
25433
+ }
25434
+ } catch {}
25435
+ }
25436
+ function rewriteMiniProgramPlatformApiAccess(code, globalName, options) {
25437
+ return createMiniProgramPlatformApiRewrite(code, globalName, options)?.toString() ?? code;
25438
+ }
25439
+ //#endregion
25440
+ //#region src/utils/sourcemap.ts
25441
+ function isEncodedSourceMapLike(value) {
25442
+ return Boolean(value && typeof value === "object" && "version" in value && typeof value.version === "number" && "mappings" in value && "names" in value && "sources" in value);
25443
+ }
25444
+ function normalizeEncodedSourceMapLike(value) {
25445
+ if (!value || typeof value !== "object") return null;
25446
+ const sourceMap = value;
25447
+ const numericVersion = typeof sourceMap.version === "number" ? sourceMap.version : typeof sourceMap.version === "string" ? Number(sourceMap.version) : NaN;
25448
+ if (!Number.isFinite(numericVersion)) return null;
25449
+ const normalized = {
25450
+ ...sourceMap,
25451
+ version: numericVersion
25452
+ };
25453
+ return isEncodedSourceMapLike(normalized) ? normalized : null;
25454
+ }
25455
+ function composeSourceMaps(transformedMap, originalMap) {
25456
+ if (isEncodedSourceMapLike(transformedMap) && isEncodedSourceMapLike(originalMap)) return remapping([transformedMap, originalMap], () => null);
25457
+ if (isEncodedSourceMapLike(transformedMap)) return transformedMap;
25458
+ if (isEncodedSourceMapLike(originalMap)) return originalMap;
25459
+ return null;
25460
+ }
25461
+ //#endregion
25462
+ //#region src/plugins/core/lifecycle/emit/rewrite/sourcemap.ts
25463
+ function applyMagicStringChunkRewrite(chunk, magicString, options) {
25464
+ const previousCode = chunk.code;
25465
+ const nextCode = magicString.toString();
25466
+ if (nextCode === previousCode) return false;
25467
+ const previousMap = normalizeEncodedSourceMapLike(chunk.map);
25468
+ chunk.code = nextCode;
25469
+ if (previousMap) chunk.map = composeSourceMaps(magicString.generateMap({
25470
+ hires: options?.hires ?? "boundary",
25471
+ includeContent: true,
25472
+ source: chunk.fileName
25473
+ }), previousMap);
25474
+ return true;
25447
25475
  }
25448
25476
  //#endregion
25449
25477
  //#region src/plugins/core/lifecycle/emit/rewrite/platform.ts
@@ -25498,10 +25526,6 @@ function warmupBundleScriptAnalysis(bundle, options) {
25498
25526
  rememberChunkScriptAnalysis(chunk, analysis, options);
25499
25527
  }
25500
25528
  }
25501
- function replacePlatformApiAccess$2(code, globalName, options) {
25502
- if (!(options?.analysis?.hasPlatformApiAccess ?? mayContainPlatformApiAccess(code, { engine: options?.astEngine }))) return code;
25503
- return rewriteMiniProgramPlatformApiAccess(code, globalName, { engine: options?.astEngine });
25504
- }
25505
25529
  function normalizeNpmImportByPlatform(platform, importee, dependencies, mode) {
25506
25530
  return normalizeNpmImportPathByPlatform(importee, {
25507
25531
  platform,
@@ -25509,10 +25533,11 @@ function normalizeNpmImportByPlatform(platform, importee, dependencies, mode) {
25509
25533
  alipayNpmMode: mode
25510
25534
  });
25511
25535
  }
25512
- function rewriteChunkNpmImportsByPlatform(platform, code, dependencies, mode, options) {
25513
- if (!(options?.analysis?.hasStaticRequireLiteral ?? mayContainStaticRequireLiteral(code, { engine: options?.astEngine }))) return code;
25536
+ function createPlatformNpmImportRewrite(platform, code, dependencies, mode, options) {
25537
+ if (!(options?.analysis?.hasStaticRequireLiteral ?? mayContainStaticRequireLiteral(code, { engine: options?.astEngine }))) return;
25514
25538
  try {
25515
25539
  const ast = parseJsLike(code);
25540
+ const magicString = new MagicString(code);
25516
25541
  let mutated = false;
25517
25542
  traverse(ast, { CallExpression(path) {
25518
25543
  const callee = path.node?.callee;
@@ -25525,14 +25550,12 @@ function rewriteChunkNpmImportsByPlatform(platform, code, dependencies, mode, op
25525
25550
  if (typeof currentValue !== "string") return;
25526
25551
  const nextValue = normalizeNpmImportByPlatform(platform, currentValue, dependencies, mode);
25527
25552
  if (nextValue === currentValue) return;
25528
- setRequireImportLiteral(firstArg, nextValue);
25553
+ if (typeof firstArg.start !== "number" || typeof firstArg.end !== "number" || firstArg.start < 0 || firstArg.end < firstArg.start) return;
25554
+ magicString.update(firstArg.start, firstArg.end, JSON.stringify(nextValue));
25529
25555
  mutated = true;
25530
25556
  } });
25531
- if (!mutated) return code;
25532
- return generate$1(ast).code;
25533
- } catch {
25534
- return code;
25535
- }
25557
+ if (mutated) return magicString;
25558
+ } catch {}
25536
25559
  }
25537
25560
  function rewriteBundleNpmImportsByPlatform(platform, bundle, dependencies, mode, options) {
25538
25561
  warmupBundleScriptAnalysis(bundle, {
@@ -25546,12 +25569,12 @@ function rewriteBundleNpmImportsByPlatform(platform, bundle, dependencies, mode,
25546
25569
  astEngine: options?.astEngine,
25547
25570
  cache: options?.analysisCache
25548
25571
  });
25549
- const nextCode = rewriteChunkNpmImportsByPlatform(platform, chunk.code, dependencies, mode, {
25572
+ const magicString = createPlatformNpmImportRewrite(platform, chunk.code, dependencies, mode, {
25550
25573
  ...options,
25551
25574
  analysis
25552
25575
  });
25553
- if (nextCode === chunk.code) continue;
25554
- chunk.code = nextCode;
25576
+ if (!magicString) continue;
25577
+ applyMagicStringChunkRewrite(chunk, magicString);
25555
25578
  rememberChunkScriptAnalysis(chunk, analysis, { cache: options?.analysisCache });
25556
25579
  }
25557
25580
  }
@@ -25567,25 +25590,32 @@ function rewriteBundlePlatformApi(bundle, globalName, options) {
25567
25590
  astEngine: options?.astEngine,
25568
25591
  cache: options?.analysisCache
25569
25592
  });
25570
- const nextCode = replacePlatformApiAccess$2(chunk.code, globalName, {
25593
+ if (analysis && !analysis.hasPlatformApiAccess) continue;
25594
+ const magicString = createMiniProgramPlatformApiRewrite(chunk.code, globalName, {
25571
25595
  ...options,
25572
25596
  analysis
25573
25597
  });
25574
- if (nextCode === chunk.code) continue;
25575
- chunk.code = nextCode;
25598
+ if (!magicString) continue;
25599
+ applyMagicStringChunkRewrite(chunk, magicString);
25576
25600
  }
25577
25601
  }
25578
25602
  function rewriteBundleDynamicGlobalResolution(bundle) {
25603
+ const applyPatternRewrite = (chunk, expression) => {
25604
+ expression.lastIndex = 0;
25605
+ const magicString = new MagicString(chunk.code);
25606
+ for (const match of chunk.code.matchAll(expression)) if (typeof match.index === "number") magicString.update(match.index, match.index + match[0].length, "globalThis");
25607
+ applyMagicStringChunkRewrite(chunk, magicString);
25608
+ };
25579
25609
  for (const output of Object.values(bundle)) {
25580
25610
  if (output?.type !== "chunk") continue;
25581
25611
  const chunk = output;
25582
25612
  if (!(chunk.code.includes("Function(") && chunk.code.includes("return this")) && !chunk.code.includes("typeof self<")) continue;
25583
25613
  const hasDynamicGlobalResolution = DYNAMIC_GLOBAL_RESOLUTION_RE.test(chunk.code);
25584
25614
  DYNAMIC_GLOBAL_RESOLUTION_RE.lastIndex = 0;
25615
+ if (hasDynamicGlobalResolution) applyPatternRewrite(chunk, DYNAMIC_GLOBAL_RESOLUTION_RE);
25585
25616
  const hasBrowserGlobalHostTernary = BROWSER_GLOBAL_HOST_TERNARY_RE.test(chunk.code);
25586
25617
  BROWSER_GLOBAL_HOST_TERNARY_RE.lastIndex = 0;
25587
- if (!hasDynamicGlobalResolution && !hasBrowserGlobalHostTernary) continue;
25588
- chunk.code = chunk.code.replaceAll(DYNAMIC_GLOBAL_RESOLUTION_RE, "globalThis").replaceAll(BROWSER_GLOBAL_HOST_TERNARY_RE, "globalThis");
25618
+ if (hasBrowserGlobalHostTernary) applyPatternRewrite(chunk, BROWSER_GLOBAL_HOST_TERNARY_RE);
25589
25619
  }
25590
25620
  }
25591
25621
  function matchesSubPackageDependency(dependencies, importee, fallbackDependencies) {
@@ -25603,43 +25633,6 @@ function matchesSubPackageDependency(dependencies, importee, fallbackDependencie
25603
25633
  return hasNpmDependencyPrefix(fallbackDependencies, normalized);
25604
25634
  }
25605
25635
  //#endregion
25606
- //#region src/utils/sourcemap.ts
25607
- function isEncodedSourceMapLike(value) {
25608
- return Boolean(value && typeof value === "object" && "version" in value && typeof value.version === "number" && "mappings" in value && "names" in value && "sources" in value);
25609
- }
25610
- function normalizeEncodedSourceMapLike(value) {
25611
- if (!value || typeof value !== "object") return null;
25612
- const sourceMap = value;
25613
- const numericVersion = typeof sourceMap.version === "number" ? sourceMap.version : typeof sourceMap.version === "string" ? Number(sourceMap.version) : NaN;
25614
- if (!Number.isFinite(numericVersion)) return null;
25615
- const normalized = {
25616
- ...sourceMap,
25617
- version: numericVersion
25618
- };
25619
- return isEncodedSourceMapLike(normalized) ? normalized : null;
25620
- }
25621
- function composeSourceMaps(transformedMap, originalMap) {
25622
- if (isEncodedSourceMapLike(transformedMap) && isEncodedSourceMapLike(originalMap)) return remapping([transformedMap, originalMap], () => null);
25623
- if (isEncodedSourceMapLike(transformedMap)) return transformedMap;
25624
- if (isEncodedSourceMapLike(originalMap)) return originalMap;
25625
- return null;
25626
- }
25627
- //#endregion
25628
- //#region src/plugins/core/lifecycle/emit/rewrite/sourcemap.ts
25629
- function applyMagicStringChunkRewrite(chunk, magicString, options) {
25630
- const previousCode = chunk.code;
25631
- const nextCode = magicString.toString();
25632
- if (nextCode === previousCode) return false;
25633
- const previousMap = normalizeEncodedSourceMapLike(chunk.map);
25634
- chunk.code = nextCode;
25635
- if (previousMap) chunk.map = composeSourceMaps(magicString.generateMap({
25636
- hires: options?.hires ?? "boundary",
25637
- includeContent: true,
25638
- source: chunk.fileName
25639
- }), previousMap);
25640
- return true;
25641
- }
25642
- //#endregion
25643
25636
  //#region src/plugins/core/lifecycle/emit/rewrite/localRoot.ts
25644
25637
  function isRelativeMiniprogramNpmImport(importee) {
25645
25638
  return importee === "miniprogram_npm" || importee.startsWith("./miniprogram_npm/") || importee.startsWith("../miniprogram_npm/") || importee.includes("/miniprogram_npm/");
@@ -32619,7 +32612,7 @@ async function loadAppEntry(ctx, scanState) {
32619
32612
  const { path: appEntryPath } = appEntry;
32620
32613
  let configFromVue;
32621
32614
  if (!appConfigFile && vueAppPath) {
32622
- const { extractConfigFromVue } = await import("./file-DHCIIIYD.mjs");
32615
+ const { extractConfigFromVue } = await import("./file-CV6ZWiTX.mjs");
32623
32616
  configFromVue = await extractConfigFromVue(vueAppPath);
32624
32617
  if (configFromVue) appConfigFile = vueAppPath;
32625
32618
  }
@@ -84,7 +84,7 @@ function resolveAutoRoutesMacroImportPath() {
84
84
  }
85
85
  async function resolveAutoRoutesInlineSnapshot() {
86
86
  try {
87
- const { getCompilerContext } = await import("./getInstance-CKba6wgV.mjs");
87
+ const { getCompilerContext } = await import("./getInstance-HvLRUAtA.mjs");
88
88
  const compilerContext = getCompilerContext();
89
89
  const service = compilerContext.autoRoutesService;
90
90
  const reference = service?.getReference?.();
@@ -0,0 +1,2 @@
1
+ import { t as extractConfigFromVue } from "./file-C-T36DmG.mjs";
2
+ export { extractConfigFromVue };
@@ -0,0 +1,2 @@
1
+ import { n as getCompilerContext } from "./createContext-r2rcHex1.mjs";
2
+ export { getCompilerContext };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as defineThemeJson, i as defineSitemapJson, n as defineComponentJson, r as definePageJson, t as defineAppJson } from "./json-BL8Dhhk6.mjs";
2
2
  import { a as resolveWeappViteHostMeta, i as isWeappViteHost, n as applyWeappViteHostMeta, r as createWeappViteHostMeta, t as WEAPP_VITE_HOST_NAME } from "./pluginHost--CaeyWpA.mjs";
3
3
  import { t as defineConfig } from "./config-DRGcCi3h.mjs";
4
- import { c as getSupportedWeappViteTargetDescriptors, l as isWebPlatform, o as WEB_PLATFORM_ALIASES, s as getSupportedWeappVitePlatforms, t as createCompilerContext, u as resolveWeappViteTarget } from "./createContext-BovlKdUA.mjs";
4
+ import { c as getSupportedWeappViteTargetDescriptors, l as isWebPlatform, o as WEB_PLATFORM_ALIASES, s as getSupportedWeappVitePlatforms, t as createCompilerContext, u as resolveWeappViteTarget } from "./createContext-r2rcHex1.mjs";
5
5
  import { a as resolveLayoutHost, c as createWevuComponent, i as registerLayoutHosts, n as defineProps, o as unregisterLayoutHosts, r as setPageLayout, s as waitForLayoutHost, t as defineEmits } from "./runtime-D6VCNhNY.mjs";
6
6
  export { WEAPP_VITE_HOST_NAME, WEB_PLATFORM_ALIASES, applyWeappViteHostMeta, createCompilerContext, createWeappViteHostMeta, createWevuComponent, defineAppJson, defineComponentJson, defineConfig, defineEmits, definePageJson, defineProps, defineSitemapJson, defineThemeJson, getSupportedWeappVitePlatforms, getSupportedWeappViteTargetDescriptors, isWeappViteHost, isWebPlatform, registerLayoutHosts, resolveLayoutHost, resolveWeappViteHostMeta, resolveWeappViteTarget, setPageLayout, unregisterLayoutHosts, waitForLayoutHost };
package/dist/test.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as createCompilerContext } from "./createContext-BovlKdUA.mjs";
1
+ import { t as createCompilerContext } from "./createContext-r2rcHex1.mjs";
2
2
  import path from "node:path";
3
3
  import process from "node:process";
4
4
  import chokidar from "chokidar";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite",
3
3
  "type": "module",
4
- "version": "6.19.3",
4
+ "version": "6.19.4",
5
5
  "description": "weapp-vite 一个现代化的小程序打包工具",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -128,21 +128,21 @@
128
128
  "vue": "^3.5.41",
129
129
  "vue-tsc": "^3.3.9",
130
130
  "@weapp-core/constants": "0.1.16",
131
+ "@weapp-core/init": "6.0.13",
131
132
  "@weapp-core/logger": "3.1.1",
132
133
  "@weapp-core/schematics": "6.1.0",
133
- "@weapp-vite/ast": "6.19.3",
134
134
  "@weapp-core/shared": "3.1.0",
135
+ "@weapp-vite/ast": "6.19.4",
135
136
  "@weapp-vite/mcp": "1.4.13",
136
137
  "@weapp-vite/miniprogram-automator": "1.2.12",
137
- "@weapp-vite/web": "1.4.3",
138
- "@wevu/api": "0.2.15",
139
138
  "@weapp-vite/volar": "2.1.3",
139
+ "@weapp-vite/web": "1.4.4",
140
+ "@wevu/api": "0.2.15",
140
141
  "@wevu/web-apis": "1.2.32",
141
- "vite-plugin-performance": "2.0.1",
142
142
  "rolldown-require": "2.0.24",
143
+ "vite-plugin-performance": "2.0.1",
143
144
  "weapp-ide-cli": "6.0.4",
144
- "wevu": "6.19.3",
145
- "@weapp-core/init": "6.0.13"
145
+ "wevu": "6.19.4"
146
146
  },
147
147
  "publishConfig": {
148
148
  "access": "public",
@@ -1,2 +0,0 @@
1
- import { t as extractConfigFromVue } from "./file-K76qLAmU.mjs";
2
- export { extractConfigFromVue };
@@ -1,2 +0,0 @@
1
- import { n as getCompilerContext } from "./createContext-BovlKdUA.mjs";
2
- export { getCompilerContext };