weapp-tailwindcss 5.4.1 → 5.4.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.
- package/dist/{compiler-CDAz4SwJ.cjs → compiler-B-m9VGqj.cjs} +16 -2
- package/dist/{compiler-DWcUgi3A.js → compiler-BgMj2E5l.js} +5 -3
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/framework.cjs +22 -2
- package/dist/framework.js +22 -2
- package/dist/{gulp-CBu_waef.cjs → gulp-ChecVI6A.cjs} +3 -3
- package/dist/{gulp-BbMMp7vY.js → gulp-D6LcfRz_.js} +2 -2
- package/dist/gulp.cjs +1 -1
- package/dist/gulp.js +1 -1
- package/dist/{hmr-timing-B_4sAvsk.js → hmr-timing-CqDfjvqE.js} +1 -1
- package/dist/{hmr-timing-CYhNto2U.cjs → hmr-timing-afnWvy7u.cjs} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/dist/{pipeline-helpers-Du8eAtMG.cjs → pipeline-helpers-DxPFMGxz.cjs} +2 -2
- package/dist/rspack.cjs +2 -2
- package/dist/rspack.js +2 -2
- package/dist/{source-candidate-scan-signature-wieibgE7.js → source-candidate-scan-signature-BVScymyM.js} +1 -1
- package/dist/{source-candidate-scan-signature-ZOm0O17V.cjs → source-candidate-scan-signature-FywFU3Rg.cjs} +1 -1
- package/dist/{v4-generation-core-BhYkeoZ4.cjs → v4-generation-core-CPKNwzjz.cjs} +1 -1
- package/dist/{vite-B0cvyfSY.cjs → vite-D-gmOkPN.cjs} +41 -13
- package/dist/{vite-Fu6GTjIY.js → vite-D3aCtpmv.js} +40 -12
- package/dist/vite.cjs +1 -1
- package/dist/vite.js +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.cjs +3 -3
- package/dist/{webpack-BKHO-WSM.js → webpack-B-6a8Z8F.js} +3 -3
- package/dist/{webpack-Amn5lmnx.cjs → webpack-yAne9ZYu.cjs} +5 -5
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.js +1 -1
- package/package.json +1 -1
|
@@ -1904,8 +1904,10 @@ function createInternalCompilerContext(opts) {
|
|
|
1904
1904
|
applyFrameworkPlatformDefaults(ctx);
|
|
1905
1905
|
applyLoggerLevel(ctx.logLevel);
|
|
1906
1906
|
const tailwindRuntime = require_tailwindcss.createTailwindcssRuntimeFromContext(ctx);
|
|
1907
|
-
|
|
1908
|
-
|
|
1907
|
+
if (opts?.__internalViteDeferRuntimeLogs !== true) {
|
|
1908
|
+
logTailwindcssTarget(tailwindRuntime, ctx.tailwindcssBasedir);
|
|
1909
|
+
logRuntimeTailwindcssVersion(ctx.tailwindcssBasedir, tailwindRuntime.packageInfo?.rootPath, tailwindRuntime.packageInfo?.version);
|
|
1910
|
+
}
|
|
1909
1911
|
if (opts?.__internalDeferMissingCssEntriesWarning !== true) require_tailwindcss.warnMissingCssEntries(ctx, tailwindRuntime);
|
|
1910
1912
|
ctx.cssPreflight = resolveContextCssPreflight(opts, ctx, tailwindRuntime.majorVersion);
|
|
1911
1913
|
const cssCalcOptions = require_tailwindcss.applyV4CssCalcDefaults(ctx.cssCalc, tailwindRuntime);
|
|
@@ -2252,6 +2254,18 @@ Object.defineProperty(exports, "getCompilerContext", {
|
|
|
2252
2254
|
return getCompilerContext;
|
|
2253
2255
|
}
|
|
2254
2256
|
});
|
|
2257
|
+
Object.defineProperty(exports, "logRuntimeTailwindcssVersion", {
|
|
2258
|
+
enumerable: true,
|
|
2259
|
+
get: function() {
|
|
2260
|
+
return logRuntimeTailwindcssVersion;
|
|
2261
|
+
}
|
|
2262
|
+
});
|
|
2263
|
+
Object.defineProperty(exports, "logTailwindcssTarget", {
|
|
2264
|
+
enumerable: true,
|
|
2265
|
+
get: function() {
|
|
2266
|
+
return logTailwindcssTarget;
|
|
2267
|
+
}
|
|
2268
|
+
});
|
|
2255
2269
|
Object.defineProperty(exports, "normalizeFrameworkStylePlatform", {
|
|
2256
2270
|
enumerable: true,
|
|
2257
2271
|
get: function() {
|
|
@@ -1734,8 +1734,10 @@ function createInternalCompilerContext(opts) {
|
|
|
1734
1734
|
applyFrameworkPlatformDefaults(ctx);
|
|
1735
1735
|
applyLoggerLevel(ctx.logLevel);
|
|
1736
1736
|
const tailwindRuntime = createTailwindcssRuntimeFromContext(ctx);
|
|
1737
|
-
|
|
1738
|
-
|
|
1737
|
+
if (opts?.__internalViteDeferRuntimeLogs !== true) {
|
|
1738
|
+
logTailwindcssTarget(tailwindRuntime, ctx.tailwindcssBasedir);
|
|
1739
|
+
logRuntimeTailwindcssVersion(ctx.tailwindcssBasedir, tailwindRuntime.packageInfo?.rootPath, tailwindRuntime.packageInfo?.version);
|
|
1740
|
+
}
|
|
1739
1741
|
if (opts?.__internalDeferMissingCssEntriesWarning !== true) warnMissingCssEntries(ctx, tailwindRuntime);
|
|
1740
1742
|
ctx.cssPreflight = resolveContextCssPreflight(opts, ctx, tailwindRuntime.majorVersion);
|
|
1741
1743
|
const cssCalcOptions = applyV4CssCalcDefaults(ctx.cssCalc, tailwindRuntime);
|
|
@@ -2046,4 +2048,4 @@ function createCompiler(options = {}) {
|
|
|
2046
2048
|
};
|
|
2047
2049
|
}
|
|
2048
2050
|
//#endregion
|
|
2049
|
-
export { pluginName as a, toCustomAttributesEntities as c,
|
|
2051
|
+
export { pluginName as a, toCustomAttributesEntities as c, collectRuntimeClassSet as d, createTailwindRuntimeReadyPromise as f, DefaultCompilationSession as g, normalizeFrameworkStylePlatform as h, resolveStyleOptionsFromContext as i, logTailwindcssTarget as l, refreshTailwindRuntimeState as m, getCompilerContext as n, vitePluginName as o, ensureRuntimeClassSet as p, normalizeStyleHandlerMajorVersion as r, shouldSkipJsTransform as s, createCompiler as t, logRuntimeTailwindcssVersion as u };
|
package/dist/core.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_compiler = require("./compiler-
|
|
2
|
+
const require_compiler = require("./compiler-B-m9VGqj.cjs");
|
|
3
3
|
let _weapp_tailwindcss_postcss = require("@weapp-tailwindcss/postcss");
|
|
4
4
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
5
5
|
//#region src/core.ts
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as createTailwindRuntimeReadyPromise, n as getCompilerContext, p as ensureRuntimeClassSet, s as shouldSkipJsTransform, t as createCompiler } from "./compiler-BgMj2E5l.js";
|
|
2
2
|
import { finalizeMiniProgramCss, finalizeMiniProgramCssRoot, postcss, removeTailwindSourceDirectivesRoot } from "@weapp-tailwindcss/postcss";
|
|
3
3
|
import { defuOverrideArray } from "@weapp-tailwindcss/shared";
|
|
4
4
|
//#region src/core.ts
|
package/dist/framework.cjs
CHANGED
|
@@ -207,10 +207,30 @@ function detectAppType(options = {}) {
|
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
function resolveImplicitAppTypeFromViteRoot(root, options = {}) {
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
const resolvedRoot = node_path.default.resolve(root);
|
|
211
|
+
if (options.searchUp !== false) return detectAppType({
|
|
212
|
+
root: resolvedRoot,
|
|
212
213
|
searchUp: options.searchUp
|
|
213
214
|
});
|
|
215
|
+
if (!(0, node_fs.existsSync)(resolvedRoot)) return;
|
|
216
|
+
const localProfile = detectAppType({
|
|
217
|
+
root: resolvedRoot,
|
|
218
|
+
searchUp: false
|
|
219
|
+
});
|
|
220
|
+
if (localProfile) return localProfile;
|
|
221
|
+
let current = resolvedRoot;
|
|
222
|
+
while (true) {
|
|
223
|
+
if ((0, node_fs.existsSync)(node_path.default.join(current, PACKAGE_JSON_FILE))) {
|
|
224
|
+
if (current === resolvedRoot) return;
|
|
225
|
+
return detectAppType({
|
|
226
|
+
root: current,
|
|
227
|
+
searchUp: false
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
const parent = node_path.default.dirname(current);
|
|
231
|
+
if (parent === current) return;
|
|
232
|
+
current = parent;
|
|
233
|
+
}
|
|
214
234
|
}
|
|
215
235
|
//#endregion
|
|
216
236
|
exports.detectAppType = detectAppType;
|
package/dist/framework.js
CHANGED
|
@@ -203,10 +203,30 @@ function detectAppType(options = {}) {
|
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
function resolveImplicitAppTypeFromViteRoot(root, options = {}) {
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
const resolvedRoot = path.resolve(root);
|
|
207
|
+
if (options.searchUp !== false) return detectAppType({
|
|
208
|
+
root: resolvedRoot,
|
|
208
209
|
searchUp: options.searchUp
|
|
209
210
|
});
|
|
211
|
+
if (!existsSync(resolvedRoot)) return;
|
|
212
|
+
const localProfile = detectAppType({
|
|
213
|
+
root: resolvedRoot,
|
|
214
|
+
searchUp: false
|
|
215
|
+
});
|
|
216
|
+
if (localProfile) return localProfile;
|
|
217
|
+
let current = resolvedRoot;
|
|
218
|
+
while (true) {
|
|
219
|
+
if (existsSync(path.join(current, PACKAGE_JSON_FILE))) {
|
|
220
|
+
if (current === resolvedRoot) return;
|
|
221
|
+
return detectAppType({
|
|
222
|
+
root: current,
|
|
223
|
+
searchUp: false
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
const parent = path.dirname(current);
|
|
227
|
+
if (parent === current) return;
|
|
228
|
+
current = parent;
|
|
229
|
+
}
|
|
210
230
|
}
|
|
211
231
|
//#endregion
|
|
212
232
|
export { detectAppType, detectAppTypeFromEnv, detectAppTypeFromPackageJson, isMpxPackage, isRunningInHBuilderX, isTaroPackage, isUniAppPackage, isUniAppVitePackage, isUniAppXManifest, isUniAppXPackage, isWeappVitePackage, resolveImplicitAppTypeFromViteRoot, resolveMpxPlatform, resolvePlatform, resolveTaroPlatform, resolveUniAppXPlatform, resolveUniPlatform, resolveUniPlatformsFromEnv, resolveUniUtsPlatform };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
2
2
|
const require_generator = require("./generator-WlhrtNa3.cjs");
|
|
3
3
|
const require_tailwindcss = require("./tailwindcss-D3jltF7M.cjs");
|
|
4
|
-
const require_v4_generation_core = require("./v4-generation-core-
|
|
4
|
+
const require_v4_generation_core = require("./v4-generation-core-CPKNwzjz.cjs");
|
|
5
5
|
const require_wxml = require("./wxml-o-CUulAM.cjs");
|
|
6
|
-
const require_compiler = require("./compiler-
|
|
7
|
-
const require_hmr_timing = require("./hmr-timing-
|
|
6
|
+
const require_compiler = require("./compiler-B-m9VGqj.cjs");
|
|
7
|
+
const require_hmr_timing = require("./hmr-timing-afnWvy7u.cjs");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_rolldown_runtime.__toESM(node_fs, 1);
|
|
10
10
|
let node_path = require("node:path");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Pt as getTailwindV4IncrementalGenerateCacheStats, Q as hasTailwindRootDirectives, _ as upsertTailwindV4CssSource, et as normalizeTailwindConfigDirectives, g as removeTailwindV4CssSource, h as hasConfiguredTailwindV4CssRoots, nt as normalizeTailwindSourceForGenerator, vt as prependConfigDirective } from "./generator-BjK5PRR-.js";
|
|
2
2
|
import { f as resolveSourceScanEntries, l as getRuntimeClassSetSignature } from "./tailwindcss-9xmoCkaR.js";
|
|
3
|
-
import { $ as AssetEmissionPlan, B as rewriteLocalCssImportRequestsForOutput, E as hasBundlerGeneratedCssMarker, F as processCachedTask, G as createRuntimeCompilationBuildState, H as finalizeCompilerShadowRun, I as createRuntimeClassSetManager, J as updateRuntimeCompilationBuildState, K as removeRuntimeCompilationBuildStateFiles, M as createCssSourceTraceCacheSignature, N as createCssTokenSourceMap, O as stripBundlerGeneratedCssMarkers, Q as getCompilerShadowRunSnapshot, T as createBundlerGeneratedCssMarker, U as buildRuntimeCompilationSnapshot, V as splitLocalCssImports, X as disposeCompilerOwner, Y as createRuntimeAffectingSourceSignature, Z as beginCompilerShadowRun, b as finalizeMiniProgramGeneratorCss, et as getCompilationScopeDependencyRevision, it as createSourceCandidateCollector, j as annotateCssSourceTrace, k as finalizeMiniProgramCssStructure, n as emitHmrTiming, nt as recordCompilationDependencyChanges, r as generateTailwindV4Css, rt as createCompilationDependencyChanges, tt as invalidateCompilationScope } from "./hmr-timing-
|
|
3
|
+
import { $ as AssetEmissionPlan, B as rewriteLocalCssImportRequestsForOutput, E as hasBundlerGeneratedCssMarker, F as processCachedTask, G as createRuntimeCompilationBuildState, H as finalizeCompilerShadowRun, I as createRuntimeClassSetManager, J as updateRuntimeCompilationBuildState, K as removeRuntimeCompilationBuildStateFiles, M as createCssSourceTraceCacheSignature, N as createCssTokenSourceMap, O as stripBundlerGeneratedCssMarkers, Q as getCompilerShadowRunSnapshot, T as createBundlerGeneratedCssMarker, U as buildRuntimeCompilationSnapshot, V as splitLocalCssImports, X as disposeCompilerOwner, Y as createRuntimeAffectingSourceSignature, Z as beginCompilerShadowRun, b as finalizeMiniProgramGeneratorCss, et as getCompilationScopeDependencyRevision, it as createSourceCandidateCollector, j as annotateCssSourceTrace, k as finalizeMiniProgramCssStructure, n as emitHmrTiming, nt as recordCompilationDependencyChanges, r as generateTailwindV4Css, rt as createCompilationDependencyChanges, tt as invalidateCompilationScope } from "./hmr-timing-CqDfjvqE.js";
|
|
4
4
|
import { m as createDebug } from "./wxml-CvKyV69S.js";
|
|
5
|
-
import {
|
|
5
|
+
import { f as createTailwindRuntimeReadyPromise, n as getCompilerContext, p as ensureRuntimeClassSet, r as normalizeStyleHandlerMajorVersion, s as shouldSkipJsTransform } from "./compiler-BgMj2E5l.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import process from "node:process";
|
package/dist/gulp.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_gulp = require("./gulp-
|
|
2
|
+
const require_gulp = require("./gulp-ChecVI6A.cjs");
|
|
3
3
|
exports.WeappTailwindcss = require_gulp.createPlugins;
|
|
4
4
|
exports.createPlugins = require_gulp.createPlugins;
|
|
5
5
|
exports.weappTailwindcss = require_gulp.createPlugins;
|
package/dist/gulp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createPlugins } from "./gulp-
|
|
1
|
+
import { t as createPlugins } from "./gulp-D6LcfRz_.js";
|
|
2
2
|
export { createPlugins as WeappTailwindcss, createPlugins, createPlugins as weappTailwindcss };
|
|
@@ -3,7 +3,7 @@ import { o as transformCssMacroCss, r as hasCssMacroTailwindV4InternalAtRules, t
|
|
|
3
3
|
import { n as _defineProperty, t as omitUndefined } from "./object-B-8IHefx.js";
|
|
4
4
|
import { _ as includesTailwindV4PreflightDirective, h as resolveTailwindV4EntriesFromCss, l as getRuntimeClassSetSignature, r as isUniAppXEnabled, v as collectCssInlineSourceCandidates } from "./tailwindcss-9xmoCkaR.js";
|
|
5
5
|
import { _ as md5Hash, g as traverse, h as babelParse, m as createDebug, p as replaceWxml, r as createAttributeMatcher } from "./wxml-CvKyV69S.js";
|
|
6
|
-
import {
|
|
6
|
+
import { g as DefaultCompilationSession, i as resolveStyleOptionsFromContext, t as createCompiler } from "./compiler-BgMj2E5l.js";
|
|
7
7
|
import { existsSync, readFileSync } from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import process from "node:process";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
2
2
|
const require_generator = require("./generator-WlhrtNa3.cjs");
|
|
3
3
|
const require_tailwindcss = require("./tailwindcss-D3jltF7M.cjs");
|
|
4
|
-
const require_v4_generation_core = require("./v4-generation-core-
|
|
4
|
+
const require_v4_generation_core = require("./v4-generation-core-CPKNwzjz.cjs");
|
|
5
5
|
const require_wxml = require("./wxml-o-CUulAM.cjs");
|
|
6
6
|
let node_process = require("node:process");
|
|
7
7
|
node_process = require_rolldown_runtime.__toESM(node_process, 1);
|
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_framework = require("./framework.cjs");
|
|
3
3
|
const require_generator = require("./generator-WlhrtNa3.cjs");
|
|
4
|
-
const require_gulp = require("./gulp-
|
|
4
|
+
const require_gulp = require("./gulp-ChecVI6A.cjs");
|
|
5
5
|
const require_postcss = require("./postcss.cjs");
|
|
6
|
-
const require_vite = require("./vite-
|
|
7
|
-
const require_webpack = require("./webpack-
|
|
6
|
+
const require_vite = require("./vite-D-gmOkPN.cjs");
|
|
7
|
+
const require_webpack = require("./webpack-yAne9ZYu.cjs");
|
|
8
8
|
require("./webpack.cjs");
|
|
9
9
|
let _weapp_tailwindcss_postcss = require("@weapp-tailwindcss/postcss");
|
|
10
10
|
exports.WeappTailwindcss = require_vite.WeappTailwindcss;
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { detectAppType, detectAppTypeFromEnv, detectAppTypeFromPackageJson, isMpxPackage, isRunningInHBuilderX, isTaroPackage, isUniAppPackage, isUniAppVitePackage, isUniAppXManifest, isUniAppXPackage, isWeappVitePackage, resolveImplicitAppTypeFromViteRoot, resolveMpxPlatform, resolvePlatform, resolveTaroPlatform, resolveUniAppXPlatform, resolveUniPlatform, resolveUniPlatformsFromEnv, resolveUniUtsPlatform } from "./framework.js";
|
|
2
2
|
import { t as createWeappTailwindcssGenerator } from "./generator-BjK5PRR-.js";
|
|
3
|
-
import { t as createPlugins } from "./gulp-
|
|
3
|
+
import { t as createPlugins } from "./gulp-D6LcfRz_.js";
|
|
4
4
|
import weappTailwindcssPostcssPlugin from "./postcss.js";
|
|
5
|
-
import { t as WeappTailwindcss } from "./vite-
|
|
6
|
-
import { n as weappTailwindcssPackageDir } from "./webpack-
|
|
5
|
+
import { t as WeappTailwindcss } from "./vite-D3aCtpmv.js";
|
|
6
|
+
import { n as weappTailwindcssPackageDir } from "./webpack-B-6a8Z8F.js";
|
|
7
7
|
import "./webpack.js";
|
|
8
8
|
import { unitConversionComposeRules, unitConversionPresets } from "@weapp-tailwindcss/postcss";
|
|
9
9
|
export { WeappTailwindcss, createPlugins, createWeappTailwindcssGenerator, detectAppType, detectAppTypeFromEnv, detectAppTypeFromPackageJson, isMpxPackage, isRunningInHBuilderX, isTaroPackage, isUniAppPackage, isUniAppVitePackage, isUniAppXManifest, isUniAppXPackage, isWeappVitePackage, resolveImplicitAppTypeFromViteRoot, resolveMpxPlatform, resolvePlatform, resolveTaroPlatform, resolveUniAppXPlatform, resolveUniPlatform, resolveUniPlatformsFromEnv, resolveUniUtsPlatform, unitConversionComposeRules, unitConversionPresets, weappTailwindcssPackageDir, weappTailwindcssPostcssPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
2
2
|
const require_generator = require("./generator-WlhrtNa3.cjs");
|
|
3
|
-
const require_v4_generation_core = require("./v4-generation-core-
|
|
4
|
-
const require_compiler = require("./compiler-
|
|
3
|
+
const require_v4_generation_core = require("./v4-generation-core-CPKNwzjz.cjs");
|
|
4
|
+
const require_compiler = require("./compiler-B-m9VGqj.cjs");
|
|
5
5
|
const require_defaults = require("./defaults.cjs");
|
|
6
6
|
let node_path = require("node:path");
|
|
7
7
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
package/dist/rspack.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
3
|
-
const require_v4_generation_core = require("./v4-generation-core-
|
|
4
|
-
const require_webpack = require("./webpack-
|
|
3
|
+
const require_v4_generation_core = require("./v4-generation-core-CPKNwzjz.cjs");
|
|
4
|
+
const require_webpack = require("./webpack-yAne9ZYu.cjs");
|
|
5
5
|
let node_path = require("node:path");
|
|
6
6
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
7
7
|
//#region src/bundlers/rspack/rule-match.ts
|
package/dist/rspack.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as isSourceStyleRequest } from "./hmr-timing-
|
|
2
|
-
import { n as weappTailwindcssPackageDir, r as __dirname, t as WeappTailwindcss } from "./webpack-
|
|
1
|
+
import { C as isSourceStyleRequest } from "./hmr-timing-CqDfjvqE.js";
|
|
2
|
+
import { n as weappTailwindcssPackageDir, r as __dirname, t as WeappTailwindcss } from "./webpack-B-6a8Z8F.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
//#region src/bundlers/rspack/rule-match.ts
|
|
5
5
|
const STYLE_RULE_PROBES = [
|
|
@@ -2,7 +2,7 @@ import { detectAppType } from "./framework.js";
|
|
|
2
2
|
import { At as toPosixPath } from "./generator-BjK5PRR-.js";
|
|
3
3
|
import { n as hasCssMacroTailwindV4CustomVariantConditionalComments } from "./auto-2dg_uhEJ.js";
|
|
4
4
|
import { g as resolveTailwindV4EntriesFromCssCached, i as resolveUniAppXOptions } from "./tailwindcss-9xmoCkaR.js";
|
|
5
|
-
import { C as isSourceStyleRequest } from "./hmr-timing-
|
|
5
|
+
import { C as isSourceStyleRequest } from "./hmr-timing-CqDfjvqE.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { weappStyleInjector } from "weapp-style-injector/vite";
|
|
@@ -3,7 +3,7 @@ const require_framework = require("./framework.cjs");
|
|
|
3
3
|
const require_generator = require("./generator-WlhrtNa3.cjs");
|
|
4
4
|
require("./auto-DtU6f3X6.cjs");
|
|
5
5
|
const require_tailwindcss = require("./tailwindcss-D3jltF7M.cjs");
|
|
6
|
-
const require_v4_generation_core = require("./v4-generation-core-
|
|
6
|
+
const require_v4_generation_core = require("./v4-generation-core-CPKNwzjz.cjs");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
9
9
|
let node_module = require("node:module");
|
|
@@ -4,7 +4,7 @@ require("./auto-DtU6f3X6.cjs");
|
|
|
4
4
|
const require_object = require("./object-DbHtAXRk.cjs");
|
|
5
5
|
const require_tailwindcss = require("./tailwindcss-D3jltF7M.cjs");
|
|
6
6
|
const require_wxml = require("./wxml-o-CUulAM.cjs");
|
|
7
|
-
const require_compiler = require("./compiler-
|
|
7
|
+
const require_compiler = require("./compiler-B-m9VGqj.cjs");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
let node_path = require("node:path");
|
|
10
10
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
@@ -4,11 +4,11 @@ const require_generator = require("./generator-WlhrtNa3.cjs");
|
|
|
4
4
|
const require_object = require("./object-DbHtAXRk.cjs");
|
|
5
5
|
const require_tailwindcss = require("./tailwindcss-D3jltF7M.cjs");
|
|
6
6
|
require("./utils-CuKLf1Zv.cjs");
|
|
7
|
-
const require_v4_generation_core = require("./v4-generation-core-
|
|
7
|
+
const require_v4_generation_core = require("./v4-generation-core-CPKNwzjz.cjs");
|
|
8
8
|
const require_wxml = require("./wxml-o-CUulAM.cjs");
|
|
9
|
-
const require_compiler = require("./compiler-
|
|
10
|
-
const require_hmr_timing = require("./hmr-timing-
|
|
11
|
-
const require_source_candidate_scan_signature = require("./source-candidate-scan-signature-
|
|
9
|
+
const require_compiler = require("./compiler-B-m9VGqj.cjs");
|
|
10
|
+
const require_hmr_timing = require("./hmr-timing-afnWvy7u.cjs");
|
|
11
|
+
const require_source_candidate_scan_signature = require("./source-candidate-scan-signature-FywFU3Rg.cjs");
|
|
12
12
|
const require_local_style_matcher = require("./local-style-matcher-DRpFEu1s.cjs");
|
|
13
13
|
require("./logger-TlKT3xmR.cjs");
|
|
14
14
|
const require_css_imports = require("./css-imports-BFMU7Hpd.cjs");
|
|
@@ -9944,7 +9944,7 @@ function createFrameworkPostPlugin(options) {
|
|
|
9944
9944
|
if (nextAppType && options.opts.appType !== nextAppType) {
|
|
9945
9945
|
const previousAppType = options.opts.appType;
|
|
9946
9946
|
options.opts.appType = nextAppType;
|
|
9947
|
-
_weapp_tailwindcss_logger.logger.
|
|
9947
|
+
_weapp_tailwindcss_logger.logger.debug("根据 Vite 项目根目录自动推断 appType -> %s", nextAppType);
|
|
9948
9948
|
options.debug("align appType with vite root: %s -> %s", previousAppType ?? "undefined", nextAppType);
|
|
9949
9949
|
shouldRefreshRuntime = true;
|
|
9950
9950
|
}
|
|
@@ -9955,7 +9955,7 @@ function createFrameworkPostPlugin(options) {
|
|
|
9955
9955
|
...generator,
|
|
9956
9956
|
target: "web"
|
|
9957
9957
|
};
|
|
9958
|
-
_weapp_tailwindcss_logger.logger.
|
|
9958
|
+
_weapp_tailwindcss_logger.logger.debug("Generic Vite 项目未指定目标,自动使用 generator.target -> web");
|
|
9959
9959
|
options.debug("default generic vite generator target to web after configResolved");
|
|
9960
9960
|
shouldRefreshRuntime = true;
|
|
9961
9961
|
}
|
|
@@ -10063,6 +10063,7 @@ function isNuxtPageHotModule(id) {
|
|
|
10063
10063
|
//#endregion
|
|
10064
10064
|
//#region src/bundlers/vite/shared/framework-source-candidates-plugin.ts
|
|
10065
10065
|
function createFrameworkSourceCandidatesPlugin(options, apply) {
|
|
10066
|
+
const shouldSkipSourceCandidateState = () => options.shouldSkipSourceCandidateState?.() === true;
|
|
10066
10067
|
const hasDifferentHotModules = (left, right) => left.length !== right.length || left.some((mod, index) => mod !== right[index]);
|
|
10067
10068
|
const hasTemplateHotSourceModule = (modules) => modules.some((mod) => {
|
|
10068
10069
|
const request = mod.url ?? mod.id;
|
|
@@ -10096,7 +10097,7 @@ function createFrameworkSourceCandidatesPlugin(options, apply) {
|
|
|
10096
10097
|
apply,
|
|
10097
10098
|
enforce: "pre",
|
|
10098
10099
|
async load(id) {
|
|
10099
|
-
if (!options.shouldOwnTailwindGeneration || options.isWebOrNativeAppPlatform(options.resolveViteStylePlatform()) || !isCSSRequest(id) || !shouldCollectTransformedSourceCandidates(id)) return;
|
|
10100
|
+
if (!options.shouldOwnTailwindGeneration || shouldSkipSourceCandidateState() || options.isWebOrNativeAppPlatform(options.resolveViteStylePlatform()) || !isCSSRequest(id) || !shouldCollectTransformedSourceCandidates(id)) return;
|
|
10100
10101
|
const file = (0, _weapp_tailwindcss_shared.cleanUrl)(id);
|
|
10101
10102
|
const rawCode = await (0, node_fs_promises.readFile)(file, "utf8").catch(() => void 0);
|
|
10102
10103
|
if (typeof rawCode !== "string") return;
|
|
@@ -10109,6 +10110,7 @@ function createFrameworkSourceCandidatesPlugin(options, apply) {
|
|
|
10109
10110
|
transform: {
|
|
10110
10111
|
order: "pre",
|
|
10111
10112
|
async handler(code, id) {
|
|
10113
|
+
if (shouldSkipSourceCandidateState()) return;
|
|
10112
10114
|
if (options.hasUserCssLayerBlocks(code)) options.rememberOriginalCssLayerSource(id, code);
|
|
10113
10115
|
let transformedCode = code;
|
|
10114
10116
|
if (options.shouldOwnTailwindGeneration && !options.resolveCurrentGeneratorBranch().isWeb && isCSSRequest(id)) transformedCode = options.transformEarlyMiniProgramCss(code);
|
|
@@ -10117,7 +10119,7 @@ function createFrameworkSourceCandidatesPlugin(options, apply) {
|
|
|
10117
10119
|
options.cssMemory.rememberKnownSfcSource(id, transformedCode);
|
|
10118
10120
|
if (isCSSRequest(id) && require_generator.hasTailwindRootDirectives(transformedCode, { importFallback: options.resolveCurrentGeneratorOptions().importFallback })) options.rememberTailwindRootCssModule(id);
|
|
10119
10121
|
}
|
|
10120
|
-
if (!options.shouldOwnTailwindGeneration || options.collectSourceCandidates === false || !require_v4_generation_core.isSourceCandidateRequest(id) || !shouldCollectTransformedSourceCandidates(id)) return shouldReturnTransformedCode ? {
|
|
10122
|
+
if (!options.shouldOwnTailwindGeneration || shouldSkipSourceCandidateState() || options.collectSourceCandidates === false || !require_v4_generation_core.isSourceCandidateRequest(id) || !shouldCollectTransformedSourceCandidates(id)) return shouldReturnTransformedCode ? {
|
|
10121
10123
|
code: transformedCode,
|
|
10122
10124
|
map: null
|
|
10123
10125
|
} : void 0;
|
|
@@ -10142,6 +10144,7 @@ function createFrameworkSourceCandidatesPlugin(options, apply) {
|
|
|
10142
10144
|
}
|
|
10143
10145
|
},
|
|
10144
10146
|
async watchChange(id, change) {
|
|
10147
|
+
if (shouldSkipSourceCandidateState()) return;
|
|
10145
10148
|
require_v4_generation_core.recordCompilationDependencyChanges(options.runtimeState, require_v4_generation_core.createCompilationDependencyChanges([node_path.default.resolve((0, _weapp_tailwindcss_shared.cleanUrl)(id))]));
|
|
10146
10149
|
await options.hmrTimingRecorder.measure("sourceCandidates.watchChange", async () => {
|
|
10147
10150
|
if (options.shouldOwnTailwindGeneration && options.collectSourceCandidates !== false && require_v4_generation_core.isSourceCandidateRequest(id)) options.invalidateRecordedGeneratorCandidates();
|
|
@@ -10179,6 +10182,7 @@ function createFrameworkSourceCandidatesPlugin(options, apply) {
|
|
|
10179
10182
|
handleHotUpdate: {
|
|
10180
10183
|
order: "post",
|
|
10181
10184
|
async handler(ctx) {
|
|
10185
|
+
if (shouldSkipSourceCandidateState()) return;
|
|
10182
10186
|
require_v4_generation_core.recordCompilationDependencyChanges(options.runtimeState, require_v4_generation_core.createCompilationDependencyChanges([node_path.default.resolve((0, _weapp_tailwindcss_shared.cleanUrl)(ctx.file))]));
|
|
10183
10187
|
return options.hmrTimingRecorder.measure("sourceCandidates.handleHotUpdate", async () => {
|
|
10184
10188
|
const isSourceCandidateHotUpdate = options.shouldOwnTailwindGeneration && options.collectSourceCandidates !== false && require_v4_generation_core.isSourceCandidateRequest(ctx.file);
|
|
@@ -10261,9 +10265,13 @@ function createFrameworkSourceCandidatesPlugin(options, apply) {
|
|
|
10261
10265
|
options.hmrCssModuleVersions?.clear();
|
|
10262
10266
|
},
|
|
10263
10267
|
async buildStart() {
|
|
10268
|
+
if (shouldSkipSourceCandidateState()) return;
|
|
10264
10269
|
await options.hmrTimingRecorder.measure("sourceCandidates.buildStart", options.prepareTailwindGeneration, { emit: false });
|
|
10265
10270
|
},
|
|
10266
|
-
generateBundle
|
|
10271
|
+
async generateBundle(...args) {
|
|
10272
|
+
if (shouldSkipSourceCandidateState()) return;
|
|
10273
|
+
return options.preGenerateBundleHook?.apply(this, args);
|
|
10274
|
+
}
|
|
10267
10275
|
};
|
|
10268
10276
|
}
|
|
10269
10277
|
//#endregion
|
|
@@ -10857,6 +10865,13 @@ function createViteFrameworkPlugins$1(options = {}, frameworkBranch) {
|
|
|
10857
10865
|
const getSourceCandidateSourcesForEntries = (entries, options2) => sourceCandidateCollector.sourcesForEntries(entries, options2);
|
|
10858
10866
|
const isWatchBuild = () => resolvedConfig?.command === "build" && resolvedConfig.build.watch != null;
|
|
10859
10867
|
const isWatchLikeBuild = () => isWatchBuild() || resolvedConfig?.command === "serve" || node_process.default.env["WEAPP_TW_WATCH_REGRESSION"] === "1" || node_process.default.env["WEAPP_TW_HMR_TIMING"] === "1";
|
|
10868
|
+
const shouldSkipSourceCandidateState = () => shouldSkipGenericWebProductionSourceCandidates({
|
|
10869
|
+
command: resolvedConfig?.command,
|
|
10870
|
+
frameworkName: frameworkBranch.frameworkName,
|
|
10871
|
+
isWebGeneratorTarget: resolveCurrentGeneratorBranch().isWeb,
|
|
10872
|
+
requiresSourceCandidateState: require_v4_generation_core.isCssSourceTraceEnabled(opts),
|
|
10873
|
+
watch: resolvedConfig?.build?.watch
|
|
10874
|
+
});
|
|
10860
10875
|
const isCurrentWebLikeStylePlatform = () => {
|
|
10861
10876
|
const platform = resolveViteStylePlatform();
|
|
10862
10877
|
return platform ? isWebOrNativeAppPlatform(platform) : resolveCurrentGeneratorBranch().isWeb;
|
|
@@ -11310,7 +11325,8 @@ ${tracedCss}`;
|
|
|
11310
11325
|
tailwindRootCssModuleIds,
|
|
11311
11326
|
transformEarlyMiniProgramCss,
|
|
11312
11327
|
viteProcessedCssSourceFiles: processedCssRegistry.sourceFiles,
|
|
11313
|
-
collectSourceCandidates: capability.sourceCandidates
|
|
11328
|
+
collectSourceCandidates: capability.sourceCandidates,
|
|
11329
|
+
shouldSkipSourceCandidateState
|
|
11314
11330
|
}, createGenericWebProductionSourceCandidatesApply({
|
|
11315
11331
|
frameworkName: frameworkBranch.frameworkName,
|
|
11316
11332
|
getIsWebGeneratorTarget: () => resolveCurrentGeneratorBranch().isWeb,
|
|
@@ -11813,10 +11829,18 @@ function invokeHook(plugin, hookName, thisArg, args) {
|
|
|
11813
11829
|
if (typeof hook === "function") return hook.apply(thisArg, args);
|
|
11814
11830
|
if (hook && typeof hook === "object" && "handler" in hook && typeof hook.handler === "function") return hook.handler.apply(thisArg, args);
|
|
11815
11831
|
}
|
|
11832
|
+
function emitDeferredRuntimeLogs(opts, profile, rawOptions) {
|
|
11833
|
+
const hasExplicitLogLevel = Object.hasOwn(rawOptions, "logLevel");
|
|
11834
|
+
if (!opts.tailwindRuntime || !Object.hasOwn(opts.tailwindRuntime, "packageInfo")) return;
|
|
11835
|
+
if (profile.isGenericWeb && !hasExplicitLogLevel) return;
|
|
11836
|
+
require_compiler.logTailwindcssTarget(opts.tailwindRuntime, opts.tailwindcssBasedir);
|
|
11837
|
+
require_compiler.logRuntimeTailwindcssVersion(opts.tailwindcssBasedir, opts.tailwindRuntime?.packageInfo?.rootPath, opts.tailwindRuntime?.packageInfo?.version);
|
|
11838
|
+
}
|
|
11816
11839
|
function createDispatcher(options) {
|
|
11817
11840
|
const opts = require_compiler.getCompilerContext({
|
|
11818
11841
|
...options,
|
|
11819
|
-
__internalDeferMissingCssEntriesWarning: true
|
|
11842
|
+
__internalDeferMissingCssEntriesWarning: true,
|
|
11843
|
+
__internalViteDeferRuntimeLogs: true
|
|
11820
11844
|
});
|
|
11821
11845
|
opts.__internalViteRawOptions = options;
|
|
11822
11846
|
opts.__internalViteRawExplicitAppType = typeof options.appType === "string" && options.appType.trim().length > 0;
|
|
@@ -11841,7 +11865,10 @@ function createDispatcher(options) {
|
|
|
11841
11865
|
}[initialFramework];
|
|
11842
11866
|
const initialPlugins = initialFactory(opts);
|
|
11843
11867
|
if (!initialPlugins) return;
|
|
11844
|
-
if (opts.__internalViteRawExplicitTailwindcssBasedir && initialFramework !== "generic")
|
|
11868
|
+
if (opts.__internalViteRawExplicitTailwindcssBasedir && initialFramework !== "generic") {
|
|
11869
|
+
emitDeferredRuntimeLogs(opts, { isGenericWeb: false }, options);
|
|
11870
|
+
return initialPlugins;
|
|
11871
|
+
}
|
|
11845
11872
|
const knownFrameworkPlugins = [
|
|
11846
11873
|
{
|
|
11847
11874
|
name: "weapp-tailwindcss:taro-alipay-browserslist-asset",
|
|
@@ -11898,9 +11925,10 @@ function createDispatcher(options) {
|
|
|
11898
11925
|
cssOptions: options.cssOptions ?? opts.cssOptions,
|
|
11899
11926
|
uniAppX: options.uniAppX ?? opts.uniAppX
|
|
11900
11927
|
}, config, environmentName);
|
|
11928
|
+
emitDeferredRuntimeLogs(opts, profile, options);
|
|
11901
11929
|
if (profile.appType && profile.appType !== initialProfile.appType && !options.appType && effectiveAppType === void 0) {
|
|
11902
11930
|
opts.appType = profile.appType;
|
|
11903
|
-
_weapp_tailwindcss_logger.logger.
|
|
11931
|
+
_weapp_tailwindcss_logger.logger.debug("根据 Vite 项目根目录自动推断 appType -> %s", profile.appType);
|
|
11904
11932
|
}
|
|
11905
11933
|
if (profile.isGenericWeb && !opts.generator && opts.generator !== false && !options.platform && !options.cssOptions?.platform && !node_process.default.env["UNI_PLATFORM"] && !node_process.default.env["UNI_UTS_PLATFORM"]) opts.generator = { target: "web" };
|
|
11906
11934
|
const capability = opts.__internalViteCapabilityProfile;
|
|
@@ -3,10 +3,10 @@ import { $ as hasTailwindSourceDirectives, B as stripMiniProgramCssSpecificityPl
|
|
|
3
3
|
import { t as omitUndefined } from "./object-B-8IHefx.js";
|
|
4
4
|
import { a as findTailwindConfig, f as resolveSourceScanEntries, g as resolveTailwindV4EntriesFromCssCached, i as resolveUniAppXOptions, l as getRuntimeClassSetSignature, m as resolveTailwindV4CssDependencies, p as discoverTailwindV4CssEntries, r as isUniAppXEnabled } from "./tailwindcss-9xmoCkaR.js";
|
|
5
5
|
import "./utils-MVwpU07P.js";
|
|
6
|
-
import { $ as AssetEmissionPlan, A as hasEmptyAtRuleBlockCandidate, C as isSourceStyleRequest, D as parseBundlerGeneratedCssMarkerBlocks, E as hasBundlerGeneratedCssMarker, F as processCachedTask, G as createRuntimeCompilationBuildState, H as finalizeCompilerShadowRun, I as createRuntimeClassSetManager, J as updateRuntimeCompilationBuildState, M as createCssSourceTraceCacheSignature, N as createCssTokenSourceMap, O as stripBundlerGeneratedCssMarkers, P as isCssSourceTraceEnabled, S as isSourcePreprocessorRequest, T as createBundlerGeneratedCssMarker, U as buildRuntimeCompilationSnapshot, X as disposeCompilerOwner, Y as createRuntimeAffectingSourceSignature, Z as beginCompilerShadowRun, a as extractMarkedUserLayerComponentsCss, ct as createSourceCandidateEligibilityMatcher, d as runWithConcurrency, f as normalizeMiniProgramGeneratorCssSource, g as captureFrameworkPostcssOptions, i as validateCandidatesByGenerator, it as createSourceCandidateCollector, j as annotateCssSourceTrace, k as finalizeMiniProgramCssStructure, m as scoreTailwindV4CssSourceFileMatch, nt as recordCompilationDependencyChanges, o as mergeMarkedUserLayerComponentsCss, ot as isSourceCandidateRequest, p as normalizeMiniProgramImportShell, r as generateTailwindV4Css, rt as createCompilationDependencyChanges, s as collectGeneratedRawSourceCandidatesFromCss, st as extractCandidatesFromSource, t as createHmrTimingRecorder, w as stripRequestQuery, z as isPureLocalCssImportWrapper } from "./hmr-timing-
|
|
6
|
+
import { $ as AssetEmissionPlan, A as hasEmptyAtRuleBlockCandidate, C as isSourceStyleRequest, D as parseBundlerGeneratedCssMarkerBlocks, E as hasBundlerGeneratedCssMarker, F as processCachedTask, G as createRuntimeCompilationBuildState, H as finalizeCompilerShadowRun, I as createRuntimeClassSetManager, J as updateRuntimeCompilationBuildState, M as createCssSourceTraceCacheSignature, N as createCssTokenSourceMap, O as stripBundlerGeneratedCssMarkers, P as isCssSourceTraceEnabled, S as isSourcePreprocessorRequest, T as createBundlerGeneratedCssMarker, U as buildRuntimeCompilationSnapshot, X as disposeCompilerOwner, Y as createRuntimeAffectingSourceSignature, Z as beginCompilerShadowRun, a as extractMarkedUserLayerComponentsCss, ct as createSourceCandidateEligibilityMatcher, d as runWithConcurrency, f as normalizeMiniProgramGeneratorCssSource, g as captureFrameworkPostcssOptions, i as validateCandidatesByGenerator, it as createSourceCandidateCollector, j as annotateCssSourceTrace, k as finalizeMiniProgramCssStructure, m as scoreTailwindV4CssSourceFileMatch, nt as recordCompilationDependencyChanges, o as mergeMarkedUserLayerComponentsCss, ot as isSourceCandidateRequest, p as normalizeMiniProgramImportShell, r as generateTailwindV4Css, rt as createCompilationDependencyChanges, s as collectGeneratedRawSourceCandidatesFromCss, st as extractCandidatesFromSource, t as createHmrTimingRecorder, w as stripRequestQuery, z as isPureLocalCssImportWrapper } from "./hmr-timing-CqDfjvqE.js";
|
|
7
7
|
import { m as createDebug, p as replaceWxml } from "./wxml-CvKyV69S.js";
|
|
8
|
-
import { c as toCustomAttributesEntities, f as
|
|
9
|
-
import { _ as createBuiltinViteStyleInjectorPlugins, a as createCandidateSignature, c as getSnapshotHash, d as classifyRuntimeEntry, f as resolvePackageDir, g as toAbsoluteOutputPath, h as resolveOutputSpecifier, i as createScopedGeneratorSourceTraceMap, l as hasRuntimeAffectingSourceChanges, m as normalizeOutputPathKey, n as createScopedGeneratorCandidateSignature, o as createJsHashSalt, p as resolvePluginDisabledState, r as createScopedGeneratorRuntime, s as createLinkedImpactSignature, t as createSourceCandidateScanSignature, u as summarizeStringDiff, x as resolveViteFrameworkProfile, y as viteStyleInjectorDelegates } from "./source-candidate-scan-signature-
|
|
8
|
+
import { c as toCustomAttributesEntities, d as collectRuntimeClassSet, f as createTailwindRuntimeReadyPromise, h as normalizeFrameworkStylePlatform, l as logTailwindcssTarget, m as refreshTailwindRuntimeState, n as getCompilerContext, o as vitePluginName, r as normalizeStyleHandlerMajorVersion, s as shouldSkipJsTransform, u as logRuntimeTailwindcssVersion } from "./compiler-BgMj2E5l.js";
|
|
9
|
+
import { _ as createBuiltinViteStyleInjectorPlugins, a as createCandidateSignature, c as getSnapshotHash, d as classifyRuntimeEntry, f as resolvePackageDir, g as toAbsoluteOutputPath, h as resolveOutputSpecifier, i as createScopedGeneratorSourceTraceMap, l as hasRuntimeAffectingSourceChanges, m as normalizeOutputPathKey, n as createScopedGeneratorCandidateSignature, o as createJsHashSalt, p as resolvePluginDisabledState, r as createScopedGeneratorRuntime, s as createLinkedImpactSignature, t as createSourceCandidateScanSignature, u as summarizeStringDiff, x as resolveViteFrameworkProfile, y as viteStyleInjectorDelegates } from "./source-candidate-scan-signature-BVScymyM.js";
|
|
10
10
|
import { n as shouldEnableComponentLocalStyle, r as shouldEnablePageLocalStyle, t as normalizeUniAppXLocalStyleId } from "./local-style-matcher-DsiI2wIc.js";
|
|
11
11
|
import { t as logger$1 } from "./logger-BNzxZbZj.js";
|
|
12
12
|
import fs, { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
@@ -9965,7 +9965,7 @@ function createFrameworkPostPlugin(options) {
|
|
|
9965
9965
|
if (nextAppType && options.opts.appType !== nextAppType) {
|
|
9966
9966
|
const previousAppType = options.opts.appType;
|
|
9967
9967
|
options.opts.appType = nextAppType;
|
|
9968
|
-
logger.
|
|
9968
|
+
logger.debug("根据 Vite 项目根目录自动推断 appType -> %s", nextAppType);
|
|
9969
9969
|
options.debug("align appType with vite root: %s -> %s", previousAppType ?? "undefined", nextAppType);
|
|
9970
9970
|
shouldRefreshRuntime = true;
|
|
9971
9971
|
}
|
|
@@ -9976,7 +9976,7 @@ function createFrameworkPostPlugin(options) {
|
|
|
9976
9976
|
...generator,
|
|
9977
9977
|
target: "web"
|
|
9978
9978
|
};
|
|
9979
|
-
logger.
|
|
9979
|
+
logger.debug("Generic Vite 项目未指定目标,自动使用 generator.target -> web");
|
|
9980
9980
|
options.debug("default generic vite generator target to web after configResolved");
|
|
9981
9981
|
shouldRefreshRuntime = true;
|
|
9982
9982
|
}
|
|
@@ -10084,6 +10084,7 @@ function isNuxtPageHotModule(id) {
|
|
|
10084
10084
|
//#endregion
|
|
10085
10085
|
//#region src/bundlers/vite/shared/framework-source-candidates-plugin.ts
|
|
10086
10086
|
function createFrameworkSourceCandidatesPlugin(options, apply) {
|
|
10087
|
+
const shouldSkipSourceCandidateState = () => options.shouldSkipSourceCandidateState?.() === true;
|
|
10087
10088
|
const hasDifferentHotModules = (left, right) => left.length !== right.length || left.some((mod, index) => mod !== right[index]);
|
|
10088
10089
|
const hasTemplateHotSourceModule = (modules) => modules.some((mod) => {
|
|
10089
10090
|
const request = mod.url ?? mod.id;
|
|
@@ -10117,7 +10118,7 @@ function createFrameworkSourceCandidatesPlugin(options, apply) {
|
|
|
10117
10118
|
apply,
|
|
10118
10119
|
enforce: "pre",
|
|
10119
10120
|
async load(id) {
|
|
10120
|
-
if (!options.shouldOwnTailwindGeneration || options.isWebOrNativeAppPlatform(options.resolveViteStylePlatform()) || !isCSSRequest(id) || !shouldCollectTransformedSourceCandidates(id)) return;
|
|
10121
|
+
if (!options.shouldOwnTailwindGeneration || shouldSkipSourceCandidateState() || options.isWebOrNativeAppPlatform(options.resolveViteStylePlatform()) || !isCSSRequest(id) || !shouldCollectTransformedSourceCandidates(id)) return;
|
|
10121
10122
|
const file = cleanUrl$1(id);
|
|
10122
10123
|
const rawCode = await readFile(file, "utf8").catch(() => void 0);
|
|
10123
10124
|
if (typeof rawCode !== "string") return;
|
|
@@ -10130,6 +10131,7 @@ function createFrameworkSourceCandidatesPlugin(options, apply) {
|
|
|
10130
10131
|
transform: {
|
|
10131
10132
|
order: "pre",
|
|
10132
10133
|
async handler(code, id) {
|
|
10134
|
+
if (shouldSkipSourceCandidateState()) return;
|
|
10133
10135
|
if (options.hasUserCssLayerBlocks(code)) options.rememberOriginalCssLayerSource(id, code);
|
|
10134
10136
|
let transformedCode = code;
|
|
10135
10137
|
if (options.shouldOwnTailwindGeneration && !options.resolveCurrentGeneratorBranch().isWeb && isCSSRequest(id)) transformedCode = options.transformEarlyMiniProgramCss(code);
|
|
@@ -10138,7 +10140,7 @@ function createFrameworkSourceCandidatesPlugin(options, apply) {
|
|
|
10138
10140
|
options.cssMemory.rememberKnownSfcSource(id, transformedCode);
|
|
10139
10141
|
if (isCSSRequest(id) && hasTailwindRootDirectives(transformedCode, { importFallback: options.resolveCurrentGeneratorOptions().importFallback })) options.rememberTailwindRootCssModule(id);
|
|
10140
10142
|
}
|
|
10141
|
-
if (!options.shouldOwnTailwindGeneration || options.collectSourceCandidates === false || !isSourceCandidateRequest(id) || !shouldCollectTransformedSourceCandidates(id)) return shouldReturnTransformedCode ? {
|
|
10143
|
+
if (!options.shouldOwnTailwindGeneration || shouldSkipSourceCandidateState() || options.collectSourceCandidates === false || !isSourceCandidateRequest(id) || !shouldCollectTransformedSourceCandidates(id)) return shouldReturnTransformedCode ? {
|
|
10142
10144
|
code: transformedCode,
|
|
10143
10145
|
map: null
|
|
10144
10146
|
} : void 0;
|
|
@@ -10163,6 +10165,7 @@ function createFrameworkSourceCandidatesPlugin(options, apply) {
|
|
|
10163
10165
|
}
|
|
10164
10166
|
},
|
|
10165
10167
|
async watchChange(id, change) {
|
|
10168
|
+
if (shouldSkipSourceCandidateState()) return;
|
|
10166
10169
|
recordCompilationDependencyChanges(options.runtimeState, createCompilationDependencyChanges([path.resolve(cleanUrl$1(id))]));
|
|
10167
10170
|
await options.hmrTimingRecorder.measure("sourceCandidates.watchChange", async () => {
|
|
10168
10171
|
if (options.shouldOwnTailwindGeneration && options.collectSourceCandidates !== false && isSourceCandidateRequest(id)) options.invalidateRecordedGeneratorCandidates();
|
|
@@ -10200,6 +10203,7 @@ function createFrameworkSourceCandidatesPlugin(options, apply) {
|
|
|
10200
10203
|
handleHotUpdate: {
|
|
10201
10204
|
order: "post",
|
|
10202
10205
|
async handler(ctx) {
|
|
10206
|
+
if (shouldSkipSourceCandidateState()) return;
|
|
10203
10207
|
recordCompilationDependencyChanges(options.runtimeState, createCompilationDependencyChanges([path.resolve(cleanUrl$1(ctx.file))]));
|
|
10204
10208
|
return options.hmrTimingRecorder.measure("sourceCandidates.handleHotUpdate", async () => {
|
|
10205
10209
|
const isSourceCandidateHotUpdate = options.shouldOwnTailwindGeneration && options.collectSourceCandidates !== false && isSourceCandidateRequest(ctx.file);
|
|
@@ -10282,9 +10286,13 @@ function createFrameworkSourceCandidatesPlugin(options, apply) {
|
|
|
10282
10286
|
options.hmrCssModuleVersions?.clear();
|
|
10283
10287
|
},
|
|
10284
10288
|
async buildStart() {
|
|
10289
|
+
if (shouldSkipSourceCandidateState()) return;
|
|
10285
10290
|
await options.hmrTimingRecorder.measure("sourceCandidates.buildStart", options.prepareTailwindGeneration, { emit: false });
|
|
10286
10291
|
},
|
|
10287
|
-
generateBundle
|
|
10292
|
+
async generateBundle(...args) {
|
|
10293
|
+
if (shouldSkipSourceCandidateState()) return;
|
|
10294
|
+
return options.preGenerateBundleHook?.apply(this, args);
|
|
10295
|
+
}
|
|
10288
10296
|
};
|
|
10289
10297
|
}
|
|
10290
10298
|
//#endregion
|
|
@@ -10878,6 +10886,13 @@ function createViteFrameworkPlugins$1(options = {}, frameworkBranch) {
|
|
|
10878
10886
|
const getSourceCandidateSourcesForEntries = (entries, options2) => sourceCandidateCollector.sourcesForEntries(entries, options2);
|
|
10879
10887
|
const isWatchBuild = () => resolvedConfig?.command === "build" && resolvedConfig.build.watch != null;
|
|
10880
10888
|
const isWatchLikeBuild = () => isWatchBuild() || resolvedConfig?.command === "serve" || process$1.env["WEAPP_TW_WATCH_REGRESSION"] === "1" || process$1.env["WEAPP_TW_HMR_TIMING"] === "1";
|
|
10889
|
+
const shouldSkipSourceCandidateState = () => shouldSkipGenericWebProductionSourceCandidates({
|
|
10890
|
+
command: resolvedConfig?.command,
|
|
10891
|
+
frameworkName: frameworkBranch.frameworkName,
|
|
10892
|
+
isWebGeneratorTarget: resolveCurrentGeneratorBranch().isWeb,
|
|
10893
|
+
requiresSourceCandidateState: isCssSourceTraceEnabled(opts),
|
|
10894
|
+
watch: resolvedConfig?.build?.watch
|
|
10895
|
+
});
|
|
10881
10896
|
const isCurrentWebLikeStylePlatform = () => {
|
|
10882
10897
|
const platform = resolveViteStylePlatform();
|
|
10883
10898
|
return platform ? isWebOrNativeAppPlatform(platform) : resolveCurrentGeneratorBranch().isWeb;
|
|
@@ -11331,7 +11346,8 @@ ${tracedCss}`;
|
|
|
11331
11346
|
tailwindRootCssModuleIds,
|
|
11332
11347
|
transformEarlyMiniProgramCss,
|
|
11333
11348
|
viteProcessedCssSourceFiles: processedCssRegistry.sourceFiles,
|
|
11334
|
-
collectSourceCandidates: capability.sourceCandidates
|
|
11349
|
+
collectSourceCandidates: capability.sourceCandidates,
|
|
11350
|
+
shouldSkipSourceCandidateState
|
|
11335
11351
|
}, createGenericWebProductionSourceCandidatesApply({
|
|
11336
11352
|
frameworkName: frameworkBranch.frameworkName,
|
|
11337
11353
|
getIsWebGeneratorTarget: () => resolveCurrentGeneratorBranch().isWeb,
|
|
@@ -11834,10 +11850,18 @@ function invokeHook(plugin, hookName, thisArg, args) {
|
|
|
11834
11850
|
if (typeof hook === "function") return hook.apply(thisArg, args);
|
|
11835
11851
|
if (hook && typeof hook === "object" && "handler" in hook && typeof hook.handler === "function") return hook.handler.apply(thisArg, args);
|
|
11836
11852
|
}
|
|
11853
|
+
function emitDeferredRuntimeLogs(opts, profile, rawOptions) {
|
|
11854
|
+
const hasExplicitLogLevel = Object.hasOwn(rawOptions, "logLevel");
|
|
11855
|
+
if (!opts.tailwindRuntime || !Object.hasOwn(opts.tailwindRuntime, "packageInfo")) return;
|
|
11856
|
+
if (profile.isGenericWeb && !hasExplicitLogLevel) return;
|
|
11857
|
+
logTailwindcssTarget(opts.tailwindRuntime, opts.tailwindcssBasedir);
|
|
11858
|
+
logRuntimeTailwindcssVersion(opts.tailwindcssBasedir, opts.tailwindRuntime?.packageInfo?.rootPath, opts.tailwindRuntime?.packageInfo?.version);
|
|
11859
|
+
}
|
|
11837
11860
|
function createDispatcher(options) {
|
|
11838
11861
|
const opts = getCompilerContext({
|
|
11839
11862
|
...options,
|
|
11840
|
-
__internalDeferMissingCssEntriesWarning: true
|
|
11863
|
+
__internalDeferMissingCssEntriesWarning: true,
|
|
11864
|
+
__internalViteDeferRuntimeLogs: true
|
|
11841
11865
|
});
|
|
11842
11866
|
opts.__internalViteRawOptions = options;
|
|
11843
11867
|
opts.__internalViteRawExplicitAppType = typeof options.appType === "string" && options.appType.trim().length > 0;
|
|
@@ -11862,7 +11886,10 @@ function createDispatcher(options) {
|
|
|
11862
11886
|
}[initialFramework];
|
|
11863
11887
|
const initialPlugins = initialFactory(opts);
|
|
11864
11888
|
if (!initialPlugins) return;
|
|
11865
|
-
if (opts.__internalViteRawExplicitTailwindcssBasedir && initialFramework !== "generic")
|
|
11889
|
+
if (opts.__internalViteRawExplicitTailwindcssBasedir && initialFramework !== "generic") {
|
|
11890
|
+
emitDeferredRuntimeLogs(opts, { isGenericWeb: false }, options);
|
|
11891
|
+
return initialPlugins;
|
|
11892
|
+
}
|
|
11866
11893
|
const knownFrameworkPlugins = [
|
|
11867
11894
|
{
|
|
11868
11895
|
name: "weapp-tailwindcss:taro-alipay-browserslist-asset",
|
|
@@ -11919,9 +11946,10 @@ function createDispatcher(options) {
|
|
|
11919
11946
|
cssOptions: options.cssOptions ?? opts.cssOptions,
|
|
11920
11947
|
uniAppX: options.uniAppX ?? opts.uniAppX
|
|
11921
11948
|
}, config, environmentName);
|
|
11949
|
+
emitDeferredRuntimeLogs(opts, profile, options);
|
|
11922
11950
|
if (profile.appType && profile.appType !== initialProfile.appType && !options.appType && effectiveAppType === void 0) {
|
|
11923
11951
|
opts.appType = profile.appType;
|
|
11924
|
-
logger.
|
|
11952
|
+
logger.debug("根据 Vite 项目根目录自动推断 appType -> %s", profile.appType);
|
|
11925
11953
|
}
|
|
11926
11954
|
if (profile.isGenericWeb && !opts.generator && opts.generator !== false && !options.platform && !options.cssOptions?.platform && !process$1.env["UNI_PLATFORM"] && !process$1.env["UNI_UTS_PLATFORM"]) opts.generator = { target: "web" };
|
|
11927
11955
|
const capability = opts.__internalViteCapabilityProfile;
|
package/dist/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_vite = require("./vite-
|
|
2
|
+
const require_vite = require("./vite-D-gmOkPN.cjs");
|
|
3
3
|
exports.WeappTailwindcss = require_vite.WeappTailwindcss;
|
|
4
4
|
exports.weappTailwindcss = require_vite.WeappTailwindcss;
|
package/dist/vite.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as WeappTailwindcss } from "./vite-
|
|
1
|
+
import { t as WeappTailwindcss } from "./vite-D3aCtpmv.js";
|
|
2
2
|
export { WeappTailwindcss, WeappTailwindcss as weappTailwindcss };
|
|
@@ -5,10 +5,10 @@ Object.defineProperties(exports, {
|
|
|
5
5
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
6
6
|
const require_generator = require("./generator-WlhrtNa3.cjs");
|
|
7
7
|
const require_tailwindcss = require("./tailwindcss-D3jltF7M.cjs");
|
|
8
|
-
const require_v4_generation_core = require("./v4-generation-core-
|
|
9
|
-
const require_compiler = require("./compiler-
|
|
8
|
+
const require_v4_generation_core = require("./v4-generation-core-CPKNwzjz.cjs");
|
|
9
|
+
const require_compiler = require("./compiler-B-m9VGqj.cjs");
|
|
10
10
|
const require_css_imports = require("./css-imports-BFMU7Hpd.cjs");
|
|
11
|
-
const require_pipeline_helpers = require("./pipeline-helpers-
|
|
11
|
+
const require_pipeline_helpers = require("./pipeline-helpers-DxPFMGxz.cjs");
|
|
12
12
|
const require_runtime_registry = require("./runtime-registry-BlIjpImP.cjs");
|
|
13
13
|
const require_watch_dependencies = require("./watch-dependencies-DLZDrWdH.cjs");
|
|
14
14
|
let node_path = require("node:path");
|
|
@@ -2,11 +2,11 @@ import { $ as hasTailwindSourceDirectives, B as stripMiniProgramCssSpecificityPl
|
|
|
2
2
|
import { n as _defineProperty } from "./object-B-8IHefx.js";
|
|
3
3
|
import { f as resolveSourceScanEntries, g as resolveTailwindV4EntriesFromCssCached, l as getRuntimeClassSetSignature } from "./tailwindcss-9xmoCkaR.js";
|
|
4
4
|
import { r as getGroupedEntries } from "./utils-MVwpU07P.js";
|
|
5
|
-
import { $ as AssetEmissionPlan, C as isSourceStyleRequest, E as hasBundlerGeneratedCssMarker, F as processCachedTask, G as createRuntimeCompilationBuildState, H as finalizeCompilerShadowRun, I as createRuntimeClassSetManager, J as updateRuntimeCompilationBuildState, L as collectStrictEscapedRuntimeCandidates, M as createCssSourceTraceCacheSignature, N as createCssTokenSourceMap, O as stripBundlerGeneratedCssMarkers, P as isCssSourceTraceEnabled, R as createEscapeFragments, U as buildRuntimeCompilationSnapshot, W as createRuntimeCompilationAffectingSignature, X as disposeCompilerOwner, Y as createRuntimeAffectingSourceSignature, Z as beginCompilerShadowRun, _ as captureResolvedFrameworkPostcssOptions, at as createSourceCandidateStore, c as collectRawSourceClassSelectors, et as getCompilationScopeDependencyRevision, h as removeGeneratedSelectorCompatCss, j as annotateCssSourceTrace, k as finalizeMiniProgramCssStructure, l as pushConcurrentTaskFactories, lt as resolveSourceCandidateScanFiles, m as scoreTailwindV4CssSourceFileMatch, n as emitHmrTiming, nt as recordCompilationDependencyChanges, ot as isSourceCandidateRequest, q as resetRuntimeCompilationBuildState, r as generateTailwindV4Css, rt as createCompilationDependencyChanges, u as resolveTaskConcurrency, v as collectFrameworkPostcssOptionsFromLoaderEntries, w as stripRequestQuery, x as hasMiniProgramTailwindV4PreflightReset, y as createCssSourceOrderAppend, z as isPureLocalCssImportWrapper } from "./hmr-timing-
|
|
5
|
+
import { $ as AssetEmissionPlan, C as isSourceStyleRequest, E as hasBundlerGeneratedCssMarker, F as processCachedTask, G as createRuntimeCompilationBuildState, H as finalizeCompilerShadowRun, I as createRuntimeClassSetManager, J as updateRuntimeCompilationBuildState, L as collectStrictEscapedRuntimeCandidates, M as createCssSourceTraceCacheSignature, N as createCssTokenSourceMap, O as stripBundlerGeneratedCssMarkers, P as isCssSourceTraceEnabled, R as createEscapeFragments, U as buildRuntimeCompilationSnapshot, W as createRuntimeCompilationAffectingSignature, X as disposeCompilerOwner, Y as createRuntimeAffectingSourceSignature, Z as beginCompilerShadowRun, _ as captureResolvedFrameworkPostcssOptions, at as createSourceCandidateStore, c as collectRawSourceClassSelectors, et as getCompilationScopeDependencyRevision, h as removeGeneratedSelectorCompatCss, j as annotateCssSourceTrace, k as finalizeMiniProgramCssStructure, l as pushConcurrentTaskFactories, lt as resolveSourceCandidateScanFiles, m as scoreTailwindV4CssSourceFileMatch, n as emitHmrTiming, nt as recordCompilationDependencyChanges, ot as isSourceCandidateRequest, q as resetRuntimeCompilationBuildState, r as generateTailwindV4Css, rt as createCompilationDependencyChanges, u as resolveTaskConcurrency, v as collectFrameworkPostcssOptionsFromLoaderEntries, w as stripRequestQuery, x as hasMiniProgramTailwindV4PreflightReset, y as createCssSourceOrderAppend, z as isPureLocalCssImportWrapper } from "./hmr-timing-CqDfjvqE.js";
|
|
6
6
|
import { _ as md5Hash, m as createDebug } from "./wxml-CvKyV69S.js";
|
|
7
|
-
import { a as pluginName,
|
|
7
|
+
import { a as pluginName, f as createTailwindRuntimeReadyPromise, i as resolveStyleOptionsFromContext, m as refreshTailwindRuntimeState, n as getCompilerContext, p as ensureRuntimeClassSet, r as normalizeStyleHandlerMajorVersion, s as shouldSkipJsTransform } from "./compiler-BgMj2E5l.js";
|
|
8
8
|
import { getDefaultCssPreflight } from "./defaults.js";
|
|
9
|
-
import { S as resolveWebpackFrameworkProfile, a as createCandidateSignature, b as webpackStyleInjectorDelegates, d as classifyRuntimeEntry, f as resolvePackageDir, g as toAbsoluteOutputPath, h as resolveOutputSpecifier, p as resolvePluginDisabledState, r as createScopedGeneratorRuntime, t as createSourceCandidateScanSignature, v as createBuiltinWebpackStyleInjectorPlugin } from "./source-candidate-scan-signature-
|
|
9
|
+
import { S as resolveWebpackFrameworkProfile, a as createCandidateSignature, b as webpackStyleInjectorDelegates, d as classifyRuntimeEntry, f as resolvePackageDir, g as toAbsoluteOutputPath, h as resolveOutputSpecifier, p as resolvePluginDisabledState, r as createScopedGeneratorRuntime, t as createSourceCandidateScanSignature, v as createBuiltinWebpackStyleInjectorPlugin } from "./source-candidate-scan-signature-BVScymyM.js";
|
|
10
10
|
import Module, { createRequire } from "node:module";
|
|
11
11
|
import fs from "node:fs";
|
|
12
12
|
import path from "node:path";
|
|
@@ -3,12 +3,12 @@ const require_generator = require("./generator-WlhrtNa3.cjs");
|
|
|
3
3
|
const require_object = require("./object-DbHtAXRk.cjs");
|
|
4
4
|
const require_tailwindcss = require("./tailwindcss-D3jltF7M.cjs");
|
|
5
5
|
const require_utils = require("./utils-CuKLf1Zv.cjs");
|
|
6
|
-
const require_v4_generation_core = require("./v4-generation-core-
|
|
6
|
+
const require_v4_generation_core = require("./v4-generation-core-CPKNwzjz.cjs");
|
|
7
7
|
const require_wxml = require("./wxml-o-CUulAM.cjs");
|
|
8
|
-
const require_compiler = require("./compiler-
|
|
9
|
-
const require_hmr_timing = require("./hmr-timing-
|
|
10
|
-
const require_source_candidate_scan_signature = require("./source-candidate-scan-signature-
|
|
11
|
-
const require_pipeline_helpers = require("./pipeline-helpers-
|
|
8
|
+
const require_compiler = require("./compiler-B-m9VGqj.cjs");
|
|
9
|
+
const require_hmr_timing = require("./hmr-timing-afnWvy7u.cjs");
|
|
10
|
+
const require_source_candidate_scan_signature = require("./source-candidate-scan-signature-FywFU3Rg.cjs");
|
|
11
|
+
const require_pipeline_helpers = require("./pipeline-helpers-DxPFMGxz.cjs");
|
|
12
12
|
const require_css_loader_runtime = require("./css-loader-runtime-CSv0lKqV.cjs");
|
|
13
13
|
const require_runtime_registry = require("./runtime-registry-BlIjpImP.cjs");
|
|
14
14
|
let node_fs = require("node:fs");
|
package/dist/webpack.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_webpack = require("./webpack-
|
|
2
|
+
const require_webpack = require("./webpack-yAne9ZYu.cjs");
|
|
3
3
|
exports.WeappTailwindcss = require_webpack.WeappTailwindcss;
|
|
4
4
|
exports.weappTailwindcss = require_webpack.WeappTailwindcss;
|
|
5
5
|
exports.weappTailwindcssPackageDir = require_webpack.weappTailwindcssPackageDir;
|
package/dist/webpack.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as weappTailwindcssPackageDir, t as WeappTailwindcss } from "./webpack-
|
|
1
|
+
import { n as weappTailwindcssPackageDir, t as WeappTailwindcss } from "./webpack-B-6a8Z8F.js";
|
|
2
2
|
export { WeappTailwindcss, WeappTailwindcss as weappTailwindcss, weappTailwindcssPackageDir };
|
package/package.json
CHANGED