weapp-tailwindcss 4.8.12 → 4.8.14
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-WILVISNS.js → chunk-2AWOAQD3.js} +34 -32
- package/dist/{chunk-4H3RCNUP.mjs → chunk-2HIXWVX2.mjs} +50 -47
- package/dist/{chunk-HXYNNE6Q.mjs → chunk-3SKEY32E.mjs} +18 -119
- package/dist/{chunk-HHSKDU3Z.mjs → chunk-3VIPMWAG.mjs} +22 -24
- package/dist/{chunk-WIET7TXZ.js → chunk-477TX4LM.js} +5 -5
- package/dist/{chunk-243FNJFQ.js → chunk-63LJ4WHF.js} +7 -7
- package/dist/chunk-6VSFN3NA.js +251 -0
- package/dist/{chunk-XSRP6OF5.mjs → chunk-7UAU27KZ.mjs} +2 -2
- package/dist/{chunk-HMFOJPZG.mjs → chunk-EKF3ABRO.mjs} +2 -2
- package/dist/chunk-FSI2IWUY.mjs +251 -0
- package/dist/{chunk-AVUQQ4GH.mjs → chunk-HJWY5Y6L.mjs} +15 -13
- package/dist/{chunk-ZADOXTZC.js → chunk-J4MI4EJO.js} +16 -18
- package/dist/{chunk-AVR4TFX3.js → chunk-L3AOBWDW.js} +7 -7
- package/dist/{chunk-A5JYBYB2.js → chunk-MB4BR57E.js} +1 -1
- package/dist/{chunk-ZSI6C3R4.js → chunk-ML4F4ZPY.js} +66 -63
- package/dist/{chunk-3DQN7M5U.js → chunk-ORSWL3MI.js} +20 -121
- package/dist/{chunk-MDZGOZZP.mjs → chunk-SM5V25IN.mjs} +1 -1
- package/dist/{chunk-K2Y3FXU7.mjs → chunk-ZC5JYOAR.mjs} +2 -2
- package/dist/cli.js +39 -39
- package/dist/cli.mjs +3 -3
- package/dist/core.js +10 -10
- package/dist/core.mjs +4 -4
- package/dist/css-macro/postcss.js +1 -1
- package/dist/css-macro/postcss.mjs +1 -1
- package/dist/css-macro.js +1 -1
- package/dist/css-macro.mjs +1 -1
- package/dist/defaults.js +1 -1
- package/dist/defaults.mjs +1 -1
- package/dist/gulp.js +6 -6
- package/dist/gulp.mjs +5 -5
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -10
- package/dist/index.mjs +9 -9
- package/dist/postcss-html-transform.js +1 -1
- package/dist/postcss-html-transform.mjs +1 -1
- package/dist/presets.d.mts +14 -10
- package/dist/presets.d.ts +14 -10
- package/dist/presets.js +68 -64
- package/dist/presets.mjs +69 -65
- package/dist/reset.js +1 -1
- package/dist/reset.mjs +1 -1
- package/dist/types.d.mts +24 -2
- package/dist/types.d.ts +24 -2
- package/dist/types.js +1 -1
- package/dist/types.mjs +1 -1
- package/dist/vite.js +7 -7
- package/dist/vite.mjs +6 -6
- package/dist/weapp-tw-css-import-rewrite-loader.js +2 -18
- package/dist/weapp-tw-runtime-classset-loader.js +1 -3
- package/dist/webpack.js +8 -8
- package/dist/webpack.mjs +7 -7
- package/dist/webpack4.js +37 -35
- package/dist/webpack4.mjs +16 -14
- package/package.json +4 -4
- package/dist/chunk-6LYLDH5F.mjs +0 -136
- package/dist/chunk-BYXBJQAS.js +0 -1
- package/dist/chunk-CGCWO2U6.js +0 -136
package/dist/cli.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk63LJ4WHFjs = require('./chunk-63LJ4WHF.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkJ4MI4EJOjs = require('./chunk-J4MI4EJO.js');
|
|
11
11
|
require('./chunk-3URI7W6X.js');
|
|
12
12
|
require('./chunk-UW3WHSZ5.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-MB4BR57E.js');
|
|
14
14
|
|
|
15
15
|
// src/cli.ts
|
|
16
16
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
@@ -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 = _chunkJ4MI4EJOjs.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
|
+
_chunkJ4MI4EJOjs.logger.error(error.message);
|
|
149
149
|
if (error.stack && _process2.default.env.WEAPP_TW_DEBUG === "1") {
|
|
150
|
-
|
|
150
|
+
_chunkJ4MI4EJOjs.logger.error(error.stack);
|
|
151
151
|
}
|
|
152
152
|
} else {
|
|
153
|
-
|
|
153
|
+
_chunkJ4MI4EJOjs.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(_chunkJ4MI4EJOjs.findWorkspaceRoot.call(void 0, cwd), () => ( cwd));
|
|
313
313
|
const packageDirs = await resolveWorkspacePackageDirs(workspaceRoot);
|
|
314
314
|
if (packageDirs.length === 0) {
|
|
315
|
-
|
|
315
|
+
_chunkJ4MI4EJOjs.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
|
+
_chunkJ4MI4EJOjs.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 _chunk63LJ4WHFjs.clearTailwindcssPatcherCache.call(void 0, patcher, { removeDirectory: true });
|
|
338
338
|
}
|
|
339
|
-
const recorder =
|
|
339
|
+
const recorder = _chunk63LJ4WHFjs.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
|
+
_chunkJ4MI4EJOjs.logger.info("[workspace] %s %s", displayName, recorder.message);
|
|
347
347
|
}
|
|
348
|
-
|
|
348
|
+
_chunk63LJ4WHFjs.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
|
+
_chunkJ4MI4EJOjs.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
|
+
_chunkJ4MI4EJOjs.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
|
+
_chunkJ4MI4EJOjs.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
|
+
_chunkJ4MI4EJOjs.logger.error(error.message);
|
|
383
383
|
if (error.stack && _process2.default.env.WEAPP_TW_DEBUG === "1") {
|
|
384
|
-
|
|
384
|
+
_chunkJ4MI4EJOjs.logger.error(error.stack);
|
|
385
385
|
}
|
|
386
386
|
} else {
|
|
387
|
-
|
|
387
|
+
_chunkJ4MI4EJOjs.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
|
+
_chunkJ4MI4EJOjs.logger.info(`Patch status for ${packageLabel} (v${report.majorVersion})`);
|
|
423
423
|
if (applied.length) {
|
|
424
|
-
|
|
424
|
+
_chunkJ4MI4EJOjs.logger.success("Applied:");
|
|
425
425
|
applied.forEach((entry) => {
|
|
426
|
-
|
|
426
|
+
_chunkJ4MI4EJOjs.logger.success(` - ${entry.name}${formatStatusFilesHint(entry.files)}`);
|
|
427
427
|
});
|
|
428
428
|
}
|
|
429
429
|
if (pending.length) {
|
|
430
|
-
|
|
430
|
+
_chunkJ4MI4EJOjs.logger.warn("Needs attention:");
|
|
431
431
|
pending.forEach((entry) => {
|
|
432
432
|
const details = entry.reason ? ` - ${entry.reason}` : "";
|
|
433
|
-
|
|
433
|
+
_chunkJ4MI4EJOjs.logger.warn(` - ${entry.name}${formatStatusFilesHint(entry.files)}${details}`);
|
|
434
434
|
});
|
|
435
435
|
} else {
|
|
436
|
-
|
|
436
|
+
_chunkJ4MI4EJOjs.logger.success("All applicable patches are applied.");
|
|
437
437
|
}
|
|
438
438
|
if (skipped.length) {
|
|
439
|
-
|
|
439
|
+
_chunkJ4MI4EJOjs.logger.info("Skipped:");
|
|
440
440
|
skipped.forEach((entry) => {
|
|
441
441
|
const details = entry.reason ? ` - ${entry.reason}` : "";
|
|
442
|
-
|
|
442
|
+
_chunkJ4MI4EJOjs.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 _chunk63LJ4WHFjs.clearTailwindcssPatcherCache.call(void 0, patcher, { removeDirectory: true });
|
|
504
504
|
}
|
|
505
|
-
const recorder =
|
|
505
|
+
const recorder = _chunk63LJ4WHFjs.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
|
+
_chunkJ4MI4EJOjs.logger.info(recorder.message);
|
|
513
513
|
}
|
|
514
|
-
|
|
514
|
+
_chunk63LJ4WHFjs.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
|
+
_chunkJ4MI4EJOjs.logger.info(`\u8BB0\u5F55 weapp-tw patch \u76EE\u6807 -> ${formatOutputPath(recordPath, ctx.cwd)}`);
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
|
|
522
|
+
_chunkJ4MI4EJOjs.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
|
+
_chunkJ4MI4EJOjs.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, _chunk63LJ4WHFjs.WEAPP_TW_REQUIRED_NODE_VERSION)) {
|
|
663
|
+
_chunkJ4MI4EJOjs.logger.warn(
|
|
664
|
+
`You are using Node.js ${_process2.default.versions.node}. For weapp-tailwindcss, Node.js version >= v${_chunk63LJ4WHFjs.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
|
+
_chunkJ4MI4EJOjs.logger.success(
|
|
690
690
|
`VS Code helper generated -> ${formatOutputPath(result.outputPath, resolvedCwd)}`
|
|
691
691
|
);
|
|
692
692
|
})
|
package/dist/cli.mjs
CHANGED
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
clearTailwindcssPatcherCache,
|
|
4
4
|
createPatchTargetRecorder,
|
|
5
5
|
logTailwindcssTarget
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZC5JYOAR.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot,
|
|
9
9
|
logger
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3VIPMWAG.mjs";
|
|
11
11
|
import "./chunk-QF65JGNW.mjs";
|
|
12
12
|
import "./chunk-ZNKIYZRQ.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-SM5V25IN.mjs";
|
|
14
14
|
|
|
15
15
|
// src/cli.ts
|
|
16
16
|
import process5 from "process";
|
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 _chunk477TX4LMjs = require('./chunk-477TX4LM.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
8
|
+
var _chunk63LJ4WHFjs = require('./chunk-63LJ4WHF.js');
|
|
9
|
+
require('./chunk-J4MI4EJO.js');
|
|
10
10
|
require('./chunk-3URI7W6X.js');
|
|
11
11
|
require('./chunk-UW3WHSZ5.js');
|
|
12
|
-
require('./chunk-
|
|
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 = _chunk63LJ4WHFjs.getCompilerContext.call(void 0, options);
|
|
19
19
|
const { templateHandler, styleHandler, jsHandler, twPatcher: initialTwPatcher, refreshTailwindcssPatcher } = opts;
|
|
20
|
-
const patchRecorderState =
|
|
20
|
+
const patchRecorderState = _chunk477TX4LMjs.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 _chunk63LJ4WHFjs.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 _chunk63LJ4WHFjs.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 _chunk63LJ4WHFjs.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 _chunk63LJ4WHFjs.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,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setupPatchRecorder
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7UAU27KZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
collectRuntimeClassSet,
|
|
6
6
|
getCompilerContext,
|
|
7
7
|
refreshTailwindRuntimeState
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-ZC5JYOAR.mjs";
|
|
9
|
+
import "./chunk-3VIPMWAG.mjs";
|
|
10
10
|
import "./chunk-QF65JGNW.mjs";
|
|
11
11
|
import "./chunk-ZNKIYZRQ.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-SM5V25IN.mjs";
|
|
13
13
|
|
|
14
14
|
// src/core.ts
|
|
15
15
|
import process from "process";
|
package/dist/css-macro.js
CHANGED
|
@@ -5,7 +5,7 @@ var _chunkNS3NEDWDjs = require('./chunk-NS3NEDWD.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-MB4BR57E.js');
|
|
9
9
|
|
|
10
10
|
// src/css-macro/index.ts
|
|
11
11
|
var _plugin = require('tailwindcss/plugin'); var _plugin2 = _interopRequireDefault(_plugin);
|
package/dist/css-macro.mjs
CHANGED
package/dist/defaults.js
CHANGED
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 _chunkL3AOBWDWjs = require('./chunk-L3AOBWDW.js');
|
|
4
4
|
require('./chunk-LTJQUORK.js');
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-477TX4LM.js');
|
|
6
|
+
require('./chunk-63LJ4WHF.js');
|
|
7
|
+
require('./chunk-J4MI4EJO.js');
|
|
8
8
|
require('./chunk-3URI7W6X.js');
|
|
9
9
|
require('./chunk-UW3WHSZ5.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-MB4BR57E.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.createPlugins =
|
|
13
|
+
exports.createPlugins = _chunkL3AOBWDWjs.createPlugins;
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPlugins
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EKF3ABRO.mjs";
|
|
4
4
|
import "./chunk-RRHPTTCP.mjs";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-7UAU27KZ.mjs";
|
|
6
|
+
import "./chunk-ZC5JYOAR.mjs";
|
|
7
|
+
import "./chunk-3VIPMWAG.mjs";
|
|
8
8
|
import "./chunk-QF65JGNW.mjs";
|
|
9
9
|
import "./chunk-ZNKIYZRQ.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-SM5V25IN.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createPlugins
|
|
13
13
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createPlugins } from './gulp.mjs';
|
|
2
|
-
export { AppType, CreateJsHandlerOptions, IArbitraryValues, IBaseWebpackPlugin, ICommonReplaceOptions, ICustomAttributes, ICustomAttributesEntities, IJsHandlerOptions, ITemplateHandlerOptions, InternalPatchResult, InternalPostcssOptions, InternalUserDefinedOptions, ItemOrItemArray, JsHandler, JsHandlerResult, JsModuleGraphOptions, LinkedJsModuleResult, RefreshTailwindcssPatcherOptions, TailwindcssPatcherLike, UserDefinedOptions } from './types.mjs';
|
|
2
|
+
export { AppType, CreateJsHandlerOptions, DisabledOptions, IArbitraryValues, IBaseWebpackPlugin, ICommonReplaceOptions, ICustomAttributes, ICustomAttributesEntities, IJsHandlerOptions, ITemplateHandlerOptions, InternalPatchResult, InternalPostcssOptions, InternalUserDefinedOptions, ItemOrItemArray, JsHandler, JsHandlerResult, JsModuleGraphOptions, LinkedJsModuleResult, RefreshTailwindcssPatcherOptions, TailwindcssPatcherLike, UserDefinedOptions } from './types.mjs';
|
|
3
3
|
export { UnifiedViteWeappTailwindcssPlugin } from './vite.mjs';
|
|
4
4
|
export { UnifiedWebpackPluginV5, weappTailwindcssPackageDir } from './webpack.mjs';
|
|
5
5
|
export { CssPreflightOptions, IStyleHandlerOptions } from '@weapp-tailwindcss/postcss';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createPlugins } from './gulp.js';
|
|
2
|
-
export { AppType, CreateJsHandlerOptions, IArbitraryValues, IBaseWebpackPlugin, ICommonReplaceOptions, ICustomAttributes, ICustomAttributesEntities, IJsHandlerOptions, ITemplateHandlerOptions, InternalPatchResult, InternalPostcssOptions, InternalUserDefinedOptions, ItemOrItemArray, JsHandler, JsHandlerResult, JsModuleGraphOptions, LinkedJsModuleResult, RefreshTailwindcssPatcherOptions, TailwindcssPatcherLike, UserDefinedOptions } from './types.js';
|
|
2
|
+
export { AppType, CreateJsHandlerOptions, DisabledOptions, IArbitraryValues, IBaseWebpackPlugin, ICommonReplaceOptions, ICustomAttributes, ICustomAttributesEntities, IJsHandlerOptions, ITemplateHandlerOptions, InternalPatchResult, InternalPostcssOptions, InternalUserDefinedOptions, ItemOrItemArray, JsHandler, JsHandlerResult, JsModuleGraphOptions, LinkedJsModuleResult, RefreshTailwindcssPatcherOptions, TailwindcssPatcherLike, UserDefinedOptions } from './types.js';
|
|
3
3
|
export { UnifiedViteWeappTailwindcssPlugin } from './vite.js';
|
|
4
4
|
export { UnifiedWebpackPluginV5, weappTailwindcssPackageDir } from './webpack.js';
|
|
5
5
|
export { CssPreflightOptions, IStyleHandlerOptions } from '@weapp-tailwindcss/postcss';
|
package/dist/index.js
CHANGED
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var _chunk2AWOAQD3js = require('./chunk-2AWOAQD3.js');
|
|
6
|
+
require('./chunk-6VSFN3NA.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkL3AOBWDWjs = require('./chunk-L3AOBWDW.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
12
|
+
var _chunkML4F4ZPYjs = require('./chunk-ML4F4ZPY.js');
|
|
13
|
+
require('./chunk-ORSWL3MI.js');
|
|
14
14
|
require('./chunk-LTJQUORK.js');
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-477TX4LM.js');
|
|
16
|
+
require('./chunk-63LJ4WHF.js');
|
|
17
|
+
require('./chunk-J4MI4EJO.js');
|
|
18
18
|
require('./chunk-3URI7W6X.js');
|
|
19
19
|
require('./chunk-UW3WHSZ5.js');
|
|
20
|
-
require('./chunk-
|
|
20
|
+
require('./chunk-MB4BR57E.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
exports.UnifiedViteWeappTailwindcssPlugin =
|
|
26
|
+
exports.UnifiedViteWeappTailwindcssPlugin = _chunkML4F4ZPYjs.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunk2AWOAQD3js.UnifiedWebpackPluginV5; exports.createPlugins = _chunkL3AOBWDWjs.createPlugins; exports.weappTailwindcssPackageDir = _chunk2AWOAQD3js.weappTailwindcssPackageDir;
|
package/dist/index.mjs
CHANGED
|
@@ -2,22 +2,22 @@ import "./chunk-YAN7TO2B.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
UnifiedWebpackPluginV5,
|
|
4
4
|
weappTailwindcssPackageDir
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-HJWY5Y6L.mjs";
|
|
6
|
+
import "./chunk-FSI2IWUY.mjs";
|
|
7
7
|
import {
|
|
8
8
|
createPlugins
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EKF3ABRO.mjs";
|
|
10
10
|
import {
|
|
11
11
|
UnifiedViteWeappTailwindcssPlugin
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-2HIXWVX2.mjs";
|
|
13
|
+
import "./chunk-3SKEY32E.mjs";
|
|
14
14
|
import "./chunk-RRHPTTCP.mjs";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-7UAU27KZ.mjs";
|
|
16
|
+
import "./chunk-ZC5JYOAR.mjs";
|
|
17
|
+
import "./chunk-3VIPMWAG.mjs";
|
|
18
18
|
import "./chunk-QF65JGNW.mjs";
|
|
19
19
|
import "./chunk-ZNKIYZRQ.mjs";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-SM5V25IN.mjs";
|
|
21
21
|
export {
|
|
22
22
|
UnifiedViteWeappTailwindcssPlugin,
|
|
23
23
|
UnifiedWebpackPluginV5,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-MB4BR57E.js');
|
|
2
2
|
|
|
3
3
|
// src/postcss-html-transform.ts
|
|
4
4
|
var _htmltransform = require('@weapp-tailwindcss/postcss/html-transform'); var _htmltransform2 = _interopRequireDefault(_htmltransform);
|
package/dist/presets.d.mts
CHANGED
|
@@ -9,6 +9,19 @@ import 'node:buffer';
|
|
|
9
9
|
import 'webpack';
|
|
10
10
|
import 'lru-cache';
|
|
11
11
|
|
|
12
|
+
interface BasePresetOptions extends Omit<Partial<UserDefinedOptions>, 'cssEntries'> {
|
|
13
|
+
base?: string;
|
|
14
|
+
cssEntries?: string | string[];
|
|
15
|
+
resolve?: PackageResolvingOptions;
|
|
16
|
+
rawOptions?: UserDefinedOptions;
|
|
17
|
+
}
|
|
18
|
+
declare function normalizeCssEntries(entries?: string | string[]): string[] | undefined;
|
|
19
|
+
declare function createBasePreset(options?: BasePresetOptions): Partial<UserDefinedOptions>;
|
|
20
|
+
|
|
21
|
+
interface UniAppPresetOptions extends BasePresetOptions {
|
|
22
|
+
}
|
|
23
|
+
declare function uniApp(options?: UniAppPresetOptions): Partial<UserDefinedOptions>;
|
|
24
|
+
|
|
12
25
|
interface UniAppXOptions {
|
|
13
26
|
base: string;
|
|
14
27
|
cssEntries?: string[];
|
|
@@ -18,14 +31,5 @@ interface UniAppXOptions {
|
|
|
18
31
|
customAttributes?: UserDefinedOptions['customAttributes'];
|
|
19
32
|
}
|
|
20
33
|
declare function uniAppX(options: UniAppXOptions): Partial<UserDefinedOptions>;
|
|
21
|
-
interface HBuilderXOptions {
|
|
22
|
-
base?: string;
|
|
23
|
-
cssEntries?: string | string[];
|
|
24
|
-
rem2rpx?: UserDefinedOptions['rem2rpx'];
|
|
25
|
-
rawOptions?: UserDefinedOptions;
|
|
26
|
-
resolve?: PackageResolvingOptions;
|
|
27
|
-
customAttributes?: UserDefinedOptions['customAttributes'];
|
|
28
|
-
}
|
|
29
|
-
declare function hbuilderx(options?: HBuilderXOptions): Partial<UserDefinedOptions>;
|
|
30
34
|
|
|
31
|
-
export { type
|
|
35
|
+
export { type BasePresetOptions, type UniAppPresetOptions, type UniAppXOptions, createBasePreset, normalizeCssEntries, uniApp, uniAppX };
|
package/dist/presets.d.ts
CHANGED
|
@@ -9,6 +9,19 @@ import 'node:buffer';
|
|
|
9
9
|
import 'webpack';
|
|
10
10
|
import 'lru-cache';
|
|
11
11
|
|
|
12
|
+
interface BasePresetOptions extends Omit<Partial<UserDefinedOptions>, 'cssEntries'> {
|
|
13
|
+
base?: string;
|
|
14
|
+
cssEntries?: string | string[];
|
|
15
|
+
resolve?: PackageResolvingOptions;
|
|
16
|
+
rawOptions?: UserDefinedOptions;
|
|
17
|
+
}
|
|
18
|
+
declare function normalizeCssEntries(entries?: string | string[]): string[] | undefined;
|
|
19
|
+
declare function createBasePreset(options?: BasePresetOptions): Partial<UserDefinedOptions>;
|
|
20
|
+
|
|
21
|
+
interface UniAppPresetOptions extends BasePresetOptions {
|
|
22
|
+
}
|
|
23
|
+
declare function uniApp(options?: UniAppPresetOptions): Partial<UserDefinedOptions>;
|
|
24
|
+
|
|
12
25
|
interface UniAppXOptions {
|
|
13
26
|
base: string;
|
|
14
27
|
cssEntries?: string[];
|
|
@@ -18,14 +31,5 @@ interface UniAppXOptions {
|
|
|
18
31
|
customAttributes?: UserDefinedOptions['customAttributes'];
|
|
19
32
|
}
|
|
20
33
|
declare function uniAppX(options: UniAppXOptions): Partial<UserDefinedOptions>;
|
|
21
|
-
interface HBuilderXOptions {
|
|
22
|
-
base?: string;
|
|
23
|
-
cssEntries?: string | string[];
|
|
24
|
-
rem2rpx?: UserDefinedOptions['rem2rpx'];
|
|
25
|
-
rawOptions?: UserDefinedOptions;
|
|
26
|
-
resolve?: PackageResolvingOptions;
|
|
27
|
-
customAttributes?: UserDefinedOptions['customAttributes'];
|
|
28
|
-
}
|
|
29
|
-
declare function hbuilderx(options?: HBuilderXOptions): Partial<UserDefinedOptions>;
|
|
30
34
|
|
|
31
|
-
export { type
|
|
35
|
+
export { type BasePresetOptions, type UniAppPresetOptions, type UniAppXOptions, createBasePreset, normalizeCssEntries, uniApp, uniAppX };
|