weapp-tailwindcss 4.8.15 → 4.9.0
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/{chunk-4ZJEFTPC.mjs → chunk-3M464H7S.mjs} +2 -2
- package/dist/{chunk-PIVX3SXU.js → chunk-4FB4YO6F.js} +15 -15
- package/dist/{chunk-QYYQDG6A.mjs → chunk-4Z6MHSEO.mjs} +4 -4
- package/dist/{chunk-K3XO75VC.mjs → chunk-6OOJ46QK.mjs} +3 -3
- package/dist/{chunk-3URI7W6X.js → chunk-6R4BK6D6.js} +5 -5
- package/dist/{chunk-7UBHTADV.js → chunk-A2OSQ5CV.js} +14 -14
- package/dist/{chunk-UW3WHSZ5.js → chunk-FMBPNII7.js} +7 -1
- package/dist/{chunk-FQX7YIN5.mjs → chunk-GIUNRP65.mjs} +2 -2
- package/dist/{chunk-I7VIMPUB.js → chunk-IGTIMGCP.js} +5 -5
- package/dist/{chunk-W3CX5DGR.js → chunk-NNYRZ4FL.js} +24 -24
- package/dist/{chunk-J4MI4EJO.js → chunk-PT4IJT3Q.js} +5 -3
- package/dist/{chunk-XRYCPSQC.mjs → chunk-QJTJC5UT.mjs} +1 -1
- package/dist/{chunk-DGL3SP2H.js → chunk-QZJTOS3U.js} +3 -3
- package/dist/{chunk-H4BVDT5Q.js → chunk-RMTGZQHJ.js} +7 -7
- package/dist/{chunk-ZNKIYZRQ.mjs → chunk-RR5HCKVQ.mjs} +6 -0
- package/dist/{chunk-3VIPMWAG.mjs → chunk-SZOXLSNK.mjs} +4 -2
- package/dist/{chunk-QF65JGNW.mjs → chunk-TFOTUR4L.mjs} +1 -1
- package/dist/{chunk-7LRI7LJO.mjs → chunk-YJ4NK2AE.mjs} +4 -4
- package/dist/cli.js +40 -40
- package/dist/cli.mjs +4 -4
- package/dist/core.js +11 -11
- package/dist/core.mjs +5 -5
- package/dist/css-macro.js +2 -2
- package/dist/css-macro.mjs +1 -1
- package/dist/defaults.js +3 -3
- package/dist/defaults.mjs +2 -2
- package/dist/gulp.js +7 -7
- package/dist/gulp.mjs +6 -6
- package/dist/index.js +10 -10
- package/dist/index.mjs +9 -9
- package/dist/presets.js +7 -7
- package/dist/presets.mjs +2 -2
- package/dist/vite.js +7 -7
- package/dist/vite.mjs +6 -6
- package/dist/webpack.js +8 -8
- package/dist/webpack.mjs +7 -7
- package/dist/webpack4.js +27 -27
- package/dist/webpack4.mjs +6 -6
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defuOverrideArray
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RR5HCKVQ.mjs";
|
|
4
4
|
|
|
5
5
|
// src/logger/index.ts
|
|
6
6
|
import { logger } from "@weapp-tailwindcss/logger";
|
|
@@ -421,7 +421,9 @@ function normalizeTailwindcssPatcherOptions(options) {
|
|
|
421
421
|
}
|
|
422
422
|
function createTailwindcssPatcher(options) {
|
|
423
423
|
const { basedir, cacheDir, supportCustomLengthUnitsPatch, tailwindcss, tailwindcssPatcherOptions } = options || {};
|
|
424
|
-
const cache = {
|
|
424
|
+
const cache = {
|
|
425
|
+
driver: "memory"
|
|
426
|
+
};
|
|
425
427
|
const normalizedBasedir = basedir ? path2.resolve(basedir) : void 0;
|
|
426
428
|
const cacheRoot = findNearestPackageRoot(normalizedBasedir) ?? normalizedBasedir ?? process.cwd();
|
|
427
429
|
if (cacheDir) {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
isMpx,
|
|
10
10
|
patchMpxLoaderResolve,
|
|
11
11
|
setupMpxTailwindcssRedirect
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QJTJC5UT.mjs";
|
|
13
13
|
import {
|
|
14
14
|
pushConcurrentTaskFactories,
|
|
15
15
|
resolveDisabledOptions,
|
|
@@ -22,17 +22,17 @@ import {
|
|
|
22
22
|
} from "./chunk-RRHPTTCP.mjs";
|
|
23
23
|
import {
|
|
24
24
|
setupPatchRecorder
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-GIUNRP65.mjs";
|
|
26
26
|
import {
|
|
27
27
|
collectRuntimeClassSet,
|
|
28
28
|
createDebug,
|
|
29
29
|
getCompilerContext,
|
|
30
30
|
pluginName,
|
|
31
31
|
refreshTailwindRuntimeState
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-4Z6MHSEO.mjs";
|
|
33
33
|
import {
|
|
34
34
|
getGroupedEntries
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RR5HCKVQ.mjs";
|
|
36
36
|
import {
|
|
37
37
|
__dirname
|
|
38
38
|
} from "./chunk-SM5V25IN.mjs";
|
package/dist/cli.js
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkA2OSQ5CVjs = require('./chunk-A2OSQ5CV.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
10
|
+
var _chunkPT4IJT3Qjs = require('./chunk-PT4IJT3Q.js');
|
|
11
|
+
require('./chunk-6R4BK6D6.js');
|
|
12
|
+
require('./chunk-FMBPNII7.js');
|
|
13
13
|
require('./chunk-MB4BR57E.js');
|
|
14
14
|
|
|
15
15
|
// src/cli.ts
|
|
@@ -125,7 +125,7 @@ function resolvePatchDefaultCwd(currentCwd = _process2.default.cwd()) {
|
|
|
125
125
|
if (explicitCwd) {
|
|
126
126
|
return explicitCwd;
|
|
127
127
|
}
|
|
128
|
-
const workspaceRoot =
|
|
128
|
+
const workspaceRoot = _chunkPT4IJT3Qjs.findWorkspaceRoot.call(void 0, baseDir);
|
|
129
129
|
const initCwd = normalizeCandidatePath(baseDir, _process2.default.env.INIT_CWD);
|
|
130
130
|
const localPrefix = normalizeCandidatePath(baseDir, _process2.default.env.npm_config_local_prefix);
|
|
131
131
|
const candidates = [
|
|
@@ -145,12 +145,12 @@ async function ensureDir(dir) {
|
|
|
145
145
|
}
|
|
146
146
|
function handleCliError(error) {
|
|
147
147
|
if (error instanceof Error) {
|
|
148
|
-
|
|
148
|
+
_chunkPT4IJT3Qjs.logger.error(error.message);
|
|
149
149
|
if (error.stack && _process2.default.env.WEAPP_TW_DEBUG === "1") {
|
|
150
|
-
|
|
150
|
+
_chunkPT4IJT3Qjs.logger.error(error.stack);
|
|
151
151
|
}
|
|
152
152
|
} else {
|
|
153
|
-
|
|
153
|
+
_chunkPT4IJT3Qjs.logger.error(String(error));
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
function commandAction(handler) {
|
|
@@ -309,10 +309,10 @@ function formatDisplayName(workspaceRoot, dir, name) {
|
|
|
309
309
|
}
|
|
310
310
|
async function patchWorkspace(options) {
|
|
311
311
|
const cwd = _nullishCoalesce(options.cwd, () => ( _process2.default.cwd()));
|
|
312
|
-
const workspaceRoot = _nullishCoalesce(
|
|
312
|
+
const workspaceRoot = _nullishCoalesce(_chunkPT4IJT3Qjs.findWorkspaceRoot.call(void 0, cwd), () => ( cwd));
|
|
313
313
|
const packageDirs = await resolveWorkspacePackageDirs(workspaceRoot);
|
|
314
314
|
if (packageDirs.length === 0) {
|
|
315
|
-
|
|
315
|
+
_chunkPT4IJT3Qjs.logger.warn("\u672A\u5728 %s \u68C0\u6D4B\u5230 workspace \u5305\uFF0C\u5DF2\u8DF3\u8FC7\u6279\u91CF patch\u3002", workspaceRoot);
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
318
318
|
const results = [];
|
|
@@ -328,24 +328,24 @@ async function patchWorkspace(options) {
|
|
|
328
328
|
status: "skipped",
|
|
329
329
|
message: "tailwindcss \u672A\u5B89\u88C5\uFF0C\u5DF2\u8DF3\u8FC7\u3002"
|
|
330
330
|
});
|
|
331
|
-
|
|
331
|
+
_chunkPT4IJT3Qjs.logger.info("[workspace] \u8DF3\u8FC7 %s\uFF08tailwindcss \u672A\u5B89\u88C5\uFF09\u3002", displayName);
|
|
332
332
|
continue;
|
|
333
333
|
}
|
|
334
334
|
try {
|
|
335
335
|
const patcher = createWorkspacePatcher(dir);
|
|
336
336
|
if (options.clearCache) {
|
|
337
|
-
await
|
|
337
|
+
await _chunkA2OSQ5CVjs.clearTailwindcssPatcherCache.call(void 0, patcher, { removeDirectory: true });
|
|
338
338
|
}
|
|
339
|
-
const recorder =
|
|
339
|
+
const recorder = _chunkA2OSQ5CVjs.createPatchTargetRecorder.call(void 0, dir, patcher, {
|
|
340
340
|
source: "cli",
|
|
341
341
|
cwd: dir,
|
|
342
342
|
recordTarget: options.recordTarget !== false,
|
|
343
343
|
alwaysRecord: true
|
|
344
344
|
});
|
|
345
345
|
if (_optionalChain([recorder, 'optionalAccess', _13 => _13.message])) {
|
|
346
|
-
|
|
346
|
+
_chunkPT4IJT3Qjs.logger.info("[workspace] %s %s", displayName, recorder.message);
|
|
347
347
|
}
|
|
348
|
-
|
|
348
|
+
_chunkA2OSQ5CVjs.logTailwindcssTarget.call(void 0, "cli", patcher, dir);
|
|
349
349
|
await patcher.patch();
|
|
350
350
|
if (_optionalChain([recorder, 'optionalAccess', _14 => _14.onPatched])) {
|
|
351
351
|
await recorder.onPatched();
|
|
@@ -356,7 +356,7 @@ async function patchWorkspace(options) {
|
|
|
356
356
|
status: "patched",
|
|
357
357
|
message: "\u5DF2\u5B8C\u6210 patch\u3002"
|
|
358
358
|
});
|
|
359
|
-
|
|
359
|
+
_chunkPT4IJT3Qjs.logger.success("[workspace] \u5DF2\u8865\u4E01 %s", displayName);
|
|
360
360
|
} catch (error) {
|
|
361
361
|
const reason = error instanceof Error ? error.message : String(error);
|
|
362
362
|
const suggestion = `\u8BF7\u5728 ${dir} \u8FD0\u884C "weapp-tw patch --cwd ${dir}".`;
|
|
@@ -367,24 +367,24 @@ async function patchWorkspace(options) {
|
|
|
367
367
|
status: "failed",
|
|
368
368
|
message
|
|
369
369
|
});
|
|
370
|
-
|
|
370
|
+
_chunkPT4IJT3Qjs.logger.error("[workspace] \u8865\u4E01\u5931\u8D25 %s\uFF1A%s", displayName, message);
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
const patched = results.filter((result) => result.status === "patched").length;
|
|
374
374
|
const skipped = results.filter((result) => result.status === "skipped").length;
|
|
375
375
|
const failed = results.filter((result) => result.status === "failed").length;
|
|
376
|
-
|
|
376
|
+
_chunkPT4IJT3Qjs.logger.info("[workspace] \u6C47\u603B\uFF1A\u5DF2\u8865\u4E01 %d\uFF0C\u8DF3\u8FC7 %d\uFF0C\u5931\u8D25 %d", patched, skipped, failed);
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
// src/cli/mount-options.ts
|
|
380
380
|
function handleCliError2(error) {
|
|
381
381
|
if (error instanceof Error) {
|
|
382
|
-
|
|
382
|
+
_chunkPT4IJT3Qjs.logger.error(error.message);
|
|
383
383
|
if (error.stack && _process2.default.env.WEAPP_TW_DEBUG === "1") {
|
|
384
|
-
|
|
384
|
+
_chunkPT4IJT3Qjs.logger.error(error.stack);
|
|
385
385
|
}
|
|
386
386
|
} else {
|
|
387
|
-
|
|
387
|
+
_chunkPT4IJT3Qjs.logger.error(String(error));
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
function withCommandErrorHandling(handler) {
|
|
@@ -419,27 +419,27 @@ function logPatchStatusReport(report) {
|
|
|
419
419
|
(entry) => entry.status === "skipped" || entry.status === "unsupported"
|
|
420
420
|
);
|
|
421
421
|
const packageLabel = `${_nullishCoalesce(report.package.name, () => ( "tailwindcss"))}@${_nullishCoalesce(report.package.version, () => ( "unknown"))}`;
|
|
422
|
-
|
|
422
|
+
_chunkPT4IJT3Qjs.logger.info(`Patch status for ${packageLabel} (v${report.majorVersion})`);
|
|
423
423
|
if (applied.length) {
|
|
424
|
-
|
|
424
|
+
_chunkPT4IJT3Qjs.logger.success("Applied:");
|
|
425
425
|
applied.forEach((entry) => {
|
|
426
|
-
|
|
426
|
+
_chunkPT4IJT3Qjs.logger.success(` - ${entry.name}${formatStatusFilesHint(entry.files)}`);
|
|
427
427
|
});
|
|
428
428
|
}
|
|
429
429
|
if (pending.length) {
|
|
430
|
-
|
|
430
|
+
_chunkPT4IJT3Qjs.logger.warn("Needs attention:");
|
|
431
431
|
pending.forEach((entry) => {
|
|
432
432
|
const details = entry.reason ? ` - ${entry.reason}` : "";
|
|
433
|
-
|
|
433
|
+
_chunkPT4IJT3Qjs.logger.warn(` - ${entry.name}${formatStatusFilesHint(entry.files)}${details}`);
|
|
434
434
|
});
|
|
435
435
|
} else {
|
|
436
|
-
|
|
436
|
+
_chunkPT4IJT3Qjs.logger.success("All applicable patches are applied.");
|
|
437
437
|
}
|
|
438
438
|
if (skipped.length) {
|
|
439
|
-
|
|
439
|
+
_chunkPT4IJT3Qjs.logger.info("Skipped:");
|
|
440
440
|
skipped.forEach((entry) => {
|
|
441
441
|
const details = entry.reason ? ` - ${entry.reason}` : "";
|
|
442
|
-
|
|
442
|
+
_chunkPT4IJT3Qjs.logger.info(` - ${entry.name}${details}`);
|
|
443
443
|
});
|
|
444
444
|
}
|
|
445
445
|
}
|
|
@@ -500,26 +500,26 @@ var mountOptions = {
|
|
|
500
500
|
}
|
|
501
501
|
const patcher = await createPatcherWithDefaultExtendLengthUnits(ctx);
|
|
502
502
|
if (shouldClearCache) {
|
|
503
|
-
await
|
|
503
|
+
await _chunkA2OSQ5CVjs.clearTailwindcssPatcherCache.call(void 0, patcher, { removeDirectory: true });
|
|
504
504
|
}
|
|
505
|
-
const recorder =
|
|
505
|
+
const recorder = _chunkA2OSQ5CVjs.createPatchTargetRecorder.call(void 0, ctx.cwd, patcher, {
|
|
506
506
|
source: "cli",
|
|
507
507
|
cwd: ctx.cwd,
|
|
508
508
|
recordTarget: shouldRecordTarget,
|
|
509
509
|
alwaysRecord: true
|
|
510
510
|
});
|
|
511
511
|
if (_optionalChain([recorder, 'optionalAccess', _18 => _18.message])) {
|
|
512
|
-
|
|
512
|
+
_chunkPT4IJT3Qjs.logger.info(recorder.message);
|
|
513
513
|
}
|
|
514
|
-
|
|
514
|
+
_chunkA2OSQ5CVjs.logTailwindcssTarget.call(void 0, "cli", patcher, ctx.cwd);
|
|
515
515
|
await patcher.patch();
|
|
516
516
|
if (_optionalChain([recorder, 'optionalAccess', _19 => _19.onPatched])) {
|
|
517
517
|
const recordPath = await recorder.onPatched();
|
|
518
518
|
if (recordPath) {
|
|
519
|
-
|
|
519
|
+
_chunkPT4IJT3Qjs.logger.info(`\u8BB0\u5F55 weapp-tw patch \u76EE\u6807 -> ${formatOutputPath(recordPath, ctx.cwd)}`);
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
|
|
522
|
+
_chunkPT4IJT3Qjs.logger.success("Tailwind CSS \u8FD0\u884C\u65F6\u8865\u4E01\u5DF2\u5B8C\u6210\u3002");
|
|
523
523
|
}),
|
|
524
524
|
extract: withCommandErrorHandling(async (_ctx, next) => next()),
|
|
525
525
|
tokens: withCommandErrorHandling(async (_ctx, next) => next()),
|
|
@@ -528,7 +528,7 @@ var mountOptions = {
|
|
|
528
528
|
const patcher = await createPatcherWithDefaultExtendLengthUnits(ctx);
|
|
529
529
|
const report = await patcher.getPatchStatus();
|
|
530
530
|
if (ctx.args.json) {
|
|
531
|
-
|
|
531
|
+
_chunkPT4IJT3Qjs.logger.log(JSON.stringify(report, null, 2));
|
|
532
532
|
return report;
|
|
533
533
|
}
|
|
534
534
|
logPatchStatusReport(report);
|
|
@@ -659,9 +659,9 @@ async function generateVscodeIntellisenseEntry(options) {
|
|
|
659
659
|
|
|
660
660
|
// src/cli.ts
|
|
661
661
|
_process2.default.title = "node (weapp-tailwindcss)";
|
|
662
|
-
if (_semver2.default.lt(_process2.default.versions.node,
|
|
663
|
-
|
|
664
|
-
`You are using Node.js ${_process2.default.versions.node}. For weapp-tailwindcss, Node.js version >= v${
|
|
662
|
+
if (_semver2.default.lt(_process2.default.versions.node, _chunkA2OSQ5CVjs.WEAPP_TW_REQUIRED_NODE_VERSION)) {
|
|
663
|
+
_chunkPT4IJT3Qjs.logger.warn(
|
|
664
|
+
`You are using Node.js ${_process2.default.versions.node}. For weapp-tailwindcss, Node.js version >= v${_chunkA2OSQ5CVjs.WEAPP_TW_REQUIRED_NODE_VERSION} is required.`
|
|
665
665
|
);
|
|
666
666
|
}
|
|
667
667
|
var cli = _tailwindcsspatch.createTailwindcssPatchCli.call(void 0, {
|
|
@@ -686,7 +686,7 @@ cli.command("vscode-entry", "Generate a VS Code helper CSS for Tailwind IntelliS
|
|
|
686
686
|
sources,
|
|
687
687
|
force
|
|
688
688
|
});
|
|
689
|
-
|
|
689
|
+
_chunkPT4IJT3Qjs.logger.success(
|
|
690
690
|
`VS Code helper generated -> ${formatOutputPath(result.outputPath, resolvedCwd)}`
|
|
691
691
|
);
|
|
692
692
|
})
|
package/dist/cli.mjs
CHANGED
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
clearTailwindcssPatcherCache,
|
|
4
4
|
createPatchTargetRecorder,
|
|
5
5
|
logTailwindcssTarget
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4Z6MHSEO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot,
|
|
9
9
|
logger
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-SZOXLSNK.mjs";
|
|
11
|
+
import "./chunk-TFOTUR4L.mjs";
|
|
12
|
+
import "./chunk-RR5HCKVQ.mjs";
|
|
13
13
|
import "./chunk-SM5V25IN.mjs";
|
|
14
14
|
|
|
15
15
|
// src/cli.ts
|
package/dist/core.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkIGTIMGCPjs = require('./chunk-IGTIMGCP.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
8
|
+
var _chunkA2OSQ5CVjs = require('./chunk-A2OSQ5CV.js');
|
|
9
|
+
require('./chunk-PT4IJT3Q.js');
|
|
10
|
+
require('./chunk-6R4BK6D6.js');
|
|
11
|
+
require('./chunk-FMBPNII7.js');
|
|
12
12
|
require('./chunk-MB4BR57E.js');
|
|
13
13
|
|
|
14
14
|
// src/core.ts
|
|
15
15
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
16
16
|
var _shared = require('@weapp-tailwindcss/shared');
|
|
17
17
|
function createContext(options = {}) {
|
|
18
|
-
const opts =
|
|
18
|
+
const opts = _chunkA2OSQ5CVjs.getCompilerContext.call(void 0, options);
|
|
19
19
|
const { templateHandler, styleHandler, jsHandler, twPatcher: initialTwPatcher, refreshTailwindcssPatcher } = opts;
|
|
20
|
-
const patchRecorderState =
|
|
20
|
+
const patchRecorderState = _chunkIGTIMGCPjs.setupPatchRecorder.call(void 0, initialTwPatcher, opts.tailwindcssBasedir, {
|
|
21
21
|
source: "runtime",
|
|
22
22
|
cwd: _nullishCoalesce(opts.tailwindcssBasedir, () => ( _process2.default.cwd()))
|
|
23
23
|
});
|
|
@@ -29,7 +29,7 @@ function createContext(options = {}) {
|
|
|
29
29
|
onPatchCompleted: patchRecorderState.onPatchCompleted
|
|
30
30
|
};
|
|
31
31
|
async function refreshRuntimeState(force) {
|
|
32
|
-
await
|
|
32
|
+
await _chunkA2OSQ5CVjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
|
|
33
33
|
}
|
|
34
34
|
async function transformWxss(rawCss, options2) {
|
|
35
35
|
await runtimeState.patchPromise;
|
|
@@ -38,7 +38,7 @@ function createContext(options = {}) {
|
|
|
38
38
|
}));
|
|
39
39
|
await refreshRuntimeState(true);
|
|
40
40
|
await runtimeState.patchPromise;
|
|
41
|
-
runtimeSet = await
|
|
41
|
+
runtimeSet = await _chunkA2OSQ5CVjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
|
|
42
42
|
return result;
|
|
43
43
|
}
|
|
44
44
|
async function transformJs(rawJs, options2 = {}) {
|
|
@@ -48,7 +48,7 @@ function createContext(options = {}) {
|
|
|
48
48
|
} else {
|
|
49
49
|
await refreshRuntimeState(true);
|
|
50
50
|
await runtimeState.patchPromise;
|
|
51
|
-
runtimeSet = await
|
|
51
|
+
runtimeSet = await _chunkA2OSQ5CVjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
|
|
52
52
|
}
|
|
53
53
|
return await jsHandler(rawJs, runtimeSet, options2);
|
|
54
54
|
}
|
|
@@ -57,7 +57,7 @@ function createContext(options = {}) {
|
|
|
57
57
|
if (!_optionalChain([options2, 'optionalAccess', _2 => _2.runtimeSet]) && runtimeSet.size === 0) {
|
|
58
58
|
await refreshRuntimeState(true);
|
|
59
59
|
await runtimeState.patchPromise;
|
|
60
|
-
runtimeSet = await
|
|
60
|
+
runtimeSet = await _chunkA2OSQ5CVjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
|
|
61
61
|
}
|
|
62
62
|
return templateHandler(rawWxml, _shared.defuOverrideArray.call(void 0, options2, {
|
|
63
63
|
runtimeSet
|
package/dist/core.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setupPatchRecorder
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GIUNRP65.mjs";
|
|
4
4
|
import {
|
|
5
5
|
collectRuntimeClassSet,
|
|
6
6
|
getCompilerContext,
|
|
7
7
|
refreshTailwindRuntimeState
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-4Z6MHSEO.mjs";
|
|
9
|
+
import "./chunk-SZOXLSNK.mjs";
|
|
10
|
+
import "./chunk-TFOTUR4L.mjs";
|
|
11
|
+
import "./chunk-RR5HCKVQ.mjs";
|
|
12
12
|
import "./chunk-SM5V25IN.mjs";
|
|
13
13
|
|
|
14
14
|
// src/core.ts
|
package/dist/css-macro.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkNS3NEDWDjs = require('./chunk-NS3NEDWD.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkFMBPNII7js = require('./chunk-FMBPNII7.js');
|
|
8
8
|
require('./chunk-MB4BR57E.js');
|
|
9
9
|
|
|
10
10
|
// src/css-macro/index.ts
|
|
@@ -14,7 +14,7 @@ var defaultOptions = {
|
|
|
14
14
|
variantsMap: {}
|
|
15
15
|
};
|
|
16
16
|
var cssMacro = _plugin2.default.withOptions((options) => {
|
|
17
|
-
const { dynamic, variantsMap } =
|
|
17
|
+
const { dynamic, variantsMap } = _chunkFMBPNII7js.defu.call(void 0, _nullishCoalesce(options, () => ( {})), defaultOptions);
|
|
18
18
|
const staticVariants = Object.entries(variantsMap).map(([name, config]) => {
|
|
19
19
|
if (typeof config === "string") {
|
|
20
20
|
return {
|
package/dist/css-macro.mjs
CHANGED
package/dist/defaults.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk6R4BK6D6js = require('./chunk-6R4BK6D6.js');
|
|
4
|
+
require('./chunk-FMBPNII7.js');
|
|
5
5
|
require('./chunk-MB4BR57E.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.getDefaultOptions =
|
|
8
|
+
exports.getDefaultOptions = _chunk6R4BK6D6js.getDefaultOptions;
|
package/dist/defaults.mjs
CHANGED
package/dist/gulp.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkRMTGZQHJjs = require('./chunk-RMTGZQHJ.js');
|
|
4
4
|
require('./chunk-LTJQUORK.js');
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-IGTIMGCP.js');
|
|
6
|
+
require('./chunk-A2OSQ5CV.js');
|
|
7
|
+
require('./chunk-PT4IJT3Q.js');
|
|
8
|
+
require('./chunk-6R4BK6D6.js');
|
|
9
|
+
require('./chunk-FMBPNII7.js');
|
|
10
10
|
require('./chunk-MB4BR57E.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.createPlugins =
|
|
13
|
+
exports.createPlugins = _chunkRMTGZQHJjs.createPlugins;
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPlugins
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3M464H7S.mjs";
|
|
4
4
|
import "./chunk-RRHPTTCP.mjs";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-GIUNRP65.mjs";
|
|
6
|
+
import "./chunk-4Z6MHSEO.mjs";
|
|
7
|
+
import "./chunk-SZOXLSNK.mjs";
|
|
8
|
+
import "./chunk-TFOTUR4L.mjs";
|
|
9
|
+
import "./chunk-RR5HCKVQ.mjs";
|
|
10
10
|
import "./chunk-SM5V25IN.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createPlugins
|
package/dist/index.js
CHANGED
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var _chunkNNYRZ4FLjs = require('./chunk-NNYRZ4FL.js');
|
|
6
|
+
require('./chunk-QZJTOS3U.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkRMTGZQHJjs = require('./chunk-RMTGZQHJ.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk4FB4YO6Fjs = require('./chunk-4FB4YO6F.js');
|
|
13
13
|
require('./chunk-ORSWL3MI.js');
|
|
14
14
|
require('./chunk-LTJQUORK.js');
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-IGTIMGCP.js');
|
|
16
|
+
require('./chunk-A2OSQ5CV.js');
|
|
17
|
+
require('./chunk-PT4IJT3Q.js');
|
|
18
|
+
require('./chunk-6R4BK6D6.js');
|
|
19
|
+
require('./chunk-FMBPNII7.js');
|
|
20
20
|
require('./chunk-MB4BR57E.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
exports.UnifiedViteWeappTailwindcssPlugin =
|
|
26
|
+
exports.UnifiedViteWeappTailwindcssPlugin = _chunk4FB4YO6Fjs.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunkNNYRZ4FLjs.UnifiedWebpackPluginV5; exports.createPlugins = _chunkRMTGZQHJjs.createPlugins; exports.weappTailwindcssPackageDir = _chunkNNYRZ4FLjs.weappTailwindcssPackageDir;
|
package/dist/index.mjs
CHANGED
|
@@ -2,21 +2,21 @@ import "./chunk-YAN7TO2B.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
UnifiedWebpackPluginV5,
|
|
4
4
|
weappTailwindcssPackageDir
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-YJ4NK2AE.mjs";
|
|
6
|
+
import "./chunk-QJTJC5UT.mjs";
|
|
7
7
|
import {
|
|
8
8
|
createPlugins
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3M464H7S.mjs";
|
|
10
10
|
import {
|
|
11
11
|
UnifiedViteWeappTailwindcssPlugin
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6OOJ46QK.mjs";
|
|
13
13
|
import "./chunk-3SKEY32E.mjs";
|
|
14
14
|
import "./chunk-RRHPTTCP.mjs";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-GIUNRP65.mjs";
|
|
16
|
+
import "./chunk-4Z6MHSEO.mjs";
|
|
17
|
+
import "./chunk-SZOXLSNK.mjs";
|
|
18
|
+
import "./chunk-TFOTUR4L.mjs";
|
|
19
|
+
import "./chunk-RR5HCKVQ.mjs";
|
|
20
20
|
import "./chunk-SM5V25IN.mjs";
|
|
21
21
|
export {
|
|
22
22
|
UnifiedViteWeappTailwindcssPlugin,
|
package/dist/presets.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkPT4IJT3Qjs = require('./chunk-PT4IJT3Q.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkFMBPNII7js = require('./chunk-FMBPNII7.js');
|
|
8
8
|
require('./chunk-MB4BR57E.js');
|
|
9
9
|
|
|
10
10
|
// src/presets/shared.ts
|
|
@@ -23,7 +23,7 @@ function createBasePreset(options = {}) {
|
|
|
23
23
|
rawOptions,
|
|
24
24
|
...userOptions
|
|
25
25
|
} = options;
|
|
26
|
-
const baseDir =
|
|
26
|
+
const baseDir = _chunkPT4IJT3Qjs.resolveTailwindcssBasedir.call(void 0, base);
|
|
27
27
|
const normalizedCssEntries = normalizeCssEntries(cssEntries);
|
|
28
28
|
const tailwindConfig = {
|
|
29
29
|
v2: { cwd: baseDir },
|
|
@@ -48,8 +48,8 @@ function createBasePreset(options = {}) {
|
|
|
48
48
|
tailwind: patchTailwindConfig
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
const mergedUserOptions =
|
|
52
|
-
return
|
|
51
|
+
const mergedUserOptions = _chunkFMBPNII7js.defuOverrideArray.call(void 0, userOptions, _nullishCoalesce(rawOptions, () => ( {})));
|
|
52
|
+
return _chunkFMBPNII7js.defuOverrideArray.call(void 0,
|
|
53
53
|
mergedUserOptions,
|
|
54
54
|
preset
|
|
55
55
|
);
|
|
@@ -69,10 +69,10 @@ function uniApp(options = {}) {
|
|
|
69
69
|
// src/presets/uni-app-x.ts
|
|
70
70
|
|
|
71
71
|
function uniAppX(options) {
|
|
72
|
-
|
|
72
|
+
_chunkPT4IJT3Qjs.logger.info(`UNI_PLATFORM: ${_process2.default.env.UNI_PLATFORM}`);
|
|
73
73
|
const isApp = _process2.default.env.UNI_PLATFORM === "app" || _process2.default.env.UNI_PLATFORM === "app-plus" || _process2.default.env.UNI_PLATFORM === "app-harmony";
|
|
74
74
|
const cssEntries = normalizeCssEntries(options.cssEntries);
|
|
75
|
-
return
|
|
75
|
+
return _chunkFMBPNII7js.defuOverrideArray.call(void 0,
|
|
76
76
|
_nullishCoalesce(options.rawOptions, () => ( {})),
|
|
77
77
|
{
|
|
78
78
|
uniAppX: isApp,
|
package/dist/presets.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
logger,
|
|
3
3
|
resolveTailwindcssBasedir
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SZOXLSNK.mjs";
|
|
5
5
|
import {
|
|
6
6
|
defuOverrideArray
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RR5HCKVQ.mjs";
|
|
8
8
|
import "./chunk-SM5V25IN.mjs";
|
|
9
9
|
|
|
10
10
|
// src/presets/shared.ts
|
package/dist/vite.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4FB4YO6Fjs = require('./chunk-4FB4YO6F.js');
|
|
4
4
|
require('./chunk-ORSWL3MI.js');
|
|
5
5
|
require('./chunk-LTJQUORK.js');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-IGTIMGCP.js');
|
|
7
|
+
require('./chunk-A2OSQ5CV.js');
|
|
8
|
+
require('./chunk-PT4IJT3Q.js');
|
|
9
|
+
require('./chunk-6R4BK6D6.js');
|
|
10
|
+
require('./chunk-FMBPNII7.js');
|
|
11
11
|
require('./chunk-MB4BR57E.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.UnifiedViteWeappTailwindcssPlugin =
|
|
14
|
+
exports.UnifiedViteWeappTailwindcssPlugin = _chunk4FB4YO6Fjs.UnifiedViteWeappTailwindcssPlugin;
|