weapp-tailwindcss 5.0.0-next.26 → 5.0.0-next.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{auto-CqyEtds4.js → auto-TH1jG2UW.js} +2 -2
- package/dist/{auto-CsWz6lsU.mjs → auto-XyKTOP7B.mjs} +1 -1
- package/dist/{bundle-state-CWcrb3mH.mjs → bundle-state-Bi-cQua6.mjs} +1 -1
- package/dist/{bundle-state-uCtqRm0p.js → bundle-state-Ct_8GcSR.js} +2 -2
- package/dist/bundlers/vite/index.d.ts +5 -2
- package/dist/bundlers/vite/source-candidates.d.ts +3 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +1 -1
- package/dist/{chunk-8l464Juk.js → chunk-C5U5_Hdc.js} +14 -0
- package/dist/cli.js +5 -6
- package/dist/cli.mjs +5 -6
- package/dist/core.js +1 -2
- package/dist/core.mjs +1 -1
- package/dist/css-macro/postcss.js +1 -1
- package/dist/css-macro/postcss.mjs +1 -1
- package/dist/css-macro.js +4 -4
- package/dist/css-macro.mjs +3 -3
- package/dist/{defaults-B-1EEhdL.mjs → defaults-8xrgzxFY.mjs} +1 -1
- package/dist/{defaults-C10hYUch.js → defaults-zKUH2mDe.js} +1 -2
- package/dist/defaults.js +1 -1
- package/dist/defaults.mjs +1 -1
- package/dist/{generator-BH6a0xuB.js → generator-CrU-Ghc1.js} +10 -3
- package/dist/{generator-iI_265gt.mjs → generator-Qw-tZ0Z2.mjs} +9 -2
- package/dist/generator.js +2 -3
- package/dist/generator.mjs +2 -2
- package/dist/gulp.js +6 -6
- package/dist/gulp.mjs +5 -5
- package/dist/{incremental-runtime-class-set-ECHyKwUL.mjs → incremental-runtime-class-set-CYkXVVCL.mjs} +48 -14
- package/dist/{incremental-runtime-class-set-mY0v1k-Y.js → incremental-runtime-class-set-DPQEzllt.js} +48 -14
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -6
- package/dist/index.mjs +5 -5
- package/dist/{postcss-DJoU--Z-.mjs → postcss-C6zOQqlL.mjs} +2 -2
- package/dist/{postcss-DEEAZ8J5.js → postcss-DAWf9D3C.js} +3 -3
- package/dist/postcss-html-transform.js +1 -1
- package/dist/postcss.js +1 -1
- package/dist/postcss.mjs +1 -1
- package/dist/{precheck-BI8oBeUg.mjs → precheck-D7K12zeX.mjs} +41 -17
- package/dist/{precheck-DLJg0_pu.js → precheck-D7gJSmJz.js} +37 -13
- package/dist/presets.js +5 -5
- package/dist/presets.mjs +4 -4
- package/dist/reset.js +1 -1
- package/dist/{source-candidates-DkScNh9A.mjs → source-candidates-CX2ozpKM.mjs} +49 -7
- package/dist/{source-candidates-mfvC9gMc.js → source-candidates-DNM8iwXW.js} +50 -8
- package/dist/{tailwindcss-Cm93idme.js → tailwindcss-B-e2RiXr.js} +3 -3
- package/dist/{tailwindcss-DFa5Yes8.mjs → tailwindcss-C7dJHZ0G.mjs} +2 -2
- package/dist/{utils-CSA174-I.js → utils-D7Ygohep.js} +1 -1
- package/dist/{v3-engine-CGsbY81C.js → v3-engine-CHItlVq5.js} +12 -4
- package/dist/{v3-engine-CPJ9uGyr.mjs → v3-engine-DcvCCHfs.mjs} +11 -3
- package/dist/vite-CHYG-Lf6.js +24439 -0
- package/dist/vite-CmimsYBm.mjs +24425 -0
- package/dist/vite.js +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.js +54 -13
- package/dist/weapp-tw-runtime-classset-loader.js +1 -1
- package/dist/{webpack-CfcuDhQ8.js → webpack-BguN8tQa.js} +16 -14
- package/dist/{webpack-D--XZMBB.mjs → webpack-ejGMOruE.mjs} +15 -13
- package/dist/webpack.d.ts +1 -3
- package/dist/webpack.js +3 -4
- package/dist/webpack.mjs +2 -2
- package/package.json +7 -7
- package/dist/vite-BM_ksf1q.js +0 -2537
- package/dist/vite-CqEF-Wx5.mjs +0 -2523
- /package/dist/{logger-Dr7IvyH2.mjs → logger-BNzxZbZj.mjs} +0 -0
- /package/dist/{logger-Cdzl3p8j.js → logger-TlKT3xmR.js} +0 -0
- /package/dist/{postcss-BzaRjBL0.mjs → postcss-C7BMYpEF.mjs} +0 -0
- /package/dist/{postcss-BwW8zO24.js → postcss-CiYLsqZn.js} +0 -0
- /package/dist/{runtime-registry-CdCV3Opt.js → runtime-registry-DpcR3IHI.js} +0 -0
- /package/dist/{utils-B2SJgA1L.mjs → utils-DsaS975I.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as normalizeStringListOption, H as readInstalledPackageMajorVersion, J as findNearestPackageRoot, V as createTailwindcssPatcher, X as findWorkspaceRoot, Y as findWorkspacePackageDir, f as runtimeSignaturePatchersSymbol, q as omitUndefined } from "./v3-engine-
|
|
2
|
-
import { n as defuOverrideArray } from "./utils-
|
|
1
|
+
import { G as normalizeStringListOption, H as readInstalledPackageMajorVersion, J as findNearestPackageRoot, V as createTailwindcssPatcher, X as findWorkspaceRoot, Y as findWorkspacePackageDir, f as runtimeSignaturePatchersSymbol, q as omitUndefined } from "./v3-engine-DcvCCHfs.mjs";
|
|
2
|
+
import { n as defuOverrideArray } from "./utils-DsaS975I.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_chunk = require("./chunk-
|
|
2
|
-
const require_auto = require("./auto-
|
|
1
|
+
const require_chunk = require("./chunk-C5U5_Hdc.js");
|
|
2
|
+
const require_auto = require("./auto-TH1jG2UW.js");
|
|
3
3
|
let node_fs = require("node:fs");
|
|
4
4
|
node_fs = require_chunk.__toESM(node_fs);
|
|
5
5
|
let node_module = require("node:module");
|
|
@@ -2496,9 +2496,17 @@ async function resolveViteSourceScanEntries(options, patcher, scanOptions = {})
|
|
|
2496
2496
|
const cssInlineCandidates = [];
|
|
2497
2497
|
const dependencies = /* @__PURE__ */ new Set();
|
|
2498
2498
|
let explicit = false;
|
|
2499
|
+
let readableCssEntryCount = 0;
|
|
2499
2500
|
for (const cssEntry of cssEntries) {
|
|
2500
2501
|
addSourceScanDependency(dependencies, cssEntry);
|
|
2501
|
-
|
|
2502
|
+
let css;
|
|
2503
|
+
try {
|
|
2504
|
+
css = (0, node_fs.readFileSync)(cssEntry, "utf8");
|
|
2505
|
+
} catch {
|
|
2506
|
+
continue;
|
|
2507
|
+
}
|
|
2508
|
+
readableCssEntryCount++;
|
|
2509
|
+
const resolved = await resolveTailwindV4EntriesFromCssCached(css, node_path.default.dirname(cssEntry));
|
|
2502
2510
|
if (resolved) {
|
|
2503
2511
|
entries.push(...resolved.entries);
|
|
2504
2512
|
cssInlineCandidates.push(resolved.inlineCandidates);
|
|
@@ -2507,7 +2515,7 @@ async function resolveViteSourceScanEntries(options, patcher, scanOptions = {})
|
|
|
2507
2515
|
}
|
|
2508
2516
|
}
|
|
2509
2517
|
const inlineCandidates = mergeTailwindInlineSourceCandidates(cssInlineCandidates);
|
|
2510
|
-
if (entries.length > 0 || inlineCandidates || explicit ||
|
|
2518
|
+
if (entries.length > 0 || inlineCandidates || explicit || readableCssEntryCount > 0) return createResolvedViteSourceScan({
|
|
2511
2519
|
entries: explicit ? entries : entries.length > 0 ? entries : void 0,
|
|
2512
2520
|
explicit,
|
|
2513
2521
|
inlineCandidates
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as transformCssMacroCss, n as hasCssMacroTailwindPlugin, o as withCssMacroStyleOptions, r as hasCssMacroTailwindV4Directive, t as hasCssMacroStyleOptions } from "./auto-
|
|
1
|
+
import { a as transformCssMacroCss, n as hasCssMacroTailwindPlugin, o as withCssMacroStyleOptions, r as hasCssMacroTailwindV4Directive, t as hasCssMacroStyleOptions } from "./auto-XyKTOP7B.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import fs, { existsSync, readFileSync, readdirSync, realpathSync, statSync } from "node:fs";
|
|
4
4
|
import postcss from "postcss";
|
|
@@ -2488,9 +2488,17 @@ async function resolveViteSourceScanEntries(options, patcher, scanOptions = {})
|
|
|
2488
2488
|
const cssInlineCandidates = [];
|
|
2489
2489
|
const dependencies = /* @__PURE__ */ new Set();
|
|
2490
2490
|
let explicit = false;
|
|
2491
|
+
let readableCssEntryCount = 0;
|
|
2491
2492
|
for (const cssEntry of cssEntries) {
|
|
2492
2493
|
addSourceScanDependency(dependencies, cssEntry);
|
|
2493
|
-
|
|
2494
|
+
let css;
|
|
2495
|
+
try {
|
|
2496
|
+
css = readFileSync(cssEntry, "utf8");
|
|
2497
|
+
} catch {
|
|
2498
|
+
continue;
|
|
2499
|
+
}
|
|
2500
|
+
readableCssEntryCount++;
|
|
2501
|
+
const resolved = await resolveTailwindV4EntriesFromCssCached(css, path.dirname(cssEntry));
|
|
2494
2502
|
if (resolved) {
|
|
2495
2503
|
entries.push(...resolved.entries);
|
|
2496
2504
|
cssInlineCandidates.push(resolved.inlineCandidates);
|
|
@@ -2499,7 +2507,7 @@ async function resolveViteSourceScanEntries(options, patcher, scanOptions = {})
|
|
|
2499
2507
|
}
|
|
2500
2508
|
}
|
|
2501
2509
|
const inlineCandidates = mergeTailwindInlineSourceCandidates(cssInlineCandidates);
|
|
2502
|
-
if (entries.length > 0 || inlineCandidates || explicit ||
|
|
2510
|
+
if (entries.length > 0 || inlineCandidates || explicit || readableCssEntryCount > 0) return createResolvedViteSourceScan({
|
|
2503
2511
|
entries: explicit ? entries : entries.length > 0 ? entries : void 0,
|
|
2504
2512
|
explicit,
|
|
2505
2513
|
inlineCandidates
|