weapp-tailwindcss 4.10.2 → 4.10.3
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-IIDSY4XZ.js → chunk-6Z4GEN2Y.js} +2 -2
- package/dist/{chunk-I35XJD75.js → chunk-DEIJXHGJ.js} +28 -18
- package/dist/{chunk-MPVAZKRB.mjs → chunk-E7775SFS.mjs} +22 -12
- package/dist/{chunk-M2ATX5ZS.js → chunk-GCRL3ZYP.js} +5 -5
- package/dist/{chunk-NPZ5QQC7.js → chunk-L7OBNTRI.js} +7 -7
- package/dist/{chunk-BZCCVPSU.mjs → chunk-LICQ6EGN.mjs} +1 -1
- package/dist/{chunk-WJU62RPV.mjs → chunk-PALDKVKG.mjs} +47 -4
- package/dist/{chunk-N6JOG5K3.mjs → chunk-RM3SY4S4.mjs} +2 -2
- package/dist/{chunk-5APD2MNV.js → chunk-RYC23C3K.js} +4 -4
- package/dist/{chunk-HT76VHOV.mjs → chunk-TNYEOBAC.mjs} +1 -1
- package/dist/{chunk-ACNOEKQI.mjs → chunk-UYTCZXNE.mjs} +1 -1
- package/dist/{chunk-6VKE7EWV.js → chunk-W2N6G2QQ.js} +34 -34
- package/dist/{chunk-HJVZ4TO3.js → chunk-WF636Q5E.js} +5 -5
- package/dist/{chunk-LHBUALTK.mjs → chunk-WXT2GI5R.mjs} +4 -4
- package/dist/{chunk-3R7FDZJL.js → chunk-YJSFFRNZ.js} +69 -26
- package/dist/{chunk-DBAAU4LK.js → chunk-YUTKX7JZ.js} +1 -1
- package/dist/cli.js +39 -39
- package/dist/cli.mjs +2 -2
- package/dist/core.js +9 -9
- package/dist/core.mjs +3 -3
- 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 +4 -4
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/postcss-html-transform.js +1 -1
- package/dist/postcss-html-transform.mjs +1 -1
- package/dist/presets.js +5 -5
- package/dist/presets.mjs +1 -1
- package/dist/reset.js +1 -1
- package/dist/reset.mjs +1 -1
- package/dist/types.js +1 -1
- package/dist/types.mjs +1 -1
- package/dist/vite.js +7 -7
- package/dist/vite.mjs +4 -4
- package/dist/webpack.js +8 -8
- package/dist/webpack.mjs +5 -5
- package/dist/webpack4.js +35 -35
- package/dist/webpack4.mjs +4 -4
- package/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDEIJXHGJjs = require('./chunk-DEIJXHGJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkRYC23C3Kjs = require('./chunk-RYC23C3K.js');
|
|
11
11
|
require('./chunk-5U24PLVV.js');
|
|
12
12
|
require('./chunk-DYLQ6UOI.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-YUTKX7JZ.js');
|
|
14
14
|
|
|
15
15
|
// src/cli.ts
|
|
16
16
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
@@ -134,7 +134,7 @@ function resolvePatchDefaultCwd(currentCwd = _process2.default.cwd()) {
|
|
|
134
134
|
if (explicitCwd) {
|
|
135
135
|
return explicitCwd;
|
|
136
136
|
}
|
|
137
|
-
const workspaceRoot =
|
|
137
|
+
const workspaceRoot = _chunkRYC23C3Kjs.findWorkspaceRoot.call(void 0, baseDir);
|
|
138
138
|
const initCwd = normalizeCandidatePath(baseDir, _process2.default.env.INIT_CWD);
|
|
139
139
|
const localPrefix = normalizeCandidatePath(baseDir, _process2.default.env.npm_config_local_prefix);
|
|
140
140
|
const candidates = [
|
|
@@ -156,12 +156,12 @@ async function ensureDir(dir) {
|
|
|
156
156
|
}
|
|
157
157
|
function handleCliError(error) {
|
|
158
158
|
if (error instanceof Error) {
|
|
159
|
-
|
|
159
|
+
_chunkRYC23C3Kjs.logger.error(error.message);
|
|
160
160
|
if (error.stack && _process2.default.env.WEAPP_TW_DEBUG === "1") {
|
|
161
|
-
|
|
161
|
+
_chunkRYC23C3Kjs.logger.error(error.stack);
|
|
162
162
|
}
|
|
163
163
|
} else {
|
|
164
|
-
|
|
164
|
+
_chunkRYC23C3Kjs.logger.error(String(error));
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
function commandAction(handler) {
|
|
@@ -192,27 +192,27 @@ function logPatchStatusReport(report) {
|
|
|
192
192
|
(entry) => entry.status === "skipped" || entry.status === "unsupported"
|
|
193
193
|
);
|
|
194
194
|
const packageLabel = `${_nullishCoalesce(report.package.name, () => ( "tailwindcss"))}@${_nullishCoalesce(report.package.version, () => ( "unknown"))}`;
|
|
195
|
-
|
|
195
|
+
_chunkRYC23C3Kjs.logger.info(`Patch status for ${packageLabel} (v${report.majorVersion})`);
|
|
196
196
|
if (applied.length) {
|
|
197
|
-
|
|
197
|
+
_chunkRYC23C3Kjs.logger.success("Applied:");
|
|
198
198
|
applied.forEach((entry) => {
|
|
199
|
-
|
|
199
|
+
_chunkRYC23C3Kjs.logger.success(` - ${entry.name}${formatStatusFilesHint(entry.files)}`);
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
if (pending.length) {
|
|
203
|
-
|
|
203
|
+
_chunkRYC23C3Kjs.logger.warn("Needs attention:");
|
|
204
204
|
pending.forEach((entry) => {
|
|
205
205
|
const details = entry.reason ? ` - ${entry.reason}` : "";
|
|
206
|
-
|
|
206
|
+
_chunkRYC23C3Kjs.logger.warn(` - ${entry.name}${formatStatusFilesHint(entry.files)}${details}`);
|
|
207
207
|
});
|
|
208
208
|
} else {
|
|
209
|
-
|
|
209
|
+
_chunkRYC23C3Kjs.logger.success("All applicable patches are applied.");
|
|
210
210
|
}
|
|
211
211
|
if (skipped.length) {
|
|
212
|
-
|
|
212
|
+
_chunkRYC23C3Kjs.logger.info("Skipped:");
|
|
213
213
|
skipped.forEach((entry) => {
|
|
214
214
|
const details = entry.reason ? ` - ${entry.reason}` : "";
|
|
215
|
-
|
|
215
|
+
_chunkRYC23C3Kjs.logger.info(` - ${entry.name}${details}`);
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
}
|
|
@@ -377,7 +377,7 @@ function summarizeWorkspaceResults(results) {
|
|
|
377
377
|
const patched = results.filter((result) => result.status === "patched").length;
|
|
378
378
|
const skipped = results.filter((result) => result.status === "skipped").length;
|
|
379
379
|
const failed = results.filter((result) => result.status === "failed").length;
|
|
380
|
-
|
|
380
|
+
_chunkRYC23C3Kjs.logger.info("[workspace] \u6C47\u603B\uFF1A\u5DF2\u8865\u4E01 %d\uFF0C\u8DF3\u8FC7 %d\uFF0C\u5931\u8D25 %d", patched, skipped, failed);
|
|
381
381
|
}
|
|
382
382
|
|
|
383
383
|
// src/cli/workspace/patch-package.ts
|
|
@@ -393,7 +393,7 @@ async function patchWorkspacePackage(workspaceRoot, dir, pkgName, options) {
|
|
|
393
393
|
const displayName = formatDisplayName(workspaceRoot, dir, pkgName);
|
|
394
394
|
const tailwindInfo = getTailwindcssPackageInfo({ paths: [dir] });
|
|
395
395
|
if (!_optionalChain([tailwindInfo, 'optionalAccess', _11 => _11.rootPath])) {
|
|
396
|
-
|
|
396
|
+
_chunkRYC23C3Kjs.logger.info("[workspace] \u8DF3\u8FC7 %s\uFF08tailwindcss \u672A\u5B89\u88C5\uFF09\u3002", displayName);
|
|
397
397
|
return {
|
|
398
398
|
dir,
|
|
399
399
|
name: pkgName,
|
|
@@ -404,23 +404,23 @@ async function patchWorkspacePackage(workspaceRoot, dir, pkgName, options) {
|
|
|
404
404
|
try {
|
|
405
405
|
const patcher = createWorkspacePatcher(dir);
|
|
406
406
|
if (options.clearCache) {
|
|
407
|
-
await
|
|
407
|
+
await _chunkDEIJXHGJjs.clearTailwindcssPatcherCache.call(void 0, patcher, { removeDirectory: true });
|
|
408
408
|
}
|
|
409
|
-
const recorder =
|
|
409
|
+
const recorder = _chunkDEIJXHGJjs.createPatchTargetRecorder.call(void 0, dir, patcher, {
|
|
410
410
|
source: "cli",
|
|
411
411
|
cwd: dir,
|
|
412
412
|
recordTarget: options.recordTarget !== false,
|
|
413
413
|
alwaysRecord: true
|
|
414
414
|
});
|
|
415
415
|
if (_optionalChain([recorder, 'optionalAccess', _12 => _12.message])) {
|
|
416
|
-
|
|
416
|
+
_chunkRYC23C3Kjs.logger.info("[workspace] %s %s", displayName, recorder.message);
|
|
417
417
|
}
|
|
418
|
-
|
|
418
|
+
_chunkDEIJXHGJjs.logTailwindcssTarget.call(void 0, "cli", patcher, dir);
|
|
419
419
|
await patcher.patch();
|
|
420
420
|
if (_optionalChain([recorder, 'optionalAccess', _13 => _13.onPatched])) {
|
|
421
421
|
await recorder.onPatched();
|
|
422
422
|
}
|
|
423
|
-
|
|
423
|
+
_chunkRYC23C3Kjs.logger.success("[workspace] \u5DF2\u8865\u4E01 %s", displayName);
|
|
424
424
|
return {
|
|
425
425
|
dir,
|
|
426
426
|
name: pkgName,
|
|
@@ -431,7 +431,7 @@ async function patchWorkspacePackage(workspaceRoot, dir, pkgName, options) {
|
|
|
431
431
|
const reason = error instanceof Error ? error.message : String(error);
|
|
432
432
|
const suggestion = `\u8BF7\u5728 ${dir} \u8FD0\u884C "weapp-tw patch --cwd ${dir}".`;
|
|
433
433
|
const message = `${reason}\uFF0C${suggestion}`;
|
|
434
|
-
|
|
434
|
+
_chunkRYC23C3Kjs.logger.error("[workspace] \u8865\u4E01\u5931\u8D25 %s\uFF1A%s", displayName, message);
|
|
435
435
|
return {
|
|
436
436
|
dir,
|
|
437
437
|
name: pkgName,
|
|
@@ -444,10 +444,10 @@ async function patchWorkspacePackage(workspaceRoot, dir, pkgName, options) {
|
|
|
444
444
|
// src/cli/workspace.ts
|
|
445
445
|
async function patchWorkspace(options) {
|
|
446
446
|
const cwd = _nullishCoalesce(options.cwd, () => ( _process2.default.cwd()));
|
|
447
|
-
const workspaceRoot = _nullishCoalesce(
|
|
447
|
+
const workspaceRoot = _nullishCoalesce(_chunkRYC23C3Kjs.findWorkspaceRoot.call(void 0, cwd), () => ( cwd));
|
|
448
448
|
const packageDirs = await resolveWorkspacePackageDirs(workspaceRoot);
|
|
449
449
|
if (packageDirs.length === 0) {
|
|
450
|
-
|
|
450
|
+
_chunkRYC23C3Kjs.logger.warn("\u672A\u5728 %s \u68C0\u6D4B\u5230 workspace \u5305\uFF0C\u5DF2\u8DF3\u8FC7\u6279\u91CF patch\u3002", workspaceRoot);
|
|
451
451
|
return;
|
|
452
452
|
}
|
|
453
453
|
const results = [];
|
|
@@ -462,12 +462,12 @@ async function patchWorkspace(options) {
|
|
|
462
462
|
// src/cli/mount-options.ts
|
|
463
463
|
function handleCliError2(error) {
|
|
464
464
|
if (error instanceof Error) {
|
|
465
|
-
|
|
465
|
+
_chunkRYC23C3Kjs.logger.error(error.message);
|
|
466
466
|
if (error.stack && _process2.default.env.WEAPP_TW_DEBUG === "1") {
|
|
467
|
-
|
|
467
|
+
_chunkRYC23C3Kjs.logger.error(error.stack);
|
|
468
468
|
}
|
|
469
469
|
} else {
|
|
470
|
-
|
|
470
|
+
_chunkRYC23C3Kjs.logger.error(String(error));
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
function withCommandErrorHandling(handler) {
|
|
@@ -546,26 +546,26 @@ var mountOptions = {
|
|
|
546
546
|
}
|
|
547
547
|
const patcher = await createPatcherWithDefaultExtendLengthUnits(ctx);
|
|
548
548
|
if (shouldClearCache) {
|
|
549
|
-
await
|
|
549
|
+
await _chunkDEIJXHGJjs.clearTailwindcssPatcherCache.call(void 0, patcher, { removeDirectory: true });
|
|
550
550
|
}
|
|
551
|
-
const recorder =
|
|
551
|
+
const recorder = _chunkDEIJXHGJjs.createPatchTargetRecorder.call(void 0, ctx.cwd, patcher, {
|
|
552
552
|
source: "cli",
|
|
553
553
|
cwd: ctx.cwd,
|
|
554
554
|
recordTarget: shouldRecordTarget,
|
|
555
555
|
alwaysRecord: true
|
|
556
556
|
});
|
|
557
557
|
if (_optionalChain([recorder, 'optionalAccess', _15 => _15.message])) {
|
|
558
|
-
|
|
558
|
+
_chunkRYC23C3Kjs.logger.info(recorder.message);
|
|
559
559
|
}
|
|
560
|
-
|
|
560
|
+
_chunkDEIJXHGJjs.logTailwindcssTarget.call(void 0, "cli", patcher, ctx.cwd);
|
|
561
561
|
await patcher.patch();
|
|
562
562
|
if (_optionalChain([recorder, 'optionalAccess', _16 => _16.onPatched])) {
|
|
563
563
|
const recordPath = await recorder.onPatched();
|
|
564
564
|
if (recordPath) {
|
|
565
|
-
|
|
565
|
+
_chunkRYC23C3Kjs.logger.info(`\u8BB0\u5F55 weapp-tw patch \u76EE\u6807 -> ${formatOutputPath(recordPath, ctx.cwd)}`);
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
|
|
568
|
+
_chunkRYC23C3Kjs.logger.success("Tailwind CSS \u8FD0\u884C\u65F6\u8865\u4E01\u5DF2\u5B8C\u6210\u3002");
|
|
569
569
|
}),
|
|
570
570
|
extract: withCommandErrorHandling(async (_ctx, next) => next()),
|
|
571
571
|
tokens: withCommandErrorHandling(async (_ctx, next) => next()),
|
|
@@ -574,7 +574,7 @@ var mountOptions = {
|
|
|
574
574
|
const patcher = await createPatcherWithDefaultExtendLengthUnits(ctx);
|
|
575
575
|
const report = await patcher.getPatchStatus();
|
|
576
576
|
if (ctx.args.json) {
|
|
577
|
-
|
|
577
|
+
_chunkRYC23C3Kjs.logger.log(JSON.stringify(report, null, 2));
|
|
578
578
|
return report;
|
|
579
579
|
}
|
|
580
580
|
logPatchStatusReport(report);
|
|
@@ -705,9 +705,9 @@ async function generateVscodeIntellisenseEntry(options) {
|
|
|
705
705
|
|
|
706
706
|
// src/cli.ts
|
|
707
707
|
_process2.default.title = "node (weapp-tailwindcss)";
|
|
708
|
-
if (_semver2.default.lt(_process2.default.versions.node,
|
|
709
|
-
|
|
710
|
-
`You are using Node.js ${_process2.default.versions.node}. For weapp-tailwindcss, Node.js version >= v${
|
|
708
|
+
if (_semver2.default.lt(_process2.default.versions.node, _chunkDEIJXHGJjs.WEAPP_TW_REQUIRED_NODE_VERSION)) {
|
|
709
|
+
_chunkRYC23C3Kjs.logger.warn(
|
|
710
|
+
`You are using Node.js ${_process2.default.versions.node}. For weapp-tailwindcss, Node.js version >= v${_chunkDEIJXHGJjs.WEAPP_TW_REQUIRED_NODE_VERSION} is required.`
|
|
711
711
|
);
|
|
712
712
|
}
|
|
713
713
|
var cli = _tailwindcsspatch.createTailwindcssPatchCli.call(void 0, {
|
|
@@ -732,7 +732,7 @@ cli.command("vscode-entry", "Generate a VS Code helper CSS for Tailwind IntelliS
|
|
|
732
732
|
sources,
|
|
733
733
|
force
|
|
734
734
|
});
|
|
735
|
-
|
|
735
|
+
_chunkRYC23C3Kjs.logger.success(
|
|
736
736
|
`VS Code helper generated -> ${formatOutputPath(result.outputPath, resolvedCwd)}`
|
|
737
737
|
);
|
|
738
738
|
})
|
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-E7775SFS.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot,
|
|
9
9
|
logger
|
|
10
10
|
} from "./chunk-QOTLDKI4.mjs";
|
|
11
11
|
import "./chunk-3WUHHFLF.mjs";
|
|
12
12
|
import "./chunk-OOHJLO5M.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-TNYEOBAC.mjs";
|
|
14
14
|
|
|
15
15
|
// src/cli.ts
|
|
16
16
|
import process7 from "process";
|
package/dist/core.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
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 _chunkGCRL3ZYPjs = require('./chunk-GCRL3ZYP.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkDEIJXHGJjs = require('./chunk-DEIJXHGJ.js');
|
|
8
|
+
require('./chunk-RYC23C3K.js');
|
|
9
9
|
require('./chunk-5U24PLVV.js');
|
|
10
10
|
require('./chunk-DYLQ6UOI.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-YUTKX7JZ.js');
|
|
12
12
|
|
|
13
13
|
// src/core.ts
|
|
14
14
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
15
15
|
var _shared = require('@weapp-tailwindcss/shared');
|
|
16
16
|
function createContext(options = {}) {
|
|
17
|
-
const opts =
|
|
17
|
+
const opts = _chunkDEIJXHGJjs.getCompilerContext.call(void 0, options);
|
|
18
18
|
const { templateHandler, styleHandler, jsHandler, twPatcher: initialTwPatcher, refreshTailwindcssPatcher } = opts;
|
|
19
|
-
const patchRecorderState =
|
|
19
|
+
const patchRecorderState = _chunkGCRL3ZYPjs.setupPatchRecorder.call(void 0, initialTwPatcher, opts.tailwindcssBasedir, {
|
|
20
20
|
source: "runtime",
|
|
21
21
|
cwd: _nullishCoalesce(opts.tailwindcssBasedir, () => ( _process2.default.cwd()))
|
|
22
22
|
});
|
|
@@ -45,7 +45,7 @@ function createContext(options = {}) {
|
|
|
45
45
|
const result = await styleHandler(rawCss, _shared.defuOverrideArray.call(void 0, options2, {
|
|
46
46
|
isMainChunk: true
|
|
47
47
|
}));
|
|
48
|
-
runtimeSet = await
|
|
48
|
+
runtimeSet = await _chunkDEIJXHGJjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
|
|
49
49
|
forceRefresh: true,
|
|
50
50
|
forceCollect: true
|
|
51
51
|
});
|
|
@@ -56,7 +56,7 @@ function createContext(options = {}) {
|
|
|
56
56
|
if (_optionalChain([options2, 'optionalAccess', _ => _.runtimeSet])) {
|
|
57
57
|
runtimeSet = options2.runtimeSet;
|
|
58
58
|
} else if (runtimeSet.size === 0) {
|
|
59
|
-
runtimeSet = await
|
|
59
|
+
runtimeSet = await _chunkDEIJXHGJjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
|
|
60
60
|
forceCollect: true
|
|
61
61
|
});
|
|
62
62
|
}
|
|
@@ -65,7 +65,7 @@ function createContext(options = {}) {
|
|
|
65
65
|
async function transformWxml(rawWxml, options2) {
|
|
66
66
|
await runtimeState.patchPromise;
|
|
67
67
|
if (!_optionalChain([options2, 'optionalAccess', _2 => _2.runtimeSet]) && runtimeSet.size === 0) {
|
|
68
|
-
runtimeSet = await
|
|
68
|
+
runtimeSet = await _chunkDEIJXHGJjs.ensureRuntimeClassSet.call(void 0, runtimeState, {
|
|
69
69
|
forceCollect: true
|
|
70
70
|
});
|
|
71
71
|
}
|
package/dist/core.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setupPatchRecorder
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LICQ6EGN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ensureRuntimeClassSet,
|
|
6
6
|
getCompilerContext
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-E7775SFS.mjs";
|
|
8
8
|
import "./chunk-QOTLDKI4.mjs";
|
|
9
9
|
import "./chunk-3WUHHFLF.mjs";
|
|
10
10
|
import "./chunk-OOHJLO5M.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-TNYEOBAC.mjs";
|
|
12
12
|
|
|
13
13
|
// src/core.ts
|
|
14
14
|
import process from "process";
|
package/dist/css-macro.js
CHANGED
|
@@ -5,7 +5,7 @@ var _chunkSR4GC2F4js = require('./chunk-SR4GC2F4.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkDYLQ6UOIjs = require('./chunk-DYLQ6UOI.js');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-YUTKX7JZ.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 _chunkL7OBNTRIjs = require('./chunk-L7OBNTRI.js');
|
|
4
4
|
require('./chunk-LTJQUORK.js');
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-GCRL3ZYP.js');
|
|
6
|
+
require('./chunk-DEIJXHGJ.js');
|
|
7
|
+
require('./chunk-RYC23C3K.js');
|
|
8
8
|
require('./chunk-5U24PLVV.js');
|
|
9
9
|
require('./chunk-DYLQ6UOI.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-YUTKX7JZ.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.createPlugins =
|
|
13
|
+
exports.createPlugins = _chunkL7OBNTRIjs.createPlugins;
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPlugins
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RM3SY4S4.mjs";
|
|
4
4
|
import "./chunk-RRHPTTCP.mjs";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-LICQ6EGN.mjs";
|
|
6
|
+
import "./chunk-E7775SFS.mjs";
|
|
7
7
|
import "./chunk-QOTLDKI4.mjs";
|
|
8
8
|
import "./chunk-3WUHHFLF.mjs";
|
|
9
9
|
import "./chunk-OOHJLO5M.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-TNYEOBAC.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createPlugins
|
|
13
13
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkW2N6G2QQjs = require('./chunk-W2N6G2QQ.js');
|
|
5
|
+
require('./chunk-WF636Q5E.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkL7OBNTRIjs = require('./chunk-L7OBNTRI.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
12
|
-
require('./chunk-
|
|
11
|
+
var _chunkYJSFFRNZjs = require('./chunk-YJSFFRNZ.js');
|
|
12
|
+
require('./chunk-6Z4GEN2Y.js');
|
|
13
13
|
require('./chunk-LTJQUORK.js');
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-GCRL3ZYP.js');
|
|
15
|
+
require('./chunk-DEIJXHGJ.js');
|
|
16
|
+
require('./chunk-RYC23C3K.js');
|
|
17
17
|
require('./chunk-5U24PLVV.js');
|
|
18
18
|
require('./chunk-DYLQ6UOI.js');
|
|
19
|
-
require('./chunk-
|
|
19
|
+
require('./chunk-YUTKX7JZ.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
exports.UnifiedViteWeappTailwindcssPlugin =
|
|
25
|
+
exports.UnifiedViteWeappTailwindcssPlugin = _chunkYJSFFRNZjs.UnifiedViteWeappTailwindcssPlugin; exports.UnifiedWebpackPluginV5 = _chunkW2N6G2QQjs.UnifiedWebpackPluginV5; exports.createPlugins = _chunkL7OBNTRIjs.createPlugins; exports.weappTailwindcssPackageDir = _chunkW2N6G2QQjs.weappTailwindcssPackageDir;
|
package/dist/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnifiedWebpackPluginV5,
|
|
3
3
|
weappTailwindcssPackageDir
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-WXT2GI5R.mjs";
|
|
5
|
+
import "./chunk-UYTCZXNE.mjs";
|
|
6
6
|
import {
|
|
7
7
|
createPlugins
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RM3SY4S4.mjs";
|
|
9
9
|
import {
|
|
10
10
|
UnifiedViteWeappTailwindcssPlugin
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PALDKVKG.mjs";
|
|
12
12
|
import "./chunk-F2CKKG6Q.mjs";
|
|
13
13
|
import "./chunk-RRHPTTCP.mjs";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-LICQ6EGN.mjs";
|
|
15
|
+
import "./chunk-E7775SFS.mjs";
|
|
16
16
|
import "./chunk-QOTLDKI4.mjs";
|
|
17
17
|
import "./chunk-3WUHHFLF.mjs";
|
|
18
18
|
import "./chunk-OOHJLO5M.mjs";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-TNYEOBAC.mjs";
|
|
20
20
|
export {
|
|
21
21
|
UnifiedViteWeappTailwindcssPlugin,
|
|
22
22
|
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-YUTKX7JZ.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.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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 _chunkRYC23C3Kjs = require('./chunk-RYC23C3K.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkDYLQ6UOIjs = require('./chunk-DYLQ6UOI.js');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-YUTKX7JZ.js');
|
|
10
10
|
|
|
11
11
|
// src/presets/shared.ts
|
|
12
12
|
function normalizeCssEntries(entries) {
|
|
@@ -24,7 +24,7 @@ function createBasePreset(options = {}) {
|
|
|
24
24
|
rawOptions,
|
|
25
25
|
...userOptions
|
|
26
26
|
} = options;
|
|
27
|
-
const baseDir =
|
|
27
|
+
const baseDir = _chunkRYC23C3Kjs.resolveTailwindcssBasedir.call(void 0, base);
|
|
28
28
|
const normalizedCssEntries = normalizeCssEntries(cssEntries);
|
|
29
29
|
const tailwindConfig = {
|
|
30
30
|
v2: { cwd: baseDir },
|
|
@@ -70,10 +70,10 @@ function uniApp(options = {}) {
|
|
|
70
70
|
// src/presets/uni-app-x.ts
|
|
71
71
|
|
|
72
72
|
function uniAppX(options) {
|
|
73
|
-
|
|
73
|
+
_chunkRYC23C3Kjs.logger.info(`UNI_PLATFORM: ${_process2.default.env.UNI_PLATFORM}`);
|
|
74
74
|
const utsPlatform = _chunkDYLQ6UOIjs.resolveUniUtsPlatform.call(void 0, );
|
|
75
75
|
const uniPlatform = _chunkDYLQ6UOIjs.resolveUniUtsPlatform.call(void 0, _process2.default.env.UNI_PLATFORM);
|
|
76
|
-
|
|
76
|
+
_chunkRYC23C3Kjs.logger.info(`UNI_UTS_PLATFORM: ${_nullishCoalesce(utsPlatform.raw, () => ( "undefined"))}`);
|
|
77
77
|
const isApp = utsPlatform.isApp || uniPlatform.isApp;
|
|
78
78
|
const cssEntries = normalizeCssEntries(options.cssEntries);
|
|
79
79
|
return _chunkDYLQ6UOIjs.defuOverrideArray.call(void 0,
|
package/dist/presets.mjs
CHANGED
package/dist/reset.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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; }require('./chunk-
|
|
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; }require('./chunk-YUTKX7JZ.js');
|
|
2
2
|
|
|
3
3
|
// src/reset/index.ts
|
|
4
4
|
var _plugin = require('tailwindcss/plugin'); var _plugin2 = _interopRequireDefault(_plugin);
|
package/dist/reset.mjs
CHANGED
package/dist/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./chunk-
|
|
1
|
+
"use strict";require('./chunk-YUTKX7JZ.js');
|
package/dist/types.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-TNYEOBAC.mjs";
|
package/dist/vite.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkYJSFFRNZjs = require('./chunk-YJSFFRNZ.js');
|
|
4
|
+
require('./chunk-6Z4GEN2Y.js');
|
|
5
5
|
require('./chunk-LTJQUORK.js');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-GCRL3ZYP.js');
|
|
7
|
+
require('./chunk-DEIJXHGJ.js');
|
|
8
|
+
require('./chunk-RYC23C3K.js');
|
|
9
9
|
require('./chunk-5U24PLVV.js');
|
|
10
10
|
require('./chunk-DYLQ6UOI.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-YUTKX7JZ.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.UnifiedViteWeappTailwindcssPlugin =
|
|
14
|
+
exports.UnifiedViteWeappTailwindcssPlugin = _chunkYJSFFRNZjs.UnifiedViteWeappTailwindcssPlugin;
|
package/dist/vite.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnifiedViteWeappTailwindcssPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PALDKVKG.mjs";
|
|
4
4
|
import "./chunk-F2CKKG6Q.mjs";
|
|
5
5
|
import "./chunk-RRHPTTCP.mjs";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-LICQ6EGN.mjs";
|
|
7
|
+
import "./chunk-E7775SFS.mjs";
|
|
8
8
|
import "./chunk-QOTLDKI4.mjs";
|
|
9
9
|
import "./chunk-3WUHHFLF.mjs";
|
|
10
10
|
import "./chunk-OOHJLO5M.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-TNYEOBAC.mjs";
|
|
12
12
|
export {
|
|
13
13
|
UnifiedViteWeappTailwindcssPlugin
|
|
14
14
|
};
|