weapp-tailwindcss 5.0.2 → 5.0.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/{bundle-state-Bvj01pW7.js → bundle-state-CW1X7QIy.js} +1 -1
- package/dist/{bundle-state-DY3eq4Gz.mjs → bundle-state-s5HwfrmR.mjs} +1 -1
- package/dist/cli.js +4 -4
- package/dist/cli.mjs +4 -4
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/gulp.js +2 -2
- package/dist/gulp.mjs +2 -2
- package/dist/{incremental-runtime-class-set-CAEuUesH.mjs → incremental-runtime-class-set-BcAFhVvu.mjs} +2 -1
- package/dist/{incremental-runtime-class-set-Bl18sFqt.js → incremental-runtime-class-set-BdCWIuPW.js} +2 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{precheck-Bj5ReSOU.js → precheck-8Ik4q0yI.js} +4 -4
- package/dist/{precheck-CUr1DYyy.mjs → precheck-h6TNzFbF.mjs} +4 -4
- package/dist/{vite-D1ZdgbWa.js → vite-DT-VUrl0.js} +9 -9
- package/dist/{vite-jBTi5CwO.mjs → vite-yCeZWm7n.mjs} +9 -9
- package/dist/vite.js +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.js +1 -0
- package/dist/{webpack-vk2uqSnK.js → webpack-BFMJqCH9.js} +3 -3
- package/dist/{webpack-CChDqRrl.mjs → webpack-E0gT72EX.mjs} +4 -4
- package/dist/webpack.js +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-C5U5_Hdc.js");
|
|
2
|
-
const require_precheck = require("./precheck-
|
|
2
|
+
const require_precheck = require("./precheck-8Ik4q0yI.js");
|
|
3
3
|
let node_module = require("node:module");
|
|
4
4
|
let node_process = require("node:process");
|
|
5
5
|
node_process = require_chunk.__toESM(node_process);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as traverse, h as babelParse, o as Parser } from "./precheck-
|
|
1
|
+
import { g as traverse, h as babelParse, o as Parser } from "./precheck-h6TNzFbF.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import path from "node:path";
|
package/dist/cli.js
CHANGED
|
@@ -1349,7 +1349,7 @@ function walkEvalExpression(path, options, updater, handler) {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
}
|
|
1351
1351
|
//#endregion
|
|
1352
|
-
//#region \0@oxc-project+runtime@0.
|
|
1352
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/typeof.js
|
|
1353
1353
|
function _typeof(o) {
|
|
1354
1354
|
"@babel/helpers - typeof";
|
|
1355
1355
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -1359,7 +1359,7 @@ function _typeof(o) {
|
|
|
1359
1359
|
}, _typeof(o);
|
|
1360
1360
|
}
|
|
1361
1361
|
//#endregion
|
|
1362
|
-
//#region \0@oxc-project+runtime@0.
|
|
1362
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPrimitive.js
|
|
1363
1363
|
function toPrimitive(t, r) {
|
|
1364
1364
|
if ("object" != _typeof(t) || !t) return t;
|
|
1365
1365
|
var e = t[Symbol.toPrimitive];
|
|
@@ -1371,13 +1371,13 @@ function toPrimitive(t, r) {
|
|
|
1371
1371
|
return ("string" === r ? String : Number)(t);
|
|
1372
1372
|
}
|
|
1373
1373
|
//#endregion
|
|
1374
|
-
//#region \0@oxc-project+runtime@0.
|
|
1374
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPropertyKey.js
|
|
1375
1375
|
function toPropertyKey(t) {
|
|
1376
1376
|
var i = toPrimitive(t, "string");
|
|
1377
1377
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
1378
1378
|
}
|
|
1379
1379
|
//#endregion
|
|
1380
|
-
//#region \0@oxc-project+runtime@0.
|
|
1380
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/defineProperty.js
|
|
1381
1381
|
function _defineProperty(e, r, t) {
|
|
1382
1382
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
1383
1383
|
value: t,
|
package/dist/cli.mjs
CHANGED
|
@@ -1320,7 +1320,7 @@ function walkEvalExpression(path, options, updater, handler) {
|
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
1322
|
//#endregion
|
|
1323
|
-
//#region \0@oxc-project+runtime@0.
|
|
1323
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/typeof.js
|
|
1324
1324
|
function _typeof(o) {
|
|
1325
1325
|
"@babel/helpers - typeof";
|
|
1326
1326
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -1330,7 +1330,7 @@ function _typeof(o) {
|
|
|
1330
1330
|
}, _typeof(o);
|
|
1331
1331
|
}
|
|
1332
1332
|
//#endregion
|
|
1333
|
-
//#region \0@oxc-project+runtime@0.
|
|
1333
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPrimitive.js
|
|
1334
1334
|
function toPrimitive(t, r) {
|
|
1335
1335
|
if ("object" != _typeof(t) || !t) return t;
|
|
1336
1336
|
var e = t[Symbol.toPrimitive];
|
|
@@ -1342,13 +1342,13 @@ function toPrimitive(t, r) {
|
|
|
1342
1342
|
return ("string" === r ? String : Number)(t);
|
|
1343
1343
|
}
|
|
1344
1344
|
//#endregion
|
|
1345
|
-
//#region \0@oxc-project+runtime@0.
|
|
1345
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPropertyKey.js
|
|
1346
1346
|
function toPropertyKey(t) {
|
|
1347
1347
|
var i = toPrimitive(t, "string");
|
|
1348
1348
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
1349
1349
|
}
|
|
1350
1350
|
//#endregion
|
|
1351
|
-
//#region \0@oxc-project+runtime@0.
|
|
1351
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/defineProperty.js
|
|
1352
1352
|
function _defineProperty(e, r, t) {
|
|
1353
1353
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
1354
1354
|
value: t,
|
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_precheck = require("./precheck-
|
|
2
|
+
const require_precheck = require("./precheck-8Ik4q0yI.js");
|
|
3
3
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
4
4
|
//#region src/core.ts
|
|
5
5
|
const DEFAULT_MAIN_CHUNK_STYLE_OPTIONS = Object.freeze({ isMainChunk: true });
|
package/dist/core.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as ensureRuntimeClassSet, n as getCompilerContext, t as shouldSkipJsTransform, y as createTailwindRuntimeReadyPromise } from "./precheck-
|
|
1
|
+
import { b as ensureRuntimeClassSet, n as getCompilerContext, t as shouldSkipJsTransform, y as createTailwindRuntimeReadyPromise } from "./precheck-h6TNzFbF.mjs";
|
|
2
2
|
import { defuOverrideArray } from "@weapp-tailwindcss/shared";
|
|
3
3
|
//#region src/core.ts
|
|
4
4
|
const DEFAULT_MAIN_CHUNK_STYLE_OPTIONS = Object.freeze({ isMainChunk: true });
|
package/dist/gulp.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-C5U5_Hdc.js");
|
|
3
3
|
const require_v3_engine = require("./v3-engine-CmIF_gsq.js");
|
|
4
|
-
const require_precheck = require("./precheck-
|
|
4
|
+
const require_precheck = require("./precheck-8Ik4q0yI.js");
|
|
5
5
|
const require_tailwindcss = require("./tailwindcss-jvoYizzX.js");
|
|
6
|
-
const require_incremental_runtime_class_set = require("./incremental-runtime-class-set-
|
|
6
|
+
const require_incremental_runtime_class_set = require("./incremental-runtime-class-set-BdCWIuPW.js");
|
|
7
7
|
const require_source_candidates = require("./source-candidates-DQxvGPSw.js");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as ensureRuntimeClassSet, n as getCompilerContext, t as shouldSkipJsTransform, y as createTailwindRuntimeReadyPromise } from "./precheck-
|
|
1
|
+
import { b as ensureRuntimeClassSet, n as getCompilerContext, t as shouldSkipJsTransform, y as createTailwindRuntimeReadyPromise } from "./precheck-h6TNzFbF.mjs";
|
|
2
2
|
import { E as normalizeTailwindConfigDirectives, O as normalizeTailwindSourceForGenerator, _ as resolveViteSourceScanEntries, ct as createDebug, l as getRuntimeClassSetSignature, w as hasTailwindRootDirectives } from "./v3-engine-BCUGX3gX.mjs";
|
|
3
3
|
import { c as hasConfiguredTailwindV4CssRoots, l as upsertTailwindV4CssSource } from "./tailwindcss-D5RogwtV.mjs";
|
|
4
|
-
import { i as generateCssByGenerator, r as emitHmrTiming, s as processCachedTask, t as createBundleRuntimeClassSetManager } from "./incremental-runtime-class-set-
|
|
4
|
+
import { i as generateCssByGenerator, r as emitHmrTiming, s as processCachedTask, t as createBundleRuntimeClassSetManager } from "./incremental-runtime-class-set-BcAFhVvu.mjs";
|
|
5
5
|
import { n as createTailwindV3DefaultExtractor, t as createSourceCandidateCollector } from "./source-candidates-D7b-Jzsx.mjs";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import process from "node:process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as replaceWxml, r as resolveStyleOptionsFromContext } from "./precheck-
|
|
1
|
+
import { m as replaceWxml, r as resolveStyleOptionsFromContext } from "./precheck-h6TNzFbF.mjs";
|
|
2
2
|
import { A as parseImportRequest, B as stripGeneratorPlaceholderMarkers, C as hasTailwindApplyDirective, D as normalizeTailwindSourceDirectives, F as hasTailwindGeneratedCss, H as stripTailwindBanners, I as hasTailwindGeneratedCssMarkers, J as filterUnsupportedMiniProgramTailwindV4Candidates, L as splitGeneratorPlaceholderCssBySourceOrder, M as resolveCssEntrySource, N as VITE_MARKER_RE, P as createCssAppend, R as splitTailwindGeneratedCssByBanner, S as resolveTailwindV4SourceOptionsFromPatcher, T as hasTailwindSourceDirectives, U as normalizeConfigDirective, V as stripTailwindBanner, W as prependConfigDirective, Y as loadTailwindV4DesignSystem, ct as createDebug, h as resolveTailwindV4EntriesFromCss, ht as omitUndefined, j as removeTailwindSourceDirectives, k as normalizeTailwindV3CssEntrySource, l as getRuntimeClassSetSignature, n as resolveTailwindV3SourceFromPatcher, nt as normalizeLegacyContentEntries, ot as resolveTailwindV4CssSourceBase, r as resolveTailwindV3SourceOptionsFromPatcher, t as resolveTailwindV3Source, w as hasTailwindRootDirectives, x as resolveTailwindV4SourceFromPatcher, y as resolveTailwindV4Source$1, z as splitTailwindV4GeneratedCssBySourceOrder } from "./v3-engine-BCUGX3gX.mjs";
|
|
3
3
|
import { i as normalizeWeappTailwindcssGeneratorOptions, t as createWeappTailwindcssGenerator } from "./generator-DRHWC1t-.mjs";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -1255,6 +1255,7 @@ function finalizeMiniProgramGeneratorCss(css, target, majorVersion, cssPreflight
|
|
|
1255
1255
|
if (target !== "weapp") return css;
|
|
1256
1256
|
return finalizeMiniProgramCss(css, {
|
|
1257
1257
|
cssPreflight: majorVersion === 4 && options.injectPreflight !== false ? cssPreflight : void 0,
|
|
1258
|
+
isTailwindcssV4: majorVersion === 4,
|
|
1258
1259
|
preservePseudoContentInit: majorVersion === 3
|
|
1259
1260
|
});
|
|
1260
1261
|
}
|
package/dist/{incremental-runtime-class-set-Bl18sFqt.js → incremental-runtime-class-set-BdCWIuPW.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-C5U5_Hdc.js");
|
|
2
2
|
const require_v3_engine = require("./v3-engine-CmIF_gsq.js");
|
|
3
3
|
const require_generator = require("./generator-Bd1LntD3.js");
|
|
4
|
-
const require_precheck = require("./precheck-
|
|
4
|
+
const require_precheck = require("./precheck-8Ik4q0yI.js");
|
|
5
5
|
let node_fs = require("node:fs");
|
|
6
6
|
let postcss = require("postcss");
|
|
7
7
|
postcss = require_chunk.__toESM(postcss);
|
|
@@ -1259,6 +1259,7 @@ function finalizeMiniProgramGeneratorCss(css, target, majorVersion, cssPreflight
|
|
|
1259
1259
|
if (target !== "weapp") return css;
|
|
1260
1260
|
return (0, _weapp_tailwindcss_postcss.finalizeMiniProgramCss)(css, {
|
|
1261
1261
|
cssPreflight: majorVersion === 4 && options.injectPreflight !== false ? cssPreflight : void 0,
|
|
1262
|
+
isTailwindcssV4: majorVersion === 4,
|
|
1262
1263
|
preservePseudoContentInit: majorVersion === 3
|
|
1263
1264
|
});
|
|
1264
1265
|
}
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_generator = require("./generator-Bd1LntD3.js");
|
|
3
3
|
const require_gulp = require("./gulp.js");
|
|
4
4
|
const require_postcss = require("./postcss-DfnqZ4Bm.js");
|
|
5
|
-
const require_vite = require("./vite-
|
|
6
|
-
const require_webpack = require("./webpack-
|
|
5
|
+
const require_vite = require("./vite-DT-VUrl0.js");
|
|
6
|
+
const require_webpack = require("./webpack-BFMJqCH9.js");
|
|
7
7
|
let _weapp_tailwindcss_postcss = require("@weapp-tailwindcss/postcss");
|
|
8
8
|
exports.WeappTailwindcss = require_vite.WeappTailwindcss;
|
|
9
9
|
exports.createPlugins = require_gulp.createPlugins;
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createWeappTailwindcssGenerator } from "./generator-DRHWC1t-.mjs";
|
|
2
2
|
import { WeappTailwindcss as createPlugins } from "./gulp.mjs";
|
|
3
3
|
import { t as weappTailwindcssPostcssPlugin } from "./postcss-CJrmfXvi.mjs";
|
|
4
|
-
import { t as WeappTailwindcss } from "./vite-
|
|
5
|
-
import { n as weappTailwindcssPackageDir } from "./webpack-
|
|
4
|
+
import { t as WeappTailwindcss } from "./vite-yCeZWm7n.mjs";
|
|
5
|
+
import { n as weappTailwindcssPackageDir } from "./webpack-E0gT72EX.mjs";
|
|
6
6
|
import { unitConversionComposeRules, unitConversionPresets } from "@weapp-tailwindcss/postcss";
|
|
7
7
|
export { WeappTailwindcss, createPlugins, createWeappTailwindcssGenerator, unitConversionComposeRules, unitConversionPresets, weappTailwindcssPackageDir, weappTailwindcssPostcssPlugin };
|
|
@@ -1230,7 +1230,7 @@ function walkEvalExpression(path, options, updater, handler) {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
1232
1232
|
//#endregion
|
|
1233
|
-
//#region \0@oxc-project+runtime@0.
|
|
1233
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/typeof.js
|
|
1234
1234
|
function _typeof(o) {
|
|
1235
1235
|
"@babel/helpers - typeof";
|
|
1236
1236
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -1241,7 +1241,7 @@ function _typeof(o) {
|
|
|
1241
1241
|
}
|
|
1242
1242
|
var init_typeof = require_chunk.__esmMin((() => {}));
|
|
1243
1243
|
//#endregion
|
|
1244
|
-
//#region \0@oxc-project+runtime@0.
|
|
1244
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPrimitive.js
|
|
1245
1245
|
function toPrimitive(t, r) {
|
|
1246
1246
|
if ("object" != _typeof(t) || !t) return t;
|
|
1247
1247
|
var e = t[Symbol.toPrimitive];
|
|
@@ -1256,7 +1256,7 @@ var init_toPrimitive = require_chunk.__esmMin((() => {
|
|
|
1256
1256
|
init_typeof();
|
|
1257
1257
|
}));
|
|
1258
1258
|
//#endregion
|
|
1259
|
-
//#region \0@oxc-project+runtime@0.
|
|
1259
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPropertyKey.js
|
|
1260
1260
|
function toPropertyKey(t) {
|
|
1261
1261
|
var i = toPrimitive(t, "string");
|
|
1262
1262
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
@@ -1266,7 +1266,7 @@ var init_toPropertyKey = require_chunk.__esmMin((() => {
|
|
|
1266
1266
|
init_toPrimitive();
|
|
1267
1267
|
}));
|
|
1268
1268
|
//#endregion
|
|
1269
|
-
//#region \0@oxc-project+runtime@0.
|
|
1269
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/defineProperty.js
|
|
1270
1270
|
function _defineProperty(e, r, t) {
|
|
1271
1271
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
1272
1272
|
value: t,
|
|
@@ -1229,7 +1229,7 @@ function walkEvalExpression(path, options, updater, handler) {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
1231
1231
|
//#endregion
|
|
1232
|
-
//#region \0@oxc-project+runtime@0.
|
|
1232
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/typeof.js
|
|
1233
1233
|
function _typeof(o) {
|
|
1234
1234
|
"@babel/helpers - typeof";
|
|
1235
1235
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -1240,7 +1240,7 @@ function _typeof(o) {
|
|
|
1240
1240
|
}
|
|
1241
1241
|
var init_typeof = __esmMin((() => {}));
|
|
1242
1242
|
//#endregion
|
|
1243
|
-
//#region \0@oxc-project+runtime@0.
|
|
1243
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPrimitive.js
|
|
1244
1244
|
function toPrimitive(t, r) {
|
|
1245
1245
|
if ("object" != _typeof(t) || !t) return t;
|
|
1246
1246
|
var e = t[Symbol.toPrimitive];
|
|
@@ -1255,7 +1255,7 @@ var init_toPrimitive = __esmMin((() => {
|
|
|
1255
1255
|
init_typeof();
|
|
1256
1256
|
}));
|
|
1257
1257
|
//#endregion
|
|
1258
|
-
//#region \0@oxc-project+runtime@0.
|
|
1258
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/toPropertyKey.js
|
|
1259
1259
|
function toPropertyKey(t) {
|
|
1260
1260
|
var i = toPrimitive(t, "string");
|
|
1261
1261
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
@@ -1265,7 +1265,7 @@ var init_toPropertyKey = __esmMin((() => {
|
|
|
1265
1265
|
init_toPrimitive();
|
|
1266
1266
|
}));
|
|
1267
1267
|
//#endregion
|
|
1268
|
-
//#region \0@oxc-project+runtime@0.
|
|
1268
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/defineProperty.js
|
|
1269
1269
|
function _defineProperty(e, r, t) {
|
|
1270
1270
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
1271
1271
|
value: t,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-C5U5_Hdc.js");
|
|
2
2
|
const require_v3_engine = require("./v3-engine-CmIF_gsq.js");
|
|
3
3
|
const require_generator = require("./generator-Bd1LntD3.js");
|
|
4
|
-
const require_precheck = require("./precheck-
|
|
4
|
+
const require_precheck = require("./precheck-8Ik4q0yI.js");
|
|
5
5
|
const require_utils = require("./utils-D7Ygohep.js");
|
|
6
6
|
const require_tailwindcss = require("./tailwindcss-jvoYizzX.js");
|
|
7
|
-
const require_incremental_runtime_class_set = require("./incremental-runtime-class-set-
|
|
7
|
+
const require_incremental_runtime_class_set = require("./incremental-runtime-class-set-BdCWIuPW.js");
|
|
8
8
|
const require_source_candidates = require("./source-candidates-DQxvGPSw.js");
|
|
9
|
-
const require_bundle_state = require("./bundle-state-
|
|
9
|
+
const require_bundle_state = require("./bundle-state-CW1X7QIy.js");
|
|
10
10
|
require("./logger-TlKT3xmR.js");
|
|
11
11
|
let node_fs = require("node:fs");
|
|
12
12
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -14607,13 +14607,13 @@ var require_compiler_dom = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
14607
14607
|
else module.exports = require_compiler_dom_cjs();
|
|
14608
14608
|
}));
|
|
14609
14609
|
//#endregion
|
|
14610
|
-
//#region \0@oxc-project+runtime@0.
|
|
14610
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/checkPrivateRedeclaration.js
|
|
14611
14611
|
function _checkPrivateRedeclaration(e, t) {
|
|
14612
14612
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
14613
14613
|
}
|
|
14614
14614
|
var init_checkPrivateRedeclaration = require_chunk.__esmMin((() => {}));
|
|
14615
14615
|
//#endregion
|
|
14616
|
-
//#region \0@oxc-project+runtime@0.
|
|
14616
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/classPrivateMethodInitSpec.js
|
|
14617
14617
|
function _classPrivateMethodInitSpec(e, a) {
|
|
14618
14618
|
_checkPrivateRedeclaration(e, a), a.add(e);
|
|
14619
14619
|
}
|
|
@@ -14621,7 +14621,7 @@ var init_classPrivateMethodInitSpec = require_chunk.__esmMin((() => {
|
|
|
14621
14621
|
init_checkPrivateRedeclaration();
|
|
14622
14622
|
}));
|
|
14623
14623
|
//#endregion
|
|
14624
|
-
//#region \0@oxc-project+runtime@0.
|
|
14624
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/classPrivateFieldInitSpec.js
|
|
14625
14625
|
function _classPrivateFieldInitSpec(e, t, a) {
|
|
14626
14626
|
_checkPrivateRedeclaration(e, t), t.set(e, a);
|
|
14627
14627
|
}
|
|
@@ -14629,14 +14629,14 @@ var init_classPrivateFieldInitSpec = require_chunk.__esmMin((() => {
|
|
|
14629
14629
|
init_checkPrivateRedeclaration();
|
|
14630
14630
|
}));
|
|
14631
14631
|
//#endregion
|
|
14632
|
-
//#region \0@oxc-project+runtime@0.
|
|
14632
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/assertClassBrand.js
|
|
14633
14633
|
function _assertClassBrand(e, t, n) {
|
|
14634
14634
|
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
14635
14635
|
throw new TypeError("Private element is not present on this object");
|
|
14636
14636
|
}
|
|
14637
14637
|
var init_assertClassBrand = require_chunk.__esmMin((() => {}));
|
|
14638
14638
|
//#endregion
|
|
14639
|
-
//#region \0@oxc-project+runtime@0.
|
|
14639
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/classPrivateFieldGet2.js
|
|
14640
14640
|
function _classPrivateFieldGet2(s, a) {
|
|
14641
14641
|
return s.get(_assertClassBrand(s, a));
|
|
14642
14642
|
}
|
|
@@ -14644,7 +14644,7 @@ var init_classPrivateFieldGet2 = require_chunk.__esmMin((() => {
|
|
|
14644
14644
|
init_assertClassBrand();
|
|
14645
14645
|
}));
|
|
14646
14646
|
//#endregion
|
|
14647
|
-
//#region \0@oxc-project+runtime@0.
|
|
14647
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/classPrivateFieldSet2.js
|
|
14648
14648
|
function _classPrivateFieldSet2(s, a, r) {
|
|
14649
14649
|
return s.set(_assertClassBrand(s, a), r), r;
|
|
14650
14650
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { C as __esmMin, S as __commonJSMin, _ as toCustomAttributesEntities, a as vitePluginName, c as createAttributeMatcher, d as _defineProperty, f as init_defineProperty, h as babelParse, l as analyzeSource, m as replaceWxml, n as getCompilerContext, p as isClassContextLiteralPath, s as generateCode, t as shouldSkipJsTransform, u as JsTokenUpdater, v as collectRuntimeClassSet, w as __require, x as refreshTailwindRuntimeState, y as createTailwindRuntimeReadyPromise } from "./precheck-
|
|
1
|
+
import { C as __esmMin, S as __commonJSMin, _ as toCustomAttributesEntities, a as vitePluginName, c as createAttributeMatcher, d as _defineProperty, f as init_defineProperty, h as babelParse, l as analyzeSource, m as replaceWxml, n as getCompilerContext, p as isClassContextLiteralPath, s as generateCode, t as shouldSkipJsTransform, u as JsTokenUpdater, v as collectRuntimeClassSet, w as __require, x as refreshTailwindRuntimeState, y as createTailwindRuntimeReadyPromise } from "./precheck-h6TNzFbF.mjs";
|
|
2
2
|
import { E as normalizeTailwindConfigDirectives, I as hasTailwindGeneratedCssMarkers, J as filterUnsupportedMiniProgramTailwindV4Candidates, O as normalizeTailwindSourceForGenerator, T as hasTailwindSourceDirectives, _ as resolveViteSourceScanEntries, ct as createDebug, dt as findTailwindConfig, ft as resolveTailwindcssOptions, g as resolveTailwindV4EntriesFromCssCached, gt as findNearestPackageRoot, ht as omitUndefined, l as getRuntimeClassSetSignature, m as discoverTailwindV4CssEntries, ot as resolveTailwindV4CssSourceBase, p as createViteSourceScanMatcher, v as resolveViteTailwindV4CssDependencies, w as hasTailwindRootDirectives } from "./v3-engine-BCUGX3gX.mjs";
|
|
3
3
|
import { i as normalizeWeappTailwindcssGeneratorOptions } from "./generator-DRHWC1t-.mjs";
|
|
4
4
|
import { o as resolveUniUtsPlatform } from "./utils-DsaS975I.mjs";
|
|
5
5
|
import { a as normalizeCssEntries, c as hasConfiguredTailwindV4CssRoots, i as resolveUniAppXOptions, l as upsertTailwindV4CssSource, r as isUniAppXEnabled } from "./tailwindcss-D5RogwtV.mjs";
|
|
6
|
-
import { a as validateCandidatesByGenerator, i as generateCssByGenerator, n as createHmrTimingRecorder, o as mergeMarkedUserLayerComponentsCss, s as processCachedTask, t as createBundleRuntimeClassSetManager } from "./incremental-runtime-class-set-
|
|
6
|
+
import { a as validateCandidatesByGenerator, i as generateCssByGenerator, n as createHmrTimingRecorder, o as mergeMarkedUserLayerComponentsCss, s as processCachedTask, t as createBundleRuntimeClassSetManager } from "./incremental-runtime-class-set-BcAFhVvu.mjs";
|
|
7
7
|
import { n as createTailwindV3DefaultExtractor, r as isSourceCandidateRequest, t as createSourceCandidateCollector } from "./source-candidates-D7b-Jzsx.mjs";
|
|
8
|
-
import { S as toAbsoluteOutputPath, _ as slash, a as applyLinkedResults, b as normalizeOutputPathKey, c as createBundlerGeneratedCssMarker, d as stripBundlerGeneratedCssMarkers, f as resolvePackageDir, g as isCSSRequest, h as formatPostcssSourceMap, i as createRuntimeAffectingSourceSignature, l as hasBundlerGeneratedCssMarker, m as cleanUrl, n as createBundleBuildState, o as createBundleModuleGraphOptions, p as resolvePluginDisabledState, r as updateBundleBuildState, s as pushConcurrentTaskFactories, t as buildBundleSnapshot, u as parseBundlerGeneratedCssMarkerBlocks, v as isSourceStyleRequest } from "./bundle-state-
|
|
8
|
+
import { S as toAbsoluteOutputPath, _ as slash, a as applyLinkedResults, b as normalizeOutputPathKey, c as createBundlerGeneratedCssMarker, d as stripBundlerGeneratedCssMarkers, f as resolvePackageDir, g as isCSSRequest, h as formatPostcssSourceMap, i as createRuntimeAffectingSourceSignature, l as hasBundlerGeneratedCssMarker, m as cleanUrl, n as createBundleBuildState, o as createBundleModuleGraphOptions, p as resolvePluginDisabledState, r as updateBundleBuildState, s as pushConcurrentTaskFactories, t as buildBundleSnapshot, u as parseBundlerGeneratedCssMarkerBlocks, v as isSourceStyleRequest } from "./bundle-state-s5HwfrmR.mjs";
|
|
9
9
|
import { t as logger$1 } from "./logger-BNzxZbZj.mjs";
|
|
10
10
|
import fs, { existsSync, readFileSync } from "node:fs";
|
|
11
11
|
import postcss from "postcss";
|
|
@@ -14598,13 +14598,13 @@ var require_compiler_dom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14598
14598
|
else module.exports = require_compiler_dom_cjs();
|
|
14599
14599
|
}));
|
|
14600
14600
|
//#endregion
|
|
14601
|
-
//#region \0@oxc-project+runtime@0.
|
|
14601
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/checkPrivateRedeclaration.js
|
|
14602
14602
|
function _checkPrivateRedeclaration(e, t) {
|
|
14603
14603
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
14604
14604
|
}
|
|
14605
14605
|
var init_checkPrivateRedeclaration = __esmMin((() => {}));
|
|
14606
14606
|
//#endregion
|
|
14607
|
-
//#region \0@oxc-project+runtime@0.
|
|
14607
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/classPrivateMethodInitSpec.js
|
|
14608
14608
|
function _classPrivateMethodInitSpec(e, a) {
|
|
14609
14609
|
_checkPrivateRedeclaration(e, a), a.add(e);
|
|
14610
14610
|
}
|
|
@@ -14612,7 +14612,7 @@ var init_classPrivateMethodInitSpec = __esmMin((() => {
|
|
|
14612
14612
|
init_checkPrivateRedeclaration();
|
|
14613
14613
|
}));
|
|
14614
14614
|
//#endregion
|
|
14615
|
-
//#region \0@oxc-project+runtime@0.
|
|
14615
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/classPrivateFieldInitSpec.js
|
|
14616
14616
|
function _classPrivateFieldInitSpec(e, t, a) {
|
|
14617
14617
|
_checkPrivateRedeclaration(e, t), t.set(e, a);
|
|
14618
14618
|
}
|
|
@@ -14620,14 +14620,14 @@ var init_classPrivateFieldInitSpec = __esmMin((() => {
|
|
|
14620
14620
|
init_checkPrivateRedeclaration();
|
|
14621
14621
|
}));
|
|
14622
14622
|
//#endregion
|
|
14623
|
-
//#region \0@oxc-project+runtime@0.
|
|
14623
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/assertClassBrand.js
|
|
14624
14624
|
function _assertClassBrand(e, t, n) {
|
|
14625
14625
|
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
14626
14626
|
throw new TypeError("Private element is not present on this object");
|
|
14627
14627
|
}
|
|
14628
14628
|
var init_assertClassBrand = __esmMin((() => {}));
|
|
14629
14629
|
//#endregion
|
|
14630
|
-
//#region \0@oxc-project+runtime@0.
|
|
14630
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/classPrivateFieldGet2.js
|
|
14631
14631
|
function _classPrivateFieldGet2(s, a) {
|
|
14632
14632
|
return s.get(_assertClassBrand(s, a));
|
|
14633
14633
|
}
|
|
@@ -14635,7 +14635,7 @@ var init_classPrivateFieldGet2 = __esmMin((() => {
|
|
|
14635
14635
|
init_assertClassBrand();
|
|
14636
14636
|
}));
|
|
14637
14637
|
//#endregion
|
|
14638
|
-
//#region \0@oxc-project+runtime@0.
|
|
14638
|
+
//#region \0@oxc-project+runtime@0.134.0/helpers/esm/classPrivateFieldSet2.js
|
|
14639
14639
|
function _classPrivateFieldSet2(s, a, r) {
|
|
14640
14640
|
return s.set(_assertClassBrand(s, a), r), r;
|
|
14641
14641
|
}
|
package/dist/vite.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_vite = require("./vite-
|
|
2
|
+
const require_vite = require("./vite-DT-VUrl0.js");
|
|
3
3
|
exports.WeappTailwindcss = require_vite.WeappTailwindcss;
|
|
4
4
|
exports.weappTailwindcss = require_vite.WeappTailwindcss;
|
package/dist/vite.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as WeappTailwindcss } from "./vite-
|
|
1
|
+
import { t as WeappTailwindcss } from "./vite-yCeZWm7n.mjs";
|
|
2
2
|
export { WeappTailwindcss, WeappTailwindcss as weappTailwindcss };
|
|
@@ -5306,6 +5306,7 @@ function finalizeMiniProgramGeneratorCss(css, target, majorVersion, cssPreflight
|
|
|
5306
5306
|
if (target !== "weapp") return css;
|
|
5307
5307
|
return (0, _weapp_tailwindcss_postcss.finalizeMiniProgramCss)(css, {
|
|
5308
5308
|
cssPreflight: majorVersion === 4 && options.injectPreflight !== false ? cssPreflight : void 0,
|
|
5309
|
+
isTailwindcssV4: majorVersion === 4,
|
|
5309
5310
|
preservePseudoContentInit: majorVersion === 3
|
|
5310
5311
|
});
|
|
5311
5312
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-C5U5_Hdc.js");
|
|
2
2
|
const require_v3_engine = require("./v3-engine-CmIF_gsq.js");
|
|
3
3
|
const require_generator = require("./generator-Bd1LntD3.js");
|
|
4
|
-
const require_precheck = require("./precheck-
|
|
4
|
+
const require_precheck = require("./precheck-8Ik4q0yI.js");
|
|
5
5
|
const require_utils = require("./utils-D7Ygohep.js");
|
|
6
6
|
const require_tailwindcss = require("./tailwindcss-jvoYizzX.js");
|
|
7
|
-
const require_incremental_runtime_class_set = require("./incremental-runtime-class-set-
|
|
8
|
-
const require_bundle_state = require("./bundle-state-
|
|
7
|
+
const require_incremental_runtime_class_set = require("./incremental-runtime-class-set-BdCWIuPW.js");
|
|
8
|
+
const require_bundle_state = require("./bundle-state-CW1X7QIy.js");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
10
10
|
node_fs = require_chunk.__toESM(node_fs);
|
|
11
11
|
let node_module = require("node:module");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { b as ensureRuntimeClassSet, d as _defineProperty, f as init_defineProperty, i as pluginName, n as getCompilerContext, t as shouldSkipJsTransform, x as refreshTailwindRuntimeState, y as createTailwindRuntimeReadyPromise } from "./precheck-
|
|
1
|
+
import { b as ensureRuntimeClassSet, d as _defineProperty, f as init_defineProperty, i as pluginName, n as getCompilerContext, t as shouldSkipJsTransform, x as refreshTailwindRuntimeState, y as createTailwindRuntimeReadyPromise } from "./precheck-h6TNzFbF.mjs";
|
|
2
2
|
import { ct as createDebug, ft as resolveTailwindcssOptions, j as removeTailwindSourceDirectives, l as getRuntimeClassSetSignature } from "./v3-engine-BCUGX3gX.mjs";
|
|
3
3
|
import { i as normalizeWeappTailwindcssGeneratorOptions } from "./generator-DRHWC1t-.mjs";
|
|
4
4
|
import { r as getGroupedEntries } from "./utils-DsaS975I.mjs";
|
|
5
5
|
import { c as hasConfiguredTailwindV4CssRoots, l as upsertTailwindV4CssSource } from "./tailwindcss-D5RogwtV.mjs";
|
|
6
|
-
import { i as generateCssByGenerator, r as emitHmrTiming, s as processCachedTask, t as createBundleRuntimeClassSetManager } from "./incremental-runtime-class-set-
|
|
7
|
-
import { S as toAbsoluteOutputPath, d as stripBundlerGeneratedCssMarkers, f as resolvePackageDir, n as createBundleBuildState, p as resolvePluginDisabledState, r as updateBundleBuildState, s as pushConcurrentTaskFactories, t as buildBundleSnapshot, v as isSourceStyleRequest, x as resolveOutputSpecifier, y as stripRequestQuery } from "./bundle-state-
|
|
6
|
+
import { i as generateCssByGenerator, r as emitHmrTiming, s as processCachedTask, t as createBundleRuntimeClassSetManager } from "./incremental-runtime-class-set-BcAFhVvu.mjs";
|
|
7
|
+
import { S as toAbsoluteOutputPath, d as stripBundlerGeneratedCssMarkers, f as resolvePackageDir, n as createBundleBuildState, p as resolvePluginDisabledState, r as updateBundleBuildState, s as pushConcurrentTaskFactories, t as buildBundleSnapshot, v as isSourceStyleRequest, x as resolveOutputSpecifier, y as stripRequestQuery } from "./bundle-state-s5HwfrmR.mjs";
|
|
8
8
|
import Module, { createRequire } from "node:module";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import process from "node:process";
|
|
@@ -548,7 +548,7 @@ function setupWebpackV5ProcessAssetsHook(options) {
|
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
550
|
//#endregion
|
|
551
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.
|
|
551
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.2_oxc-resolver@11.20.0_tsx@4.22.4_typescript@6.0.3_unrun@0.2.37_synckit@0.1_c2142480ddc0e0584f1991298dd762a0/node_modules/tsdown/esm-shims.js
|
|
552
552
|
const getFilename = () => fileURLToPath(import.meta.url);
|
|
553
553
|
const getDirname = () => path.dirname(getFilename());
|
|
554
554
|
const __dirname = /* @__PURE__ */ getDirname();
|
package/dist/webpack.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_webpack = require("./webpack-
|
|
2
|
+
const require_webpack = require("./webpack-BFMJqCH9.js");
|
|
3
3
|
exports.WeappTailwindcss = require_webpack.WeappTailwindcss;
|
|
4
4
|
exports.weappTailwindcss = require_webpack.WeappTailwindcss;
|
|
5
5
|
exports.weappTailwindcssPackageDir = require_webpack.weappTailwindcssPackageDir;
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as weappTailwindcssPackageDir, t as WeappTailwindcss } from "./webpack-
|
|
1
|
+
import { n as weappTailwindcssPackageDir, t as WeappTailwindcss } from "./webpack-E0gT72EX.mjs";
|
|
2
2
|
export { WeappTailwindcss, WeappTailwindcss as weappTailwindcss, weappTailwindcssPackageDir };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-tailwindcss",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -181,11 +181,11 @@
|
|
|
181
181
|
"magic-string": "0.30.21",
|
|
182
182
|
"micromatch": "^4.0.8",
|
|
183
183
|
"postcss-load-config": "^6.0.1",
|
|
184
|
-
"semver": "~7.8.
|
|
184
|
+
"semver": "~7.8.2",
|
|
185
185
|
"tailwindcss-patch": "9.4.2",
|
|
186
186
|
"yaml": "^2.9.0",
|
|
187
187
|
"@weapp-tailwindcss/logger": "2.0.0",
|
|
188
|
-
"@weapp-tailwindcss/postcss": "3.0.
|
|
188
|
+
"@weapp-tailwindcss/postcss": "3.0.2",
|
|
189
189
|
"@weapp-tailwindcss/reset": "0.1.1",
|
|
190
190
|
"@weapp-tailwindcss/shared": "2.0.0",
|
|
191
191
|
"tailwindcss-config": "2.0.0"
|