weapp-vite 6.25.0 → 6.25.1
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/auto-routes.mjs +1 -1
- package/dist/cli.mjs +3 -3
- package/dist/{createContext-DVzd-0tU.mjs → createContext-BDkOoFQ4.mjs} +15 -4
- package/dist/{file-zQ4br3El.mjs → file-DhJ5CIQD.mjs} +1 -1
- package/dist/file-noVM_1J1.mjs +2 -0
- package/dist/getInstance-CrwYvGAT.mjs +2 -0
- package/dist/index.mjs +1 -1
- package/dist/test.mjs +1 -1
- package/package.json +9 -9
- package/dist/file-XlRiJP3-.mjs +0 -2
- package/dist/getInstance-DZ87aPw-.mjs +0 -2
package/dist/auto-routes.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getCompilerContext, y as getRouteRuntimeGlobalKeys } from "./createContext-
|
|
1
|
+
import { n as getCompilerContext, y as getRouteRuntimeGlobalKeys } from "./createContext-BDkOoFQ4.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,5 +1,5 @@
|
|
|
1
|
-
import { A as getDefaultIdeProjectRoot, C as collectPreloadPages, D as loadViteConfigFile, E as suggestPreloadRules, M as isPathInside, O as createCjsConfigLoadError, S as getProjectConfigFileName, T as resolvePreloadPackageIdentifier, _ as SHARED_CHUNK_VIRTUAL_PREFIX, a as createGlassEaselAnalyzeResult, b as resolveWeappConfigFile, f as getBackendForCapability, g as createSharedBuildConfig, h as syncManagedTsconfigBootstrapFiles, j as shouldPassPlatformArgToIdeOpen, k as parseCommentJson, m as syncProjectSupportFiles, o as formatBytes, p as resolveBackendExecution, t as createCompilerContext, v as resolveHmrProfileJsonPath, w as findPreloadRuleKey, x as checkRuntime } from "./createContext-
|
|
2
|
-
import { f as VERSION, i as findJsEntry, o as findTemplateEntry, s as findVueEntry } from "./file-
|
|
1
|
+
import { A as getDefaultIdeProjectRoot, C as collectPreloadPages, D as loadViteConfigFile, E as suggestPreloadRules, M as isPathInside, O as createCjsConfigLoadError, S as getProjectConfigFileName, T as resolvePreloadPackageIdentifier, _ as SHARED_CHUNK_VIRTUAL_PREFIX, a as createGlassEaselAnalyzeResult, b as resolveWeappConfigFile, f as getBackendForCapability, g as createSharedBuildConfig, h as syncManagedTsconfigBootstrapFiles, j as shouldPassPlatformArgToIdeOpen, k as parseCommentJson, m as syncProjectSupportFiles, o as formatBytes, p as resolveBackendExecution, t as createCompilerContext, v as resolveHmrProfileJsonPath, w as findPreloadRuleKey, x as checkRuntime } from "./createContext-BDkOoFQ4.mjs";
|
|
2
|
+
import { f as VERSION, i as findJsEntry, o as findTemplateEntry, s as findVueEntry } from "./file-DhJ5CIQD.mjs";
|
|
3
3
|
import { r as logger_default, t as colors } from "./logger-mt4mSTqV.mjs";
|
|
4
4
|
import { c as startWeappViteMcpServer, l as detectAiDevelopmentEnvironment, s as resolveWeappMcpConfig } from "./mcp-BG6TliEg.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
@@ -5044,7 +5044,7 @@ function resolveRunnableHotkeyDefinition(input) {
|
|
|
5044
5044
|
}
|
|
5045
5045
|
//#endregion
|
|
5046
5046
|
//#region package.json
|
|
5047
|
-
var version = "6.25.
|
|
5047
|
+
var version = "6.25.1";
|
|
5048
5048
|
//#endregion
|
|
5049
5049
|
//#region src/cli/devHotkeys/format.ts
|
|
5050
5050
|
const FULLWIDTH_ASCII_START = 65281;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as applyWeappViteHostMeta } from "./pluginHost--CaeyWpA.mjs";
|
|
2
|
-
import { C as inlineAutoRoutesImports, T as MINI_PROGRAM_PLATFORM_ADAPTERS, _ as templateExtensions, a as findJsonEntry, b as isNativeTemplateSource, c as isJsOrTs, d as touch, g as supportedCssLangs, h as scriptExtensions, i as findJsEntry, l as isTemplate, m as jsExtensions, n as changeFileExtension, o as findTemplateEntry, p as configExtensions, r as findCssEntry, s as findVueEntry, t as extractConfigFromVue, v as vueExtensions, x as isSourceStyleExtension, y as ALL_NATIVE_STYLE_RESOLVER_EXTENSIONS } from "./file-
|
|
2
|
+
import { C as inlineAutoRoutesImports, T as MINI_PROGRAM_PLATFORM_ADAPTERS, _ as templateExtensions, a as findJsonEntry, b as isNativeTemplateSource, c as isJsOrTs, d as touch, g as supportedCssLangs, h as scriptExtensions, i as findJsEntry, l as isTemplate, m as jsExtensions, n as changeFileExtension, o as findTemplateEntry, p as configExtensions, r as findCssEntry, s as findVueEntry, t as extractConfigFromVue, v as vueExtensions, x as isSourceStyleExtension, y as ALL_NATIVE_STYLE_RESOLVER_EXTENSIONS } from "./file-DhJ5CIQD.mjs";
|
|
3
3
|
import { n as configureLogger, r as logger_default } from "./logger-mt4mSTqV.mjs";
|
|
4
4
|
import { createRequire, isBuiltin } from "node:module";
|
|
5
5
|
import { createDebug } from "obug";
|
|
@@ -30658,9 +30658,11 @@ function unique(values) {
|
|
|
30658
30658
|
return [...new Set(values)];
|
|
30659
30659
|
}
|
|
30660
30660
|
function resolveCssEntries(ctx, options, basedir) {
|
|
30661
|
+
const nestedTailwindcss = options.tailwindcss?.tailwindcss;
|
|
30661
30662
|
const entries = unique([
|
|
30662
30663
|
...options.cssEntries ?? [],
|
|
30663
30664
|
...options.tailwindcss?.v4?.cssEntries ?? [],
|
|
30665
|
+
...nestedTailwindcss?.v4?.cssEntries ?? [],
|
|
30664
30666
|
...options.tailwindcssRuntimeOptions?.tailwindcss?.v4?.cssEntries ?? []
|
|
30665
30667
|
]).map((entry) => path.isAbsolute(entry) ? path.normalize(entry) : path.resolve(basedir, entry));
|
|
30666
30668
|
return entries.length > 0 ? entries : [path.resolve(ctx.configService.absoluteSrcRoot, "app.css")];
|
|
@@ -30730,14 +30732,17 @@ function resolveManagedEntryIndex(id, code, entries) {
|
|
|
30730
30732
|
} catch {}
|
|
30731
30733
|
}
|
|
30732
30734
|
function createTailwindV4SourceOptions(resolved, entry) {
|
|
30733
|
-
const
|
|
30735
|
+
const configuredTailwindcss = resolved.options.tailwindcss;
|
|
30736
|
+
const tailwindcss = configuredTailwindcss?.tailwindcss ?? configuredTailwindcss;
|
|
30734
30737
|
const v4 = tailwindcss?.v4;
|
|
30738
|
+
const runtimeV4 = resolved.options.tailwindcssRuntimeOptions?.tailwindcss?.v4;
|
|
30735
30739
|
return {
|
|
30736
30740
|
projectRoot: resolved.basedir,
|
|
30737
30741
|
cwd: tailwindcss?.cwd,
|
|
30738
30742
|
base: v4?.base,
|
|
30739
30743
|
cssSources: v4?.cssSources,
|
|
30740
30744
|
cssEntries: [entry],
|
|
30745
|
+
sources: v4?.sources ?? runtimeV4?.sources,
|
|
30741
30746
|
packageName: tailwindcss?.packageName ?? "tailwindcss"
|
|
30742
30747
|
};
|
|
30743
30748
|
}
|
|
@@ -30766,6 +30771,7 @@ function createTailwindcssPlugin(ctx) {
|
|
|
30766
30771
|
const compilerRootIds = /* @__PURE__ */ new Map();
|
|
30767
30772
|
const compilerSourceOptions = /* @__PURE__ */ new Map();
|
|
30768
30773
|
const compilerSnapshots = /* @__PURE__ */ new Map();
|
|
30774
|
+
const processedStyleOutputs = /* @__PURE__ */ new WeakSet();
|
|
30769
30775
|
let generatedEntriesPromise;
|
|
30770
30776
|
let coreModulePromise;
|
|
30771
30777
|
let compilerPromise;
|
|
@@ -30858,6 +30864,10 @@ function createTailwindcssPlugin(ctx) {
|
|
|
30858
30864
|
for (const output of Object.values(bundle)) {
|
|
30859
30865
|
if (!transformStyles) break;
|
|
30860
30866
|
if (output.type !== "asset") continue;
|
|
30867
|
+
if (processedStyleOutputs.has(output)) {
|
|
30868
|
+
generatedOutputEntries.get(output.fileName)?.forEach((index) => seenEntries.add(index));
|
|
30869
|
+
continue;
|
|
30870
|
+
}
|
|
30861
30871
|
let source = outputAssetSource(output);
|
|
30862
30872
|
let hasManagedEntry = false;
|
|
30863
30873
|
let isMainChunk = output.fileName === `app.${styleExtension}`;
|
|
@@ -30890,6 +30900,7 @@ function createTailwindcssPlugin(ctx) {
|
|
|
30890
30900
|
}
|
|
30891
30901
|
if (!hasManagedEntry && !output.fileName.endsWith(`.${styleExtension}`)) continue;
|
|
30892
30902
|
output.source = stripManagedTailwindcssOutputMarkers(await stripResidualTailwindSourceDirectives((await compiler.transformCss(source, snapshot, { isMainChunk })).css));
|
|
30903
|
+
processedStyleOutputs.add(output);
|
|
30893
30904
|
}
|
|
30894
30905
|
if (transformStyles && !ctx.configService.isDev && resolved.options.generator !== false) {
|
|
30895
30906
|
const stages = resolved.cssEntries.filter((_entry, index) => resolvedEntryIndexes.has(index) || loadedEntryIndexes.has(index)).filter((entry) => !seenEntries.has(resolved.cssEntries.indexOf(entry))).map((entry) => {
|
|
@@ -30994,7 +31005,7 @@ function createTailwindcssPlugin(ctx) {
|
|
|
30994
31005
|
async handler(_options, bundle) {
|
|
30995
31006
|
resolved.options.onStart?.();
|
|
30996
31007
|
try {
|
|
30997
|
-
await transformBundle.call(this, bundle
|
|
31008
|
+
await transformBundle.call(this, bundle);
|
|
30998
31009
|
} finally {
|
|
30999
31010
|
resolved.options.onEnd?.();
|
|
31000
31011
|
}
|
|
@@ -35170,7 +35181,7 @@ async function loadAppEntry(ctx, scanState) {
|
|
|
35170
35181
|
const { path: appEntryPath } = appEntry;
|
|
35171
35182
|
let configFromVue;
|
|
35172
35183
|
if (!appConfigFile && vueAppPath) {
|
|
35173
|
-
const { extractConfigFromVue } = await import("./file-
|
|
35184
|
+
const { extractConfigFromVue } = await import("./file-noVM_1J1.mjs");
|
|
35174
35185
|
configFromVue = await extractConfigFromVue(vueAppPath);
|
|
35175
35186
|
if (configFromVue) appConfigFile = vueAppPath;
|
|
35176
35187
|
}
|
|
@@ -51,7 +51,7 @@ function resolveAutoRoutesMacroImportPath() {
|
|
|
51
51
|
}
|
|
52
52
|
async function resolveAutoRoutesInlineSnapshot() {
|
|
53
53
|
try {
|
|
54
|
-
const { getCompilerContext } = await import("./getInstance-
|
|
54
|
+
const { getCompilerContext } = await import("./getInstance-CrwYvGAT.mjs");
|
|
55
55
|
const compilerContext = getCompilerContext();
|
|
56
56
|
const service = compilerContext.autoRoutesService;
|
|
57
57
|
const reference = service?.getReference?.();
|
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 getSupportedWeappVitePlatforms, d as resolveWeappViteTarget, l as getSupportedWeappViteTargetDescriptors, s as WEB_PLATFORM_ALIASES, t as createCompilerContext, u as isWebPlatform } from "./createContext-
|
|
4
|
+
import { c as getSupportedWeappVitePlatforms, d as resolveWeappViteTarget, l as getSupportedWeappViteTargetDescriptors, s as WEB_PLATFORM_ALIASES, t as createCompilerContext, u as isWebPlatform } from "./createContext-BDkOoFQ4.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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.25.
|
|
4
|
+
"version": "6.25.1",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -144,24 +144,24 @@
|
|
|
144
144
|
"vue": "^3.5.42",
|
|
145
145
|
"vue-tsc": "^3.3.11",
|
|
146
146
|
"weapp-tailwindcss": "^5.4.1",
|
|
147
|
-
"@weapp-core/init": "6.0.16",
|
|
148
147
|
"@weapp-core/constants": "0.2.0",
|
|
149
148
|
"@weapp-core/logger": "3.1.1",
|
|
150
|
-
"@weapp-core/
|
|
151
|
-
"@weapp-vite/ast": "6.25.0",
|
|
149
|
+
"@weapp-core/init": "6.0.16",
|
|
152
150
|
"@weapp-core/schematics": "6.2.1",
|
|
151
|
+
"@weapp-core/shared": "3.2.0",
|
|
152
|
+
"@weapp-vite/ast": "6.25.1",
|
|
153
153
|
"@weapp-vite/eslint": "0.2.2",
|
|
154
|
-
"@weapp-vite/mcp": "1.5.0",
|
|
155
154
|
"@weapp-vite/i18n": "0.2.0",
|
|
155
|
+
"@weapp-vite/mcp": "1.5.0",
|
|
156
156
|
"@weapp-vite/miniprogram-automator": "1.2.16",
|
|
157
|
-
"@weapp-vite/web": "1.4.15",
|
|
158
|
-
"@wevu/api": "0.3.0",
|
|
159
|
-
"@wevu/web-apis": "1.2.38",
|
|
160
157
|
"@weapp-vite/volar": "2.1.5",
|
|
158
|
+
"@weapp-vite/web": "1.4.16",
|
|
159
|
+
"@wevu/web-apis": "1.2.38",
|
|
161
160
|
"rolldown-require": "2.0.27",
|
|
161
|
+
"@wevu/api": "0.3.0",
|
|
162
162
|
"vite-plugin-performance": "2.0.1",
|
|
163
163
|
"weapp-ide-cli": "6.1.0",
|
|
164
|
-
"wevu": "6.25.
|
|
164
|
+
"wevu": "6.25.1"
|
|
165
165
|
},
|
|
166
166
|
"optionalDependencies": {
|
|
167
167
|
"@swc/core": "^1.16.1"
|
package/dist/file-XlRiJP3-.mjs
DELETED