weapp-tailwindcss 5.1.0 → 5.1.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/bundlers/shared/generator-css/class-selectors.d.ts +2 -0
- package/dist/bundlers/shared/generator-css/generation-helpers.d.ts +6 -14
- package/dist/bundlers/shared/generator-css/source-resolver/metadata.d.ts +1 -1
- package/dist/bundlers/shared/generator-css/source-resolver.d.ts +2 -2
- package/dist/bundlers/shared/generator-css/validate.d.ts +1 -0
- package/dist/bundlers/vite/css-memory.d.ts +6 -0
- package/dist/bundlers/vite/generate-bundle/css-assets.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/css-output-helpers.d.ts +39 -0
- package/dist/bundlers/vite/generate-bundle/env-flags.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/final-css-assets.d.ts +2 -1
- package/dist/bundlers/vite/generate-bundle/finalize.d.ts +2 -0
- package/dist/bundlers/vite/generate-bundle/html-processing.d.ts +26 -0
- package/dist/bundlers/vite/generate-bundle/js-processing.d.ts +4 -0
- package/dist/bundlers/vite/generate-bundle/remembered-css-replay.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/remembered-css.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/root-style-output.d.ts +6 -0
- package/dist/bundlers/vite/generate-bundle/runtime-linked-source-memory.d.ts +25 -0
- package/dist/bundlers/vite/generate-bundle/source-candidate-source.d.ts +9 -0
- package/dist/bundlers/vite/generate-bundle/tailwind-v4-css-source.d.ts +9 -0
- package/dist/bundlers/vite/generate-bundle/transform-filter.d.ts +15 -0
- package/dist/bundlers/vite/generate-bundle/types.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle.d.ts +1 -2
- package/dist/bundlers/vite/plugin-cache.d.ts +15 -0
- package/dist/bundlers/vite/runtime-class-set.d.ts +2 -1
- package/dist/bundlers/webpack/BaseUnifiedPlugin/shared.d.ts +3 -3
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/css-source-resolvers.d.ts +34 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/js-module-graph.d.ts +37 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers.d.ts +199 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/source-candidate-refresh.d.ts +11 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets.d.ts +1 -0
- package/dist/cli.js +15 -8
- package/dist/cli.mjs +15 -8
- package/dist/context/style-options.d.ts +1 -0
- package/dist/{context-BHxLe743.js → context-B6hVF7dr.js} +20 -9
- package/dist/{context-Mbzkek1q.mjs → context-DlpKD7aN.mjs} +15 -10
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/css-macro/index.d.ts +3 -7
- package/dist/{defaults-ZElj1zKc.mjs → defaults-BhE26nSw.mjs} +7 -3
- package/dist/{defaults-CVcKbXBG.js → defaults-CmFBmxsr.js} +7 -3
- package/dist/defaults.d.ts +1 -1
- package/dist/defaults.js +1 -1
- package/dist/defaults.mjs +1 -1
- package/dist/generator/types.d.ts +1 -1
- package/dist/{generator-9rUz4Hcb.js → generator-6oMJtTDO.js} +1 -1
- package/dist/{generator-Dc4qaPmT.mjs → generator-CjzBK7h-.mjs} +1 -1
- package/dist/generator.js +2 -2
- package/dist/generator.mjs +2 -2
- package/dist/{gulp-B_sdP6dx.js → gulp-BtGq6LP9.js} +11 -9
- package/dist/{gulp-uM36oIJs.mjs → gulp-DNU10Vtc.mjs} +11 -9
- package/dist/gulp.js +1 -1
- package/dist/gulp.mjs +1 -1
- package/dist/{hmr-timing-BXMLsF4b.mjs → hmr-timing-B0KuWDjV.mjs} +121 -85
- package/dist/{hmr-timing-CogqkFaF.js → hmr-timing-CegXR9O4.js} +132 -84
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/postcss.js +2 -2
- package/dist/postcss.mjs +2 -2
- package/dist/presets.js +2 -2
- package/dist/presets.mjs +2 -2
- package/dist/{source-candidate-scan-signature-Cvb5z1ha.mjs → source-candidate-scan-signature-B5af2Ahe.mjs} +3 -3
- package/dist/{source-candidate-scan-signature-2ybpptAK.js → source-candidate-scan-signature-BKYb9jxa.js} +3 -3
- package/dist/tailwindcss/runtime-types.d.ts +1 -0
- package/dist/tailwindcss/v4-engine/source.d.ts +5 -14
- package/dist/tailwindcss/v4-engine/types.d.ts +10 -2
- package/dist/{tailwindcss-wyUHrfil.mjs → tailwindcss-B5mRo0-M.mjs} +12 -7
- package/dist/{tailwindcss-DHIYcqXT.js → tailwindcss-dbrbY4cd.js} +11 -6
- package/dist/{transform-tExdt40m.mjs → transform-fRBeuuK-.mjs} +1 -1
- package/dist/{transform-CQVOgmzM.js → transform-vLwZpiTE.js} +1 -1
- package/dist/types/user-defined-options/matcher.d.ts +7 -0
- package/dist/{v4-engine-CF9zt4Cw.mjs → v4-engine-C3qSwQ-e.mjs} +7 -27
- package/dist/{v4-engine-D4ubP7N5.js → v4-engine-ON_oSLfO.js} +5 -31
- package/dist/{vite-CPO83EhA.mjs → vite-CWRooooa.mjs} +730 -393
- package/dist/{vite-CP0ylSxZ.js → vite-w-RkgaTY.js} +730 -392
- package/dist/vite.js +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.js +122 -85
- package/dist/{webpack-BzqhJ8yK.mjs → webpack-8PaV1gG3.mjs} +923 -671
- package/dist/{webpack-Bsek8VhR.js → webpack-CGgBOx9l.js} +923 -671
- package/dist/webpack.js +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SetupWebpackV5ProcessAssetsHookOptions } from './helpers';
|
|
2
|
+
import type { createWebpackSourceCandidateScanCache } from './source-candidate-cache';
|
|
3
|
+
export declare function refreshWebpackSourceCandidates(options: {
|
|
4
|
+
compilerOptions: SetupWebpackV5ProcessAssetsHookOptions['options'];
|
|
5
|
+
debug: SetupWebpackV5ProcessAssetsHookOptions['debug'];
|
|
6
|
+
outputDir: string;
|
|
7
|
+
runtimeState: SetupWebpackV5ProcessAssetsHookOptions['runtimeState'];
|
|
8
|
+
scanCache: ReturnType<typeof createWebpackSourceCandidateScanCache>;
|
|
9
|
+
watchChangedFiles: ReadonlySet<string>;
|
|
10
|
+
watchMode: boolean;
|
|
11
|
+
}): Promise<import("./source-candidate-cache").WebpackSourceCandidateCacheRecord | undefined>;
|
package/dist/cli.js
CHANGED
|
@@ -2201,14 +2201,21 @@ function parseArgs(argv) {
|
|
|
2201
2201
|
const positional = [];
|
|
2202
2202
|
for (let index = 0; index < argv.length; index++) {
|
|
2203
2203
|
const arg = argv[index];
|
|
2204
|
+
if (arg === void 0) continue;
|
|
2204
2205
|
if (!arg.startsWith("--")) {
|
|
2205
2206
|
positional.push(arg);
|
|
2206
2207
|
continue;
|
|
2207
2208
|
}
|
|
2208
2209
|
const [rawKey, inlineValue] = arg.slice(2).split("=", 2);
|
|
2210
|
+
if (!rawKey) continue;
|
|
2209
2211
|
const key = rawKey.replace(/-([a-z])/g, (_, char) => char.toUpperCase());
|
|
2210
2212
|
const next = argv[index + 1];
|
|
2211
|
-
|
|
2213
|
+
let value = true;
|
|
2214
|
+
if (inlineValue !== void 0) value = inlineValue;
|
|
2215
|
+
else if (next !== void 0 && !next.startsWith("-")) {
|
|
2216
|
+
index++;
|
|
2217
|
+
value = next;
|
|
2218
|
+
}
|
|
2212
2219
|
const current = options[key];
|
|
2213
2220
|
if (current === void 0) options[key] = value;
|
|
2214
2221
|
else if (Array.isArray(current)) current.push(String(value));
|
|
@@ -2242,7 +2249,7 @@ async function runStatus(options) {
|
|
|
2242
2249
|
status: "unnecessary",
|
|
2243
2250
|
message: PATCH_COMMAND_OBSOLETE_NOTICE
|
|
2244
2251
|
};
|
|
2245
|
-
if (toBoolean(options
|
|
2252
|
+
if (toBoolean(options["json"], false)) {
|
|
2246
2253
|
_weapp_tailwindcss_logger.logger.log(JSON.stringify(payload, null, 2));
|
|
2247
2254
|
return;
|
|
2248
2255
|
}
|
|
@@ -2252,22 +2259,22 @@ async function runStatus(options) {
|
|
|
2252
2259
|
async function runVscodeEntry(options) {
|
|
2253
2260
|
const resolvedCwd = resolveCliCwd(options.cwd);
|
|
2254
2261
|
const baseDir = resolvedCwd ?? node_process.default.cwd();
|
|
2255
|
-
const cssEntry = readStringOption("css", options
|
|
2262
|
+
const cssEntry = readStringOption("css", options["css"]);
|
|
2256
2263
|
if (!cssEntry) throw new Error("Option \"--css\" is required.");
|
|
2257
2264
|
const result = await generateVscodeIntellisenseEntry({
|
|
2258
2265
|
baseDir,
|
|
2259
2266
|
cssEntry,
|
|
2260
|
-
output: readStringOption("output", options
|
|
2261
|
-
sources: readStringArrayOption("source", options
|
|
2262
|
-
force: toBoolean(options
|
|
2267
|
+
output: readStringOption("output", options["output"]),
|
|
2268
|
+
sources: readStringArrayOption("source", options["source"]),
|
|
2269
|
+
force: toBoolean(options["force"], false)
|
|
2263
2270
|
});
|
|
2264
2271
|
_weapp_tailwindcss_logger.logger.success(`VS Code helper generated -> ${formatOutputPath(result.outputPath, resolvedCwd)}`);
|
|
2265
2272
|
}
|
|
2266
2273
|
async function runDoctor(options) {
|
|
2267
2274
|
const report = createDoctorReport({ cwd: resolveCliCwd(options.cwd) });
|
|
2268
|
-
if (toBoolean(options
|
|
2275
|
+
if (toBoolean(options["json"], false)) _weapp_tailwindcss_logger.logger.log(JSON.stringify(report, null, 2));
|
|
2269
2276
|
else _weapp_tailwindcss_logger.logger.log(formatDoctorReport(report));
|
|
2270
|
-
if (hasDoctorFailure(report, toBoolean(options
|
|
2277
|
+
if (hasDoctorFailure(report, toBoolean(options["strict"], false))) node_process.default.exitCode = 1;
|
|
2271
2278
|
}
|
|
2272
2279
|
async function main() {
|
|
2273
2280
|
const { command, options } = parseArgs(node_process.default.argv.slice(2));
|
package/dist/cli.mjs
CHANGED
|
@@ -2172,14 +2172,21 @@ function parseArgs(argv) {
|
|
|
2172
2172
|
const positional = [];
|
|
2173
2173
|
for (let index = 0; index < argv.length; index++) {
|
|
2174
2174
|
const arg = argv[index];
|
|
2175
|
+
if (arg === void 0) continue;
|
|
2175
2176
|
if (!arg.startsWith("--")) {
|
|
2176
2177
|
positional.push(arg);
|
|
2177
2178
|
continue;
|
|
2178
2179
|
}
|
|
2179
2180
|
const [rawKey, inlineValue] = arg.slice(2).split("=", 2);
|
|
2181
|
+
if (!rawKey) continue;
|
|
2180
2182
|
const key = rawKey.replace(/-([a-z])/g, (_, char) => char.toUpperCase());
|
|
2181
2183
|
const next = argv[index + 1];
|
|
2182
|
-
|
|
2184
|
+
let value = true;
|
|
2185
|
+
if (inlineValue !== void 0) value = inlineValue;
|
|
2186
|
+
else if (next !== void 0 && !next.startsWith("-")) {
|
|
2187
|
+
index++;
|
|
2188
|
+
value = next;
|
|
2189
|
+
}
|
|
2183
2190
|
const current = options[key];
|
|
2184
2191
|
if (current === void 0) options[key] = value;
|
|
2185
2192
|
else if (Array.isArray(current)) current.push(String(value));
|
|
@@ -2213,7 +2220,7 @@ async function runStatus(options) {
|
|
|
2213
2220
|
status: "unnecessary",
|
|
2214
2221
|
message: PATCH_COMMAND_OBSOLETE_NOTICE
|
|
2215
2222
|
};
|
|
2216
|
-
if (toBoolean(options
|
|
2223
|
+
if (toBoolean(options["json"], false)) {
|
|
2217
2224
|
logger.log(JSON.stringify(payload, null, 2));
|
|
2218
2225
|
return;
|
|
2219
2226
|
}
|
|
@@ -2223,22 +2230,22 @@ async function runStatus(options) {
|
|
|
2223
2230
|
async function runVscodeEntry(options) {
|
|
2224
2231
|
const resolvedCwd = resolveCliCwd(options.cwd);
|
|
2225
2232
|
const baseDir = resolvedCwd ?? process.cwd();
|
|
2226
|
-
const cssEntry = readStringOption("css", options
|
|
2233
|
+
const cssEntry = readStringOption("css", options["css"]);
|
|
2227
2234
|
if (!cssEntry) throw new Error("Option \"--css\" is required.");
|
|
2228
2235
|
const result = await generateVscodeIntellisenseEntry({
|
|
2229
2236
|
baseDir,
|
|
2230
2237
|
cssEntry,
|
|
2231
|
-
output: readStringOption("output", options
|
|
2232
|
-
sources: readStringArrayOption("source", options
|
|
2233
|
-
force: toBoolean(options
|
|
2238
|
+
output: readStringOption("output", options["output"]),
|
|
2239
|
+
sources: readStringArrayOption("source", options["source"]),
|
|
2240
|
+
force: toBoolean(options["force"], false)
|
|
2234
2241
|
});
|
|
2235
2242
|
logger.success(`VS Code helper generated -> ${formatOutputPath(result.outputPath, resolvedCwd)}`);
|
|
2236
2243
|
}
|
|
2237
2244
|
async function runDoctor(options) {
|
|
2238
2245
|
const report = createDoctorReport({ cwd: resolveCliCwd(options.cwd) });
|
|
2239
|
-
if (toBoolean(options
|
|
2246
|
+
if (toBoolean(options["json"], false)) logger.log(JSON.stringify(report, null, 2));
|
|
2240
2247
|
else logger.log(formatDoctorReport(report));
|
|
2241
|
-
if (hasDoctorFailure(report, toBoolean(options
|
|
2248
|
+
if (hasDoctorFailure(report, toBoolean(options["strict"], false))) process.exitCode = 1;
|
|
2242
2249
|
}
|
|
2243
2250
|
async function main() {
|
|
2244
2251
|
const { command, options } = parseArgs(process.argv.slice(2));
|
|
@@ -3,4 +3,5 @@ import type { InternalUserDefinedOptions } from '../types';
|
|
|
3
3
|
export type ResolvedStyleOptions = Partial<IStyleHandlerOptions> & {
|
|
4
4
|
appType?: InternalUserDefinedOptions['appType'] | undefined;
|
|
5
5
|
};
|
|
6
|
+
export declare function normalizeStyleHandlerMajorVersion(majorVersion: number | undefined): 4 | undefined;
|
|
6
7
|
export declare function resolveStyleOptionsFromContext(ctx: InternalUserDefinedOptions, tailwindcssMajorVersion?: number): ResolvedStyleOptions;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-emK7D4bc.js");
|
|
2
|
-
const require_v4_engine = require("./v4-engine-
|
|
3
|
-
const require_generator = require("./generator-
|
|
2
|
+
const require_v4_engine = require("./v4-engine-ON_oSLfO.js");
|
|
3
|
+
const require_generator = require("./generator-6oMJtTDO.js");
|
|
4
4
|
require("./utils-BCa37Wqj.js");
|
|
5
|
-
const require_defaults = require("./defaults-
|
|
6
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
5
|
+
const require_defaults = require("./defaults-CmFBmxsr.js");
|
|
6
|
+
const require_tailwindcss = require("./tailwindcss-dbrbY4cd.js");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_chunk.__toESM(node_path);
|
|
9
9
|
let node_process = require("node:process");
|
|
@@ -241,12 +241,14 @@ function tryGetRuntimeClassSetSync(tailwindRuntime) {
|
|
|
241
241
|
async function collectTailwindV4GeneratorClassSet(tailwindRuntime) {
|
|
242
242
|
if (typeof tailwindRuntime.collectContentTokens !== "function") return;
|
|
243
243
|
try {
|
|
244
|
-
const
|
|
244
|
+
const source = await require_v4_engine.resolveTailwindV4SourceFromRuntime(tailwindRuntime);
|
|
245
|
+
const generated = await require_v4_engine.createTailwindV4Engine(source).generate({
|
|
245
246
|
scanSources: true,
|
|
246
247
|
target: "web"
|
|
247
248
|
});
|
|
248
|
-
|
|
249
|
-
|
|
249
|
+
const classSet = (0, _tailwindcss_mangle_engine.resolveValidTailwindV4Candidates)(await (0, _tailwindcss_mangle_engine.loadTailwindV4DesignSystem)(source), generated.classSet, { ...source.bareArbitraryValues === void 0 ? {} : { bareArbitraryValues: source.bareArbitraryValues } });
|
|
250
|
+
debug$2("runtime class set resolved via tailwindcss v4 generator source scan, raw=%d valid=%d", generated.classSet.size, classSet.size);
|
|
251
|
+
return classSet;
|
|
250
252
|
} catch (error) {
|
|
251
253
|
debug$2("tailwindcss v4 generator source scan failed, continuing fallback chain: %O", error);
|
|
252
254
|
return;
|
|
@@ -4792,6 +4794,9 @@ function resolveRuntimePackageReplacements(option) {
|
|
|
4792
4794
|
}
|
|
4793
4795
|
//#endregion
|
|
4794
4796
|
//#region src/context/style-options.ts
|
|
4797
|
+
function normalizeStyleHandlerMajorVersion(majorVersion) {
|
|
4798
|
+
return majorVersion === 4 ? 4 : void 0;
|
|
4799
|
+
}
|
|
4795
4800
|
function resolveStyleOptionsFromContext(ctx, tailwindcssMajorVersion) {
|
|
4796
4801
|
const resolvedUniAppXOptions = require_tailwindcss.resolveUniAppXOptions(ctx.uniAppX);
|
|
4797
4802
|
const branch = require_generator.resolveGeneratorRuntimeBranch(require_generator.normalizeWeappTailwindcssGeneratorOptions(ctx.generator, {
|
|
@@ -4863,7 +4868,7 @@ function createHandlersFromContext(ctx, customAttributesEntities, cssCalcOptions
|
|
|
4863
4868
|
postcssOptions,
|
|
4864
4869
|
uniAppXUnsupported: resolvedUniAppXOptions.uvueUnsupported,
|
|
4865
4870
|
cssCalc: cssCalcOptions,
|
|
4866
|
-
majorVersion: tailwindcssMajorVersion
|
|
4871
|
+
majorVersion: normalizeStyleHandlerMajorVersion(tailwindcssMajorVersion)
|
|
4867
4872
|
});
|
|
4868
4873
|
const jsHandler = createJsHandler({
|
|
4869
4874
|
escapeMap,
|
|
@@ -4972,9 +4977,9 @@ async function clearTailwindcssRuntimeCache(tailwindRuntime, options) {
|
|
|
4972
4977
|
if (!options?.removeDirectory) return;
|
|
4973
4978
|
const cachePaths = /* @__PURE__ */ new Map();
|
|
4974
4979
|
const normalizedCacheOptions = typeof cacheOptions === "object" ? cacheOptions : void 0;
|
|
4975
|
-
if (normalizedCacheOptions?.path) cachePaths.set(normalizedCacheOptions.path, false);
|
|
4976
4980
|
const privateCachePath = tailwindRuntime?.cacheStore?.options?.path;
|
|
4977
4981
|
if (privateCachePath) cachePaths.set(privateCachePath, false);
|
|
4982
|
+
if (normalizedCacheOptions?.path) cachePaths.set(normalizedCacheOptions.path, false);
|
|
4978
4983
|
if (options?.removeDirectory && normalizedCacheOptions?.dir) cachePaths.set(normalizedCacheOptions.dir, true);
|
|
4979
4984
|
if (!cachePaths.size) return;
|
|
4980
4985
|
for (const [cachePath, recursive] of cachePaths.entries()) try {
|
|
@@ -5111,6 +5116,12 @@ Object.defineProperty(exports, "isClassContextLiteralPath", {
|
|
|
5111
5116
|
return isClassContextLiteralPath;
|
|
5112
5117
|
}
|
|
5113
5118
|
});
|
|
5119
|
+
Object.defineProperty(exports, "normalizeStyleHandlerMajorVersion", {
|
|
5120
|
+
enumerable: true,
|
|
5121
|
+
get: function() {
|
|
5122
|
+
return normalizeStyleHandlerMajorVersion;
|
|
5123
|
+
}
|
|
5124
|
+
});
|
|
5114
5125
|
Object.defineProperty(exports, "pluginName", {
|
|
5115
5126
|
enumerable: true,
|
|
5116
5127
|
get: function() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as resolveGeneratorRuntimeBranch, i as normalizeWeappTailwindcssGeneratorOptions } from "./generator-
|
|
1
|
+
import { W as createTailwindV4Engine$1, lt as loadTailwindV4DesignSystem, n as resolveTailwindV4SourceFromRuntime, st as omitUndefined, ut as resolveValidTailwindV4Candidates$1, y as resolveBooleanObjectOption } from "./v4-engine-C3qSwQ-e.mjs";
|
|
2
|
+
import { a as resolveGeneratorRuntimeBranch, i as normalizeWeappTailwindcssGeneratorOptions } from "./generator-CjzBK7h-.mjs";
|
|
3
3
|
import { i as isMap, n as defuOverrideArray } from "./utils-DodxWHGz.mjs";
|
|
4
|
-
import { a as DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH, i as resolveDefaultCssPreflight, o as HARD_PARSE_CACHE_MAX_ENTRIES, r as getDefaultOptions } from "./defaults-
|
|
5
|
-
import { c as getRuntimeClassSetCacheEntry, d as invalidateRuntimeClassSet, i as resolveUniAppXOptions, o as applyV4CssCalcDefaults, s as warnMissingCssEntries, t as createTailwindcssRuntimeFromContext, u as getRuntimeClassSetSignatureWithSources } from "./tailwindcss-
|
|
4
|
+
import { a as DEFAULT_PARSE_CACHE_MAX_SOURCE_LENGTH, i as resolveDefaultCssPreflight, o as HARD_PARSE_CACHE_MAX_ENTRIES, r as getDefaultOptions } from "./defaults-BhE26nSw.mjs";
|
|
5
|
+
import { c as getRuntimeClassSetCacheEntry, d as invalidateRuntimeClassSet, i as resolveUniAppXOptions, o as applyV4CssCalcDefaults, s as warnMissingCssEntries, t as createTailwindcssRuntimeFromContext, u as getRuntimeClassSetSignatureWithSources } from "./tailwindcss-B5mRo0-M.mjs";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import process from "node:process";
|
|
@@ -233,12 +233,14 @@ function tryGetRuntimeClassSetSync(tailwindRuntime) {
|
|
|
233
233
|
async function collectTailwindV4GeneratorClassSet(tailwindRuntime) {
|
|
234
234
|
if (typeof tailwindRuntime.collectContentTokens !== "function") return;
|
|
235
235
|
try {
|
|
236
|
-
const
|
|
236
|
+
const source = await resolveTailwindV4SourceFromRuntime(tailwindRuntime);
|
|
237
|
+
const generated = await createTailwindV4Engine$1(source).generate({
|
|
237
238
|
scanSources: true,
|
|
238
239
|
target: "web"
|
|
239
240
|
});
|
|
240
|
-
|
|
241
|
-
|
|
241
|
+
const classSet = resolveValidTailwindV4Candidates$1(await loadTailwindV4DesignSystem(source), generated.classSet, { ...source.bareArbitraryValues === void 0 ? {} : { bareArbitraryValues: source.bareArbitraryValues } });
|
|
242
|
+
debug$1("runtime class set resolved via tailwindcss v4 generator source scan, raw=%d valid=%d", generated.classSet.size, classSet.size);
|
|
243
|
+
return classSet;
|
|
242
244
|
} catch (error) {
|
|
243
245
|
debug$1("tailwindcss v4 generator source scan failed, continuing fallback chain: %O", error);
|
|
244
246
|
return;
|
|
@@ -4784,6 +4786,9 @@ function resolveRuntimePackageReplacements(option) {
|
|
|
4784
4786
|
}
|
|
4785
4787
|
//#endregion
|
|
4786
4788
|
//#region src/context/style-options.ts
|
|
4789
|
+
function normalizeStyleHandlerMajorVersion(majorVersion) {
|
|
4790
|
+
return majorVersion === 4 ? 4 : void 0;
|
|
4791
|
+
}
|
|
4787
4792
|
function resolveStyleOptionsFromContext(ctx, tailwindcssMajorVersion) {
|
|
4788
4793
|
const resolvedUniAppXOptions = resolveUniAppXOptions(ctx.uniAppX);
|
|
4789
4794
|
const branch = resolveGeneratorRuntimeBranch(normalizeWeappTailwindcssGeneratorOptions(ctx.generator, {
|
|
@@ -4855,7 +4860,7 @@ function createHandlersFromContext(ctx, customAttributesEntities, cssCalcOptions
|
|
|
4855
4860
|
postcssOptions,
|
|
4856
4861
|
uniAppXUnsupported: resolvedUniAppXOptions.uvueUnsupported,
|
|
4857
4862
|
cssCalc: cssCalcOptions,
|
|
4858
|
-
majorVersion: tailwindcssMajorVersion
|
|
4863
|
+
majorVersion: normalizeStyleHandlerMajorVersion(tailwindcssMajorVersion)
|
|
4859
4864
|
});
|
|
4860
4865
|
const jsHandler = createJsHandler({
|
|
4861
4866
|
escapeMap,
|
|
@@ -4964,9 +4969,9 @@ async function clearTailwindcssRuntimeCache(tailwindRuntime, options) {
|
|
|
4964
4969
|
if (!options?.removeDirectory) return;
|
|
4965
4970
|
const cachePaths = /* @__PURE__ */ new Map();
|
|
4966
4971
|
const normalizedCacheOptions = typeof cacheOptions === "object" ? cacheOptions : void 0;
|
|
4967
|
-
if (normalizedCacheOptions?.path) cachePaths.set(normalizedCacheOptions.path, false);
|
|
4968
4972
|
const privateCachePath = tailwindRuntime?.cacheStore?.options?.path;
|
|
4969
4973
|
if (privateCachePath) cachePaths.set(privateCachePath, false);
|
|
4974
|
+
if (normalizedCacheOptions?.path) cachePaths.set(normalizedCacheOptions.path, false);
|
|
4970
4975
|
if (options?.removeDirectory && normalizedCacheOptions?.dir) cachePaths.set(normalizedCacheOptions.dir, true);
|
|
4971
4976
|
if (!cachePaths.size) return;
|
|
4972
4977
|
for (const [cachePath, recursive] of cachePaths.entries()) try {
|
|
@@ -5025,4 +5030,4 @@ function getCompilerContext(opts) {
|
|
|
5025
5030
|
return withCompilerContextCache(opts, () => createInternalCompilerContext(opts));
|
|
5026
5031
|
}
|
|
5027
5032
|
//#endregion
|
|
5028
|
-
export { md5Hash as S,
|
|
5033
|
+
export { md5Hash as C, createDebug as S, toCustomAttributesEntities as _, vitePluginName as a, ensureRuntimeClassSet as b, createAttributeMatcher as c, JsTokenUpdater as d, _defineProperty as f, traverse as g, babelParse as h, pluginName as i, shouldSkipJsTransform as l, replaceWxml as m, normalizeStyleHandlerMajorVersion as n, Parser as o, isClassContextLiteralPath as p, resolveStyleOptionsFromContext as r, generateCode as s, getCompilerContext as t, analyzeSource as u, collectRuntimeClassSet as v, refreshTailwindRuntimeState as x, createTailwindRuntimeReadyPromise as y };
|
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_context = require("./context-
|
|
2
|
+
const require_context = require("./context-B6hVF7dr.js");
|
|
3
3
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
4
4
|
//#region src/core.ts
|
|
5
5
|
const DEFAULT_MAIN_CHUNK_STYLE_OPTIONS = Object.freeze({ isMainChunk: true });
|
package/dist/core.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as ensureRuntimeClassSet, l as shouldSkipJsTransform, t as getCompilerContext, y as createTailwindRuntimeReadyPromise } from "./context-DlpKD7aN.mjs";
|
|
2
2
|
import { defuOverrideArray } from "@weapp-tailwindcss/shared";
|
|
3
3
|
//#region src/core.ts
|
|
4
4
|
const DEFAULT_MAIN_CHUNK_STYLE_OPTIONS = Object.freeze({ isMainChunk: true });
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PluginWithConfig } from 'tailwindcss/plugin';
|
|
1
2
|
export interface Options {
|
|
2
3
|
variantsMap?: Record<string, string | {
|
|
3
4
|
value: string;
|
|
@@ -5,11 +6,6 @@ export interface Options {
|
|
|
5
6
|
}>;
|
|
6
7
|
dynamic?: boolean;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
handler: import("tailwindcss/types/config").PluginCreator;
|
|
11
|
-
config?: Partial<import("tailwindcss/types/config").Config>;
|
|
12
|
-
};
|
|
13
|
-
__isOptionsFunction: true;
|
|
14
|
-
};
|
|
9
|
+
export type CssMacroPlugin = (options?: Options) => PluginWithConfig;
|
|
10
|
+
declare const cssMacro: CssMacroPlugin;
|
|
15
11
|
export default cssMacro;
|
|
@@ -18,10 +18,10 @@ const TAILWIND_V4_CSS_PREFLIGHT = {
|
|
|
18
18
|
function getDefaultCssPreflight() {
|
|
19
19
|
return { ...TAILWIND_V4_CSS_PREFLIGHT };
|
|
20
20
|
}
|
|
21
|
-
function resolveDefaultCssPreflight(cssPreflight,
|
|
21
|
+
function resolveDefaultCssPreflight(cssPreflight, _tailwindcssMajorVersion) {
|
|
22
22
|
if (cssPreflight === false) return false;
|
|
23
23
|
return {
|
|
24
|
-
...getDefaultCssPreflight(
|
|
24
|
+
...getDefaultCssPreflight(),
|
|
25
25
|
...cssPreflight ?? {}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
@@ -53,9 +53,13 @@ function getDefaultOptions() {
|
|
|
53
53
|
if (file.includes("node_modules")) return false;
|
|
54
54
|
return JS_FILE_PATTERN.test(file);
|
|
55
55
|
},
|
|
56
|
+
transform: {
|
|
57
|
+
include: [],
|
|
58
|
+
exclude: []
|
|
59
|
+
},
|
|
56
60
|
mainCssChunkMatcher: alwaysFalse,
|
|
57
61
|
wxsMatcher: alwaysFalse,
|
|
58
|
-
cssPreflight: getDefaultCssPreflight(
|
|
62
|
+
cssPreflight: getDefaultCssPreflight(),
|
|
59
63
|
disabled: false,
|
|
60
64
|
onLoad: noop,
|
|
61
65
|
onStart: noop,
|
|
@@ -19,10 +19,10 @@ const TAILWIND_V4_CSS_PREFLIGHT = {
|
|
|
19
19
|
function getDefaultCssPreflight() {
|
|
20
20
|
return { ...TAILWIND_V4_CSS_PREFLIGHT };
|
|
21
21
|
}
|
|
22
|
-
function resolveDefaultCssPreflight(cssPreflight,
|
|
22
|
+
function resolveDefaultCssPreflight(cssPreflight, _tailwindcssMajorVersion) {
|
|
23
23
|
if (cssPreflight === false) return false;
|
|
24
24
|
return {
|
|
25
|
-
...getDefaultCssPreflight(
|
|
25
|
+
...getDefaultCssPreflight(),
|
|
26
26
|
...cssPreflight ?? {}
|
|
27
27
|
};
|
|
28
28
|
}
|
|
@@ -54,9 +54,13 @@ function getDefaultOptions() {
|
|
|
54
54
|
if (file.includes("node_modules")) return false;
|
|
55
55
|
return JS_FILE_PATTERN.test(file);
|
|
56
56
|
},
|
|
57
|
+
transform: {
|
|
58
|
+
include: [],
|
|
59
|
+
exclude: []
|
|
60
|
+
},
|
|
57
61
|
mainCssChunkMatcher: alwaysFalse,
|
|
58
62
|
wxsMatcher: alwaysFalse,
|
|
59
|
-
cssPreflight: getDefaultCssPreflight(
|
|
63
|
+
cssPreflight: getDefaultCssPreflight(),
|
|
60
64
|
disabled: false,
|
|
61
65
|
onLoad: _weapp_tailwindcss_shared.noop,
|
|
62
66
|
onStart: _weapp_tailwindcss_shared.noop,
|
package/dist/defaults.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export declare const TAILWIND_V4_CSS_PREFLIGHT: {
|
|
|
6
6
|
border: string;
|
|
7
7
|
};
|
|
8
8
|
export declare function getDefaultCssPreflight(): Exclude<CssPreflightOptions, false>;
|
|
9
|
-
export declare function resolveDefaultCssPreflight(cssPreflight: CssPreflightOptions | undefined,
|
|
9
|
+
export declare function resolveDefaultCssPreflight(cssPreflight: CssPreflightOptions | undefined, _tailwindcssMajorVersion?: number): CssPreflightOptions;
|
|
10
10
|
export declare function getDefaultOptions(): UserDefinedOptions;
|
package/dist/defaults.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_defaults = require("./defaults-
|
|
2
|
+
const require_defaults = require("./defaults-CmFBmxsr.js");
|
|
3
3
|
exports.TAILWIND_V4_CSS_PREFLIGHT = require_defaults.TAILWIND_V4_CSS_PREFLIGHT;
|
|
4
4
|
exports.getDefaultCssPreflight = require_defaults.getDefaultCssPreflight;
|
|
5
5
|
exports.getDefaultOptions = require_defaults.getDefaultOptions;
|
package/dist/defaults.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as resolveDefaultCssPreflight, n as getDefaultCssPreflight, r as getDefaultOptions, t as TAILWIND_V4_CSS_PREFLIGHT } from "./defaults-
|
|
1
|
+
import { i as resolveDefaultCssPreflight, n as getDefaultCssPreflight, r as getDefaultOptions, t as TAILWIND_V4_CSS_PREFLIGHT } from "./defaults-BhE26nSw.mjs";
|
|
2
2
|
export { TAILWIND_V4_CSS_PREFLIGHT, getDefaultCssPreflight, getDefaultOptions, resolveDefaultCssPreflight };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
|
|
2
|
-
import type { WeappTailwindcssGeneratorTarget } from '../runtime-branch';
|
|
2
|
+
import type { WeappTailwindcssGeneratorTarget } from '../runtime-branch/types';
|
|
3
3
|
import type { TailwindV4CandidateSource, TailwindV4DesignSystem, TailwindV4Engine, TailwindV4GenerateOptions, TailwindV4GenerateResult, TailwindV4GenerateTarget, TailwindV4ResolvedSource, TailwindV4SourceOptions } from '../tailwindcss/v4-engine';
|
|
4
4
|
export type { WeappTailwindcssGeneratorTarget };
|
|
5
5
|
export type TailwindGeneratorVersion = 4;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_v4_engine = require("./v4-engine-
|
|
1
|
+
const require_v4_engine = require("./v4-engine-ON_oSLfO.js");
|
|
2
2
|
const require_utils = require("./utils-BCa37Wqj.js");
|
|
3
3
|
//#region src/runtime-branch/create-branch.ts
|
|
4
4
|
function createRuntimeBranch(base, platformFamily, options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { W as createTailwindV4Engine, ct as inferGeneratorTargetFromEnv, n as resolveTailwindV4SourceFromRuntime } from "./v4-engine-C3qSwQ-e.mjs";
|
|
2
2
|
import { o as resolveUniUtsPlatform } from "./utils-DodxWHGz.mjs";
|
|
3
3
|
//#region src/runtime-branch/create-branch.ts
|
|
4
4
|
function createRuntimeBranch(base, platformFamily, options) {
|
package/dist/generator.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_v4_engine = require("./v4-engine-
|
|
3
|
-
const require_generator = require("./generator-
|
|
2
|
+
const require_v4_engine = require("./v4-engine-ON_oSLfO.js");
|
|
3
|
+
const require_generator = require("./generator-6oMJtTDO.js");
|
|
4
4
|
exports.createWeappTailwindcssGenerator = require_generator.createWeappTailwindcssGenerator;
|
|
5
5
|
exports.createWeappTailwindcssGeneratorFromRuntime = require_generator.createWeappTailwindcssGeneratorFromRuntime;
|
|
6
6
|
exports.normalizeWeappTailwindcssGeneratorOptions = require_generator.normalizeWeappTailwindcssGeneratorOptions;
|
package/dist/generator.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as normalizeWeappTailwindcssGeneratorOptions, n as createWeappTailwindcssGeneratorFromRuntime, r as resolveTailwindSourceFromRuntime, t as createWeappTailwindcssGenerator } from "./generator-
|
|
1
|
+
import { K as transformTailwindV4CssByTarget, i as resolveTailwindV4SourceOptionsFromRuntime, n as resolveTailwindV4SourceFromRuntime, q as transformTailwindV4CssToWeapp, r as resolveTailwindV4SourceFromRuntimeOptions, t as resolveTailwindV4Source } from "./v4-engine-C3qSwQ-e.mjs";
|
|
2
|
+
import { i as normalizeWeappTailwindcssGeneratorOptions, n as createWeappTailwindcssGeneratorFromRuntime, r as resolveTailwindSourceFromRuntime, t as createWeappTailwindcssGenerator } from "./generator-CjzBK7h-.mjs";
|
|
3
3
|
export { createWeappTailwindcssGenerator, createWeappTailwindcssGeneratorFromRuntime, normalizeWeappTailwindcssGeneratorOptions, resolveTailwindSourceFromRuntime, resolveTailwindV4Source, resolveTailwindV4SourceFromRuntime, resolveTailwindV4SourceFromRuntimeOptions, resolveTailwindV4SourceOptionsFromRuntime, transformTailwindV4CssByTarget, transformTailwindV4CssToWeapp };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-emK7D4bc.js");
|
|
2
|
-
const require_v4_engine = require("./v4-engine-
|
|
3
|
-
const require_context = require("./context-
|
|
4
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
5
|
-
const require_hmr_timing = require("./hmr-timing-
|
|
2
|
+
const require_v4_engine = require("./v4-engine-ON_oSLfO.js");
|
|
3
|
+
const require_context = require("./context-B6hVF7dr.js");
|
|
4
|
+
const require_tailwindcss = require("./tailwindcss-dbrbY4cd.js");
|
|
5
|
+
const require_hmr_timing = require("./hmr-timing-CegXR9O4.js");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
7
7
|
node_fs = require_chunk.__toESM(node_fs);
|
|
8
8
|
let node_path = require("node:path");
|
|
@@ -312,7 +312,8 @@ function createPlugins(options = {}) {
|
|
|
312
312
|
if (hasInitialTailwindCssRoots || (runtimeState.tailwindRuntime.majorVersion ?? 0) < 4 || !file.path || !require_v4_engine.hasTailwindRootDirectives(rawSource)) return false;
|
|
313
313
|
const sourceFile = node_path.default.resolve(file.path);
|
|
314
314
|
const sourceCss = require_v4_engine.normalizeTailwindSourceForGenerator(require_v4_engine.normalizeTailwindConfigDirectives(rawSource, node_path.default.dirname(sourceFile)), { importFallback: true });
|
|
315
|
-
const
|
|
315
|
+
const config = runtimeState.tailwindRuntime.options?.tailwindcss?.config;
|
|
316
|
+
const generatorSourceCss = require_v4_engine.prependConfigDirective(require_hmr_timing.splitLocalCssImports(sourceCss)?.source ?? sourceCss, config);
|
|
316
317
|
if (!require_v4_engine.upsertTailwindV4CssSource(opts, {
|
|
317
318
|
file: sourceFile,
|
|
318
319
|
base: node_path.default.dirname(sourceFile),
|
|
@@ -330,17 +331,18 @@ function createPlugins(options = {}) {
|
|
|
330
331
|
return cachedDefaultModuleGraphOptions;
|
|
331
332
|
}
|
|
332
333
|
function resolveWxssHandlerOptions(options) {
|
|
333
|
-
const
|
|
334
|
+
const styleHandlerMajorVersion = require_context.normalizeStyleHandlerMajorVersion(runtimeState.tailwindRuntime.majorVersion);
|
|
335
|
+
const majorVersion = styleHandlerMajorVersion ?? "unknown";
|
|
334
336
|
if (!options || Object.keys(options).length === 0) {
|
|
335
337
|
let cached = defaultStyleHandlerOptionsCache.get(majorVersion);
|
|
336
338
|
if (!cached) {
|
|
337
|
-
cached =
|
|
339
|
+
cached = styleHandlerMajorVersion === void 0 ? {} : { majorVersion: styleHandlerMajorVersion };
|
|
338
340
|
defaultStyleHandlerOptionsCache.set(majorVersion, cached);
|
|
339
341
|
}
|
|
340
342
|
return cached;
|
|
341
343
|
}
|
|
342
|
-
return
|
|
343
|
-
majorVersion:
|
|
344
|
+
return styleHandlerMajorVersion === void 0 ? { ...options } : {
|
|
345
|
+
majorVersion: styleHandlerMajorVersion,
|
|
344
346
|
...options
|
|
345
347
|
};
|
|
346
348
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as hasTailwindRootDirectives,
|
|
2
|
-
import {
|
|
3
|
-
import { l as getRuntimeClassSetSignature, p as resolveViteSourceScanEntries } from "./tailwindcss-
|
|
4
|
-
import { F as
|
|
1
|
+
import { C as hasTailwindRootDirectives, D as normalizeTailwindSourceForGenerator, G as getTailwindV4IncrementalGenerateCacheStats, T as normalizeTailwindConfigDirectives, U as prependConfigDirective, o as hasConfiguredTailwindV4CssRoots, s as upsertTailwindV4CssSource } from "./v4-engine-C3qSwQ-e.mjs";
|
|
2
|
+
import { S as createDebug, b as ensureRuntimeClassSet, l as shouldSkipJsTransform, n as normalizeStyleHandlerMajorVersion, t as getCompilerContext, y as createTailwindRuntimeReadyPromise } from "./context-DlpKD7aN.mjs";
|
|
3
|
+
import { l as getRuntimeClassSetSignature, p as resolveViteSourceScanEntries } from "./tailwindcss-B5mRo0-M.mjs";
|
|
4
|
+
import { F as createCssTokenSourceMap, L as processCachedTask, N as annotateCssSourceTrace, P as createCssSourceTraceCacheSignature, n as emitHmrTiming, r as createSourceCandidateCollector, s as createBundleRuntimeClassSetManager, u as generateCssByGenerator, v as rewriteLocalCssImportRequestsForOutput, y as splitLocalCssImports } from "./hmr-timing-B0KuWDjV.mjs";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import process from "node:process";
|
|
@@ -307,7 +307,8 @@ function createPlugins(options = {}) {
|
|
|
307
307
|
if (hasInitialTailwindCssRoots || (runtimeState.tailwindRuntime.majorVersion ?? 0) < 4 || !file.path || !hasTailwindRootDirectives(rawSource)) return false;
|
|
308
308
|
const sourceFile = path.resolve(file.path);
|
|
309
309
|
const sourceCss = normalizeTailwindSourceForGenerator(normalizeTailwindConfigDirectives(rawSource, path.dirname(sourceFile)), { importFallback: true });
|
|
310
|
-
const
|
|
310
|
+
const config = runtimeState.tailwindRuntime.options?.tailwindcss?.config;
|
|
311
|
+
const generatorSourceCss = prependConfigDirective(splitLocalCssImports(sourceCss)?.source ?? sourceCss, config);
|
|
311
312
|
if (!upsertTailwindV4CssSource(opts, {
|
|
312
313
|
file: sourceFile,
|
|
313
314
|
base: path.dirname(sourceFile),
|
|
@@ -325,17 +326,18 @@ function createPlugins(options = {}) {
|
|
|
325
326
|
return cachedDefaultModuleGraphOptions;
|
|
326
327
|
}
|
|
327
328
|
function resolveWxssHandlerOptions(options) {
|
|
328
|
-
const
|
|
329
|
+
const styleHandlerMajorVersion = normalizeStyleHandlerMajorVersion(runtimeState.tailwindRuntime.majorVersion);
|
|
330
|
+
const majorVersion = styleHandlerMajorVersion ?? "unknown";
|
|
329
331
|
if (!options || Object.keys(options).length === 0) {
|
|
330
332
|
let cached = defaultStyleHandlerOptionsCache.get(majorVersion);
|
|
331
333
|
if (!cached) {
|
|
332
|
-
cached =
|
|
334
|
+
cached = styleHandlerMajorVersion === void 0 ? {} : { majorVersion: styleHandlerMajorVersion };
|
|
333
335
|
defaultStyleHandlerOptionsCache.set(majorVersion, cached);
|
|
334
336
|
}
|
|
335
337
|
return cached;
|
|
336
338
|
}
|
|
337
|
-
return
|
|
338
|
-
majorVersion:
|
|
339
|
+
return styleHandlerMajorVersion === void 0 ? { ...options } : {
|
|
340
|
+
majorVersion: styleHandlerMajorVersion,
|
|
339
341
|
...options
|
|
340
342
|
};
|
|
341
343
|
}
|
package/dist/gulp.js
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-BtGq6LP9.js");
|
|
3
3
|
exports.WeappTailwindcss = require_gulp.createPlugins;
|
|
4
4
|
exports.createPlugins = require_gulp.createPlugins;
|
|
5
5
|
exports.weappTailwindcss = require_gulp.createPlugins;
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createPlugins } from "./gulp-
|
|
1
|
+
import { t as createPlugins } from "./gulp-DNU10Vtc.mjs";
|
|
2
2
|
export { createPlugins as WeappTailwindcss, createPlugins, createPlugins as weappTailwindcss };
|