weapp-tailwindcss 5.1.1 → 5.1.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/README.en.md +2 -0
- package/README.md +2 -0
- package/dist/bundlers/gulp/index.d.ts +3 -3
- package/dist/bundlers/rspack/index.d.ts +20 -0
- package/dist/bundlers/shared/generator-css/source-resolver.d.ts +1 -1
- package/dist/bundlers/vite/css-memory.d.ts +1 -0
- package/dist/bundlers/vite/generate-bundle/css-output-helpers.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/source-candidate-scope.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/temporary-css-assets.d.ts +12 -0
- package/dist/bundlers/vite/generate-bundle/types.d.ts +1 -0
- package/dist/bundlers/vite/serve-js-transform.d.ts +11 -0
- package/dist/bundlers/webpack/BaseUnifiedPlugin/v5-assets/pipeline-helpers.d.ts +4 -1
- package/dist/cli.js +8 -8
- package/dist/cli.mjs +8 -8
- package/dist/{context-DlpKD7aN.mjs → context-B07Vf584.mjs} +34 -34
- package/dist/{context-B6hVF7dr.js → context-D75pwtBW.js} +43 -43
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/css-macro/postcss.js +2 -2
- package/dist/css-macro.js +3 -3
- package/dist/{defaults-CmFBmxsr.js → defaults-DQhgnnn-.js} +1 -1
- package/dist/defaults.js +1 -1
- package/dist/framework/index.d.ts +7 -2
- package/dist/framework.js +39 -8
- package/dist/framework.mjs +33 -6
- package/dist/generator/options.d.ts +3 -1
- package/dist/{generator-6oMJtTDO.js → generator-CV_0irKO.js} +4 -2
- package/dist/{generator-CjzBK7h-.mjs → generator-DNs6ekoC.mjs} +3 -1
- package/dist/generator.js +2 -2
- package/dist/generator.mjs +2 -2
- package/dist/{gulp-BtGq6LP9.js → gulp-B_u8NjQL.js} +9 -9
- package/dist/{gulp-DNU10Vtc.mjs → gulp-aQMZ0M7c.mjs} +4 -4
- package/dist/gulp.js +1 -1
- package/dist/gulp.mjs +1 -1
- package/dist/{hmr-timing-B0KuWDjV.mjs → hmr-timing-DLYQTCDb.mjs} +40 -31
- package/dist/{hmr-timing-CegXR9O4.js → hmr-timing-DOoHun3i.js} +42 -33
- package/dist/index.js +9 -4
- package/dist/index.mjs +7 -6
- package/dist/postcss-html-transform.js +2 -2
- package/dist/postcss.js +2 -2
- package/dist/postcss.mjs +2 -2
- package/dist/presets/shared.d.ts +4 -0
- package/dist/presets.js +32 -16
- package/dist/presets.mjs +28 -14
- package/dist/reset.js +2 -2
- package/dist/rspack.d.ts +3 -0
- package/dist/rspack.js +68 -0
- package/dist/rspack.mjs +62 -0
- package/dist/{source-candidate-scan-signature-BKYb9jxa.js → source-candidate-scan-signature-DzwebZrf.js} +6 -6
- package/dist/{source-candidate-scan-signature-B5af2Ahe.mjs → source-candidate-scan-signature-pS87mdHZ.mjs} +3 -3
- package/dist/{tailwindcss-dbrbY4cd.js → tailwindcss-BSCvrs1p.js} +8 -8
- package/dist/{tailwindcss-B5mRo0-M.mjs → tailwindcss-BwV3_Ryc.mjs} +3 -3
- package/dist/{transform-fRBeuuK-.mjs → transform-Clj7R818.mjs} +19 -19
- package/dist/{transform-vLwZpiTE.js → transform-fin-OTVD.js} +47 -47
- package/dist/{utils-BCa37Wqj.js → utils-D3h8j7Mk.js} +2 -2
- package/dist/{v4-engine-C3qSwQ-e.mjs → v4-engine-BklH3CpJ.mjs} +5 -5
- package/dist/{v4-engine-ON_oSLfO.js → v4-engine-CKbS27-o.js} +10 -10
- package/dist/{vite-CWRooooa.mjs → vite-5Wn0PIzJ.mjs} +244 -45
- package/dist/{vite-w-RkgaTY.js → vite-CkVMSDDp.js} +249 -50
- package/dist/vite.js +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.js +71 -34
- package/dist/weapp-tw-runtime-classset-loader.js +2 -2
- package/dist/{webpack-8PaV1gG3.mjs → webpack-DEag6ueE.mjs} +66 -18
- package/dist/{webpack-CGgBOx9l.js → webpack-hvSFaicc.js} +71 -23
- package/dist/webpack.js +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +10 -5
- /package/dist/{chunk-emK7D4bc.js → rolldown-runtime-emK7D4bc.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_v4_engine = require("./v4-engine-
|
|
3
|
-
const require_generator = require("./generator-
|
|
4
|
-
require("./utils-
|
|
5
|
-
const require_defaults = require("./defaults-
|
|
6
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-emK7D4bc.js");
|
|
2
|
+
const require_v4_engine = require("./v4-engine-CKbS27-o.js");
|
|
3
|
+
const require_generator = require("./generator-CV_0irKO.js");
|
|
4
|
+
require("./utils-D3h8j7Mk.js");
|
|
5
|
+
const require_defaults = require("./defaults-DQhgnnn-.js");
|
|
6
|
+
const require_tailwindcss = require("./tailwindcss-BSCvrs1p.js");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
|
-
node_path =
|
|
8
|
+
node_path = require_rolldown_runtime.__toESM(node_path);
|
|
9
9
|
let node_process = require("node:process");
|
|
10
|
-
node_process =
|
|
10
|
+
node_process = require_rolldown_runtime.__toESM(node_process);
|
|
11
11
|
let _tailwindcss_mangle_engine = require("@tailwindcss-mangle/engine");
|
|
12
12
|
let _weapp_tailwindcss_postcss = require("@weapp-tailwindcss/postcss");
|
|
13
13
|
let lru_cache = require("lru-cache");
|
|
@@ -18,15 +18,15 @@ let _weapp_tailwindcss_logger = require("@weapp-tailwindcss/logger");
|
|
|
18
18
|
let _weapp_tailwindcss_shared_node = require("@weapp-tailwindcss/shared/node");
|
|
19
19
|
let _weapp_core_escape = require("@weapp-core/escape");
|
|
20
20
|
let debug = require("debug");
|
|
21
|
-
debug =
|
|
21
|
+
debug = require_rolldown_runtime.__toESM(debug);
|
|
22
22
|
let _babel_traverse = require("@babel/traverse");
|
|
23
|
-
_babel_traverse =
|
|
23
|
+
_babel_traverse = require_rolldown_runtime.__toESM(_babel_traverse);
|
|
24
24
|
let _babel_parser = require("@babel/parser");
|
|
25
25
|
let magic_string = require("magic-string");
|
|
26
|
-
magic_string =
|
|
26
|
+
magic_string = require_rolldown_runtime.__toESM(magic_string);
|
|
27
27
|
let _ast_core_escape = require("@ast-core/escape");
|
|
28
28
|
let _babel_types = require("@babel/types");
|
|
29
|
-
_babel_types =
|
|
29
|
+
_babel_types = require_rolldown_runtime.__toESM(_babel_types);
|
|
30
30
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
31
31
|
//#region src/cache/index.ts
|
|
32
32
|
function isProcessResult(value) {
|
|
@@ -257,7 +257,7 @@ async function collectTailwindV4GeneratorClassSet(tailwindRuntime) {
|
|
|
257
257
|
async function mergeTailwindV4GeneratorClassSet(tailwindRuntime, classSet) {
|
|
258
258
|
const generatorClassSet = await collectTailwindV4GeneratorClassSet(tailwindRuntime).catch(() => void 0);
|
|
259
259
|
if (!generatorClassSet || generatorClassSet.size === 0) return classSet;
|
|
260
|
-
return new Set([...classSet, ...generatorClassSet]);
|
|
260
|
+
return /* @__PURE__ */ new Set([...classSet, ...generatorClassSet]);
|
|
261
261
|
}
|
|
262
262
|
async function collectRuntimeClassSet(tailwindRuntime, options = {}) {
|
|
263
263
|
let activeRuntime = tailwindRuntime;
|
|
@@ -844,14 +844,14 @@ function decodeUnicode2(input) {
|
|
|
844
844
|
}
|
|
845
845
|
//#endregion
|
|
846
846
|
//#region src/js/class-context.ts
|
|
847
|
-
const CLASS_LIKE_KEYWORDS = new Set([
|
|
847
|
+
const CLASS_LIKE_KEYWORDS = /* @__PURE__ */ new Set([
|
|
848
848
|
"class",
|
|
849
849
|
"classname",
|
|
850
850
|
"hoverclass",
|
|
851
851
|
"virtualhostclass",
|
|
852
852
|
"rootclass"
|
|
853
853
|
]);
|
|
854
|
-
const CLASS_HELPER_IDENTIFIERS = new Set([
|
|
854
|
+
const CLASS_HELPER_IDENTIFIERS = /* @__PURE__ */ new Set([
|
|
855
855
|
"cn",
|
|
856
856
|
"clsx",
|
|
857
857
|
"classnames",
|
|
@@ -1297,7 +1297,7 @@ function walkEvalExpression(path, options, updater, handler) {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
1299
|
//#endregion
|
|
1300
|
-
//#region \0@oxc-project+runtime@0.
|
|
1300
|
+
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/typeof.js
|
|
1301
1301
|
function _typeof(o) {
|
|
1302
1302
|
"@babel/helpers - typeof";
|
|
1303
1303
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -1307,7 +1307,7 @@ function _typeof(o) {
|
|
|
1307
1307
|
}, _typeof(o);
|
|
1308
1308
|
}
|
|
1309
1309
|
//#endregion
|
|
1310
|
-
//#region \0@oxc-project+runtime@0.
|
|
1310
|
+
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPrimitive.js
|
|
1311
1311
|
function toPrimitive(t, r) {
|
|
1312
1312
|
if ("object" != _typeof(t) || !t) return t;
|
|
1313
1313
|
var e = t[Symbol.toPrimitive];
|
|
@@ -1319,13 +1319,13 @@ function toPrimitive(t, r) {
|
|
|
1319
1319
|
return ("string" === r ? String : Number)(t);
|
|
1320
1320
|
}
|
|
1321
1321
|
//#endregion
|
|
1322
|
-
//#region \0@oxc-project+runtime@0.
|
|
1322
|
+
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPropertyKey.js
|
|
1323
1323
|
function toPropertyKey(t) {
|
|
1324
1324
|
var i = toPrimitive(t, "string");
|
|
1325
1325
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
1326
1326
|
}
|
|
1327
1327
|
//#endregion
|
|
1328
|
-
//#region \0@oxc-project+runtime@0.
|
|
1328
|
+
//#region \0@oxc-project+runtime@0.137.0/helpers/esm/defineProperty.js
|
|
1329
1329
|
function _defineProperty(e, r, t) {
|
|
1330
1330
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
1331
1331
|
value: t,
|
|
@@ -1799,7 +1799,7 @@ function createTaggedTemplateIgnore({ matcher, names }) {
|
|
|
1799
1799
|
}
|
|
1800
1800
|
if (item === singleCanonicalIgnoreName) continue;
|
|
1801
1801
|
if (!canonicalIgnoreNames) {
|
|
1802
|
-
canonicalIgnoreNames = new Set([singleCanonicalIgnoreName, item]);
|
|
1802
|
+
canonicalIgnoreNames = /* @__PURE__ */ new Set([singleCanonicalIgnoreName, item]);
|
|
1803
1803
|
continue;
|
|
1804
1804
|
}
|
|
1805
1805
|
canonicalIgnoreNames.add(item);
|
|
@@ -2500,7 +2500,7 @@ function generateCode(match, options = {}) {
|
|
|
2500
2500
|
}
|
|
2501
2501
|
//#endregion
|
|
2502
2502
|
//#region ../../node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/decode-codepoint.js
|
|
2503
|
-
const decodeMap = new Map([
|
|
2503
|
+
const decodeMap = /* @__PURE__ */ new Map([
|
|
2504
2504
|
[0, 65533],
|
|
2505
2505
|
[128, 8364],
|
|
2506
2506
|
[130, 8218],
|
|
@@ -3043,7 +3043,7 @@ var QuoteType;
|
|
|
3043
3043
|
* sequences with an increased offset.
|
|
3044
3044
|
*/
|
|
3045
3045
|
const Sequences = {
|
|
3046
|
-
Empty: new Uint8Array(0),
|
|
3046
|
+
Empty: /* @__PURE__ */ new Uint8Array(0),
|
|
3047
3047
|
Cdata: new Uint8Array([
|
|
3048
3048
|
67,
|
|
3049
3049
|
68,
|
|
@@ -3172,7 +3172,7 @@ const Sequences = {
|
|
|
3172
3172
|
* where index 2 is the first tag-name character, so matching always
|
|
3173
3173
|
* continues from offset 3.
|
|
3174
3174
|
*/
|
|
3175
|
-
const specialStartSequences = new Map([
|
|
3175
|
+
const specialStartSequences = /* @__PURE__ */ new Map([
|
|
3176
3176
|
[Sequences.IframeEnd[2], Sequences.IframeEnd],
|
|
3177
3177
|
[Sequences.NoembedEnd[2], Sequences.NoembedEnd],
|
|
3178
3178
|
[Sequences.Plaintext[2], Sequences.Plaintext],
|
|
@@ -3900,7 +3900,7 @@ var Tokenizer$1 = class {
|
|
|
3900
3900
|
//#endregion
|
|
3901
3901
|
//#region ../../node_modules/.pnpm/htmlparser2@12.0.0/node_modules/htmlparser2/dist/Parser.js
|
|
3902
3902
|
const { fromCodePoint } = String;
|
|
3903
|
-
const formTags = new Set([
|
|
3903
|
+
const formTags = /* @__PURE__ */ new Set([
|
|
3904
3904
|
"input",
|
|
3905
3905
|
"option",
|
|
3906
3906
|
"optgroup",
|
|
@@ -3909,8 +3909,8 @@ const formTags = new Set([
|
|
|
3909
3909
|
"datalist",
|
|
3910
3910
|
"textarea"
|
|
3911
3911
|
]);
|
|
3912
|
-
const pTag = new Set(["p"]);
|
|
3913
|
-
const headingTags = new Set([
|
|
3912
|
+
const pTag = /* @__PURE__ */ new Set(["p"]);
|
|
3913
|
+
const headingTags = /* @__PURE__ */ new Set([
|
|
3914
3914
|
"h1",
|
|
3915
3915
|
"h2",
|
|
3916
3916
|
"h3",
|
|
@@ -3919,28 +3919,28 @@ const headingTags = new Set([
|
|
|
3919
3919
|
"h6",
|
|
3920
3920
|
"p"
|
|
3921
3921
|
]);
|
|
3922
|
-
const tableSectionTags = new Set(["thead", "tbody"]);
|
|
3923
|
-
const ddtTags = new Set(["dd", "dt"]);
|
|
3924
|
-
const rtpTags = new Set(["rt", "rp"]);
|
|
3925
|
-
const openImpliesClose = new Map([
|
|
3926
|
-
["tr", new Set([
|
|
3922
|
+
const tableSectionTags = /* @__PURE__ */ new Set(["thead", "tbody"]);
|
|
3923
|
+
const ddtTags = /* @__PURE__ */ new Set(["dd", "dt"]);
|
|
3924
|
+
const rtpTags = /* @__PURE__ */ new Set(["rt", "rp"]);
|
|
3925
|
+
const openImpliesClose = /* @__PURE__ */ new Map([
|
|
3926
|
+
["tr", /* @__PURE__ */ new Set([
|
|
3927
3927
|
"tr",
|
|
3928
3928
|
"th",
|
|
3929
3929
|
"td"
|
|
3930
3930
|
])],
|
|
3931
|
-
["th", new Set(["th"])],
|
|
3932
|
-
["td", new Set([
|
|
3931
|
+
["th", /* @__PURE__ */ new Set(["th"])],
|
|
3932
|
+
["td", /* @__PURE__ */ new Set([
|
|
3933
3933
|
"thead",
|
|
3934
3934
|
"th",
|
|
3935
3935
|
"td"
|
|
3936
3936
|
])],
|
|
3937
|
-
["body", new Set([
|
|
3937
|
+
["body", /* @__PURE__ */ new Set([
|
|
3938
3938
|
"head",
|
|
3939
3939
|
"link",
|
|
3940
3940
|
"script"
|
|
3941
3941
|
])],
|
|
3942
|
-
["a", new Set(["a"])],
|
|
3943
|
-
["li", new Set(["li"])],
|
|
3942
|
+
["a", /* @__PURE__ */ new Set(["a"])],
|
|
3943
|
+
["li", /* @__PURE__ */ new Set(["li"])],
|
|
3944
3944
|
["p", pTag],
|
|
3945
3945
|
["h1", headingTags],
|
|
3946
3946
|
["h2", headingTags],
|
|
@@ -3954,8 +3954,8 @@ const openImpliesClose = new Map([
|
|
|
3954
3954
|
["button", formTags],
|
|
3955
3955
|
["datalist", formTags],
|
|
3956
3956
|
["textarea", formTags],
|
|
3957
|
-
["option", new Set(["option"])],
|
|
3958
|
-
["optgroup", new Set(["optgroup", "option"])],
|
|
3957
|
+
["option", /* @__PURE__ */ new Set(["option"])],
|
|
3958
|
+
["optgroup", /* @__PURE__ */ new Set(["optgroup", "option"])],
|
|
3959
3959
|
["dd", ddtTags],
|
|
3960
3960
|
["dt", ddtTags],
|
|
3961
3961
|
["address", pTag],
|
|
@@ -3985,7 +3985,7 @@ const openImpliesClose = new Map([
|
|
|
3985
3985
|
["tfoot", tableSectionTags]
|
|
3986
3986
|
]);
|
|
3987
3987
|
const DOCUMENT_TYPE = "doctype";
|
|
3988
|
-
const voidElements = new Set([
|
|
3988
|
+
const voidElements = /* @__PURE__ */ new Set([
|
|
3989
3989
|
"area",
|
|
3990
3990
|
"base",
|
|
3991
3991
|
"basefont",
|
|
@@ -4006,14 +4006,14 @@ const voidElements = new Set([
|
|
|
4006
4006
|
"track",
|
|
4007
4007
|
"wbr"
|
|
4008
4008
|
]);
|
|
4009
|
-
const foreignContextElements = new Set(["math", "svg"]);
|
|
4009
|
+
const foreignContextElements = /* @__PURE__ */ new Set(["math", "svg"]);
|
|
4010
4010
|
/**
|
|
4011
4011
|
* Elements that can be used to integrate HTML content within foreign namespaces (e.g., SVG or MathML).
|
|
4012
4012
|
*
|
|
4013
4013
|
* Entries must use the SVG-adjusted casing (e.g. "foreignObject" not
|
|
4014
4014
|
* "foreignobject") since they are compared against adjusted tag names.
|
|
4015
4015
|
*/
|
|
4016
|
-
const htmlIntegrationElements = new Set([
|
|
4016
|
+
const htmlIntegrationElements = /* @__PURE__ */ new Set([
|
|
4017
4017
|
"mi",
|
|
4018
4018
|
"mo",
|
|
4019
4019
|
"mn",
|
|
@@ -4024,7 +4024,7 @@ const htmlIntegrationElements = new Set([
|
|
|
4024
4024
|
"desc",
|
|
4025
4025
|
"title"
|
|
4026
4026
|
]);
|
|
4027
|
-
const svgTagNameAdjustments = new Map([
|
|
4027
|
+
const svgTagNameAdjustments = /* @__PURE__ */ new Map([
|
|
4028
4028
|
["altglyph", "altGlyph"],
|
|
4029
4029
|
["altglyphdef", "altGlyphDef"],
|
|
4030
4030
|
["altglyphitem", "altGlyphItem"],
|
|
@@ -4488,7 +4488,7 @@ var Parser = class {
|
|
|
4488
4488
|
};
|
|
4489
4489
|
//#endregion
|
|
4490
4490
|
//#region src/wxml/whitespace.ts
|
|
4491
|
-
const WHITESPACE_CODES = new Set([
|
|
4491
|
+
const WHITESPACE_CODES = /* @__PURE__ */ new Set([
|
|
4492
4492
|
9,
|
|
4493
4493
|
10,
|
|
4494
4494
|
11,
|
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_context = require("./context-
|
|
2
|
+
const require_context = require("./context-D75pwtBW.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, l as shouldSkipJsTransform, t as getCompilerContext, y as createTailwindRuntimeReadyPromise } from "./context-
|
|
1
|
+
import { b as ensureRuntimeClassSet, l as shouldSkipJsTransform, t as getCompilerContext, y as createTailwindRuntimeReadyPromise } from "./context-B07Vf584.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 });
|
|
@@ -2,9 +2,9 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const
|
|
5
|
+
const require_rolldown_runtime = require("../rolldown-runtime-emK7D4bc.js");
|
|
6
6
|
let _weapp_tailwindcss_postcss_css_macro_postcss = require("@weapp-tailwindcss/postcss/css-macro/postcss");
|
|
7
|
-
_weapp_tailwindcss_postcss_css_macro_postcss =
|
|
7
|
+
_weapp_tailwindcss_postcss_css_macro_postcss = require_rolldown_runtime.__toESM(_weapp_tailwindcss_postcss_css_macro_postcss);
|
|
8
8
|
Object.defineProperty(exports, "CSS_MACRO_POSTCSS_PLUGIN_NAME", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function() {
|
package/dist/css-macro.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-emK7D4bc.js");
|
|
2
2
|
const require_auto = require("./auto-DtU6f3X6.js");
|
|
3
|
-
require("./utils-
|
|
3
|
+
require("./utils-D3h8j7Mk.js");
|
|
4
4
|
let tailwindcss_plugin = require("tailwindcss/plugin");
|
|
5
|
-
tailwindcss_plugin =
|
|
5
|
+
tailwindcss_plugin = require_rolldown_runtime.__toESM(tailwindcss_plugin);
|
|
6
6
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
7
7
|
//#region src/css-macro/constants.ts
|
|
8
8
|
const queryKey = "weapp-tw-platform";
|
package/dist/defaults.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_defaults = require("./defaults-
|
|
2
|
+
const require_defaults = require("./defaults-DQhgnnn-.js");
|
|
3
3
|
exports.TAILWIND_V4_CSS_PREFLIGHT = require_defaults.TAILWIND_V4_CSS_PREFLIGHT;
|
|
4
4
|
exports.getDefaultCssPreflight = require_defaults.getDefaultCssPreflight;
|
|
5
5
|
exports.getDefaultOptions = require_defaults.getDefaultOptions;
|
|
@@ -37,10 +37,15 @@ export interface DetectAppTypeOptions {
|
|
|
37
37
|
hbuilderxVite?: boolean | undefined;
|
|
38
38
|
}
|
|
39
39
|
export declare function isRunningInHBuilderX(options?: HBuilderXRuntimeHints): boolean;
|
|
40
|
-
export declare function
|
|
41
|
-
export declare function
|
|
40
|
+
export declare function resolvePlatform(value: string | undefined): UniPlatformInfo;
|
|
41
|
+
export declare function resolveTaroPlatform(value?: string | undefined): UniPlatformInfo;
|
|
42
|
+
export declare function resolveMpxPlatform(value?: string | undefined): UniPlatformInfo;
|
|
43
|
+
export declare function resolveUniPlatform(value?: string | undefined): UniPlatformInfo;
|
|
44
|
+
export declare function resolveUniUtsPlatform(value?: string | undefined): UniPlatformInfo;
|
|
45
|
+
export declare function resolveUniAppXPlatform(value?: string | undefined): UniPlatformInfo;
|
|
42
46
|
export declare function resolveUniPlatformsFromEnv(env?: FrameworkEnv): {
|
|
43
47
|
uniPlatform: UniPlatformInfo;
|
|
48
|
+
uniAppXPlatform: UniPlatformInfo;
|
|
44
49
|
uniUtsPlatform: UniPlatformInfo;
|
|
45
50
|
};
|
|
46
51
|
export declare function detectAppTypeFromEnv(env?: FrameworkEnv, options?: {
|
package/dist/framework.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-emK7D4bc.js");
|
|
3
3
|
let node_fs = require("node:fs");
|
|
4
4
|
let node_path = require("node:path");
|
|
5
|
-
node_path =
|
|
5
|
+
node_path = require_rolldown_runtime.__toESM(node_path);
|
|
6
6
|
let node_process = require("node:process");
|
|
7
|
-
node_process =
|
|
7
|
+
node_process = require_rolldown_runtime.__toESM(node_process);
|
|
8
8
|
//#region src/framework/index.ts
|
|
9
9
|
const KNOWN_MAC_HBUILDERX_PLUGIN_DIRS = ["/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli-vite", "/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli"];
|
|
10
10
|
const HBUILDERX_PLUGIN_CWD_RE = /[\\/]HBuilderX(?:\.[^\\/]*)?(?:[\\/]Contents[\\/]HBuilderX)?[\\/]plugins[\\/]uniapp-cli(?:-vite)?(?:[\\/]|$)/i;
|
|
@@ -15,6 +15,17 @@ const TARO_SCRIPT_RE = /\btaro\b/u;
|
|
|
15
15
|
const WEAPP_VITE_SCRIPT_RE = /\bweapp-vite\b/u;
|
|
16
16
|
const UNI_APP_SCRIPT_RE = /\buni(?:\s|$)/u;
|
|
17
17
|
const UNI_APP_VITE_SCRIPT_RE = /\buni(?:\s|$)/u;
|
|
18
|
+
const MINI_PROGRAM_PLATFORMS = /* @__PURE__ */ new Set([
|
|
19
|
+
"alipay",
|
|
20
|
+
"baidu",
|
|
21
|
+
"jd",
|
|
22
|
+
"qq",
|
|
23
|
+
"swan",
|
|
24
|
+
"tt",
|
|
25
|
+
"weapp",
|
|
26
|
+
"wechat",
|
|
27
|
+
"wx"
|
|
28
|
+
]);
|
|
18
29
|
const MPX_MARKERS = [["src/app.mpx", "mpx"], ["app.mpx", "mpx"]];
|
|
19
30
|
function getProcessEnv() {
|
|
20
31
|
return {
|
|
@@ -29,7 +40,7 @@ function getProcessEnv() {
|
|
|
29
40
|
};
|
|
30
41
|
}
|
|
31
42
|
function resolveDependencyNames(pkg) {
|
|
32
|
-
return new Set([
|
|
43
|
+
return /* @__PURE__ */ new Set([
|
|
33
44
|
...Object.keys(pkg.dependencies ?? {}),
|
|
34
45
|
...Object.keys(pkg.devDependencies ?? {}),
|
|
35
46
|
...Object.keys(pkg.peerDependencies ?? {}),
|
|
@@ -57,7 +68,7 @@ function resolvePlatformInfo(value) {
|
|
|
57
68
|
isAppAndroid,
|
|
58
69
|
isAppHarmony,
|
|
59
70
|
isAppIos,
|
|
60
|
-
isMp: normalized?.startsWith("mp-") === true,
|
|
71
|
+
isMp: normalized?.startsWith("mp-") === true || (normalized ? MINI_PROGRAM_PLATFORMS.has(normalized) : false),
|
|
61
72
|
isWeb: normalized?.startsWith("web") === true || normalized === "h5"
|
|
62
73
|
};
|
|
63
74
|
}
|
|
@@ -79,15 +90,31 @@ function isRunningInHBuilderX(options = {}) {
|
|
|
79
90
|
if (!(nodePath == null || nodePath.trim().length === 0)) return false;
|
|
80
91
|
return matchesHBuilderXPluginCwd(options.cwd ?? node_process.default.cwd());
|
|
81
92
|
}
|
|
82
|
-
function
|
|
93
|
+
function resolvePlatform(value) {
|
|
83
94
|
return resolvePlatformInfo(value);
|
|
84
95
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
96
|
+
function resolveTaroPlatform(value = getProcessEnv().TARO_ENV) {
|
|
97
|
+
return resolvePlatform(value);
|
|
98
|
+
}
|
|
99
|
+
function resolveMpxPlatformValue(env = getProcessEnv()) {
|
|
100
|
+
return env.MPX_CURRENT_TARGET_MODE ?? env.MPX_CLI_MODE;
|
|
101
|
+
}
|
|
102
|
+
function resolveMpxPlatform(value = resolveMpxPlatformValue()) {
|
|
103
|
+
return resolvePlatform(value);
|
|
104
|
+
}
|
|
105
|
+
function resolveUniPlatform(value = getProcessEnv().UNI_PLATFORM) {
|
|
106
|
+
return resolvePlatform(value);
|
|
107
|
+
}
|
|
108
|
+
function resolveUniUtsPlatform(value = getProcessEnv().UNI_UTS_PLATFORM) {
|
|
109
|
+
return resolvePlatform(value);
|
|
110
|
+
}
|
|
111
|
+
function resolveUniAppXPlatform(value = getProcessEnv().UNI_UTS_PLATFORM) {
|
|
112
|
+
return resolvePlatform(value);
|
|
87
113
|
}
|
|
88
114
|
function resolveUniPlatformsFromEnv(env = getProcessEnv()) {
|
|
89
115
|
return {
|
|
90
116
|
uniPlatform: resolveUniPlatform(env.UNI_PLATFORM),
|
|
117
|
+
uniAppXPlatform: resolveUniAppXPlatform(env.UNI_UTS_PLATFORM),
|
|
91
118
|
uniUtsPlatform: resolveUniUtsPlatform(env.UNI_UTS_PLATFORM)
|
|
92
119
|
};
|
|
93
120
|
}
|
|
@@ -193,6 +220,10 @@ exports.isUniAppXManifest = isUniAppXManifest;
|
|
|
193
220
|
exports.isUniAppXPackage = isUniAppXPackage;
|
|
194
221
|
exports.isWeappVitePackage = isWeappVitePackage;
|
|
195
222
|
exports.resolveImplicitAppTypeFromViteRoot = resolveImplicitAppTypeFromViteRoot;
|
|
223
|
+
exports.resolveMpxPlatform = resolveMpxPlatform;
|
|
224
|
+
exports.resolvePlatform = resolvePlatform;
|
|
225
|
+
exports.resolveTaroPlatform = resolveTaroPlatform;
|
|
226
|
+
exports.resolveUniAppXPlatform = resolveUniAppXPlatform;
|
|
196
227
|
exports.resolveUniPlatform = resolveUniPlatform;
|
|
197
228
|
exports.resolveUniPlatformsFromEnv = resolveUniPlatformsFromEnv;
|
|
198
229
|
exports.resolveUniUtsPlatform = resolveUniUtsPlatform;
|
package/dist/framework.mjs
CHANGED
|
@@ -11,6 +11,17 @@ const TARO_SCRIPT_RE = /\btaro\b/u;
|
|
|
11
11
|
const WEAPP_VITE_SCRIPT_RE = /\bweapp-vite\b/u;
|
|
12
12
|
const UNI_APP_SCRIPT_RE = /\buni(?:\s|$)/u;
|
|
13
13
|
const UNI_APP_VITE_SCRIPT_RE = /\buni(?:\s|$)/u;
|
|
14
|
+
const MINI_PROGRAM_PLATFORMS = /* @__PURE__ */ new Set([
|
|
15
|
+
"alipay",
|
|
16
|
+
"baidu",
|
|
17
|
+
"jd",
|
|
18
|
+
"qq",
|
|
19
|
+
"swan",
|
|
20
|
+
"tt",
|
|
21
|
+
"weapp",
|
|
22
|
+
"wechat",
|
|
23
|
+
"wx"
|
|
24
|
+
]);
|
|
14
25
|
const MPX_MARKERS = [["src/app.mpx", "mpx"], ["app.mpx", "mpx"]];
|
|
15
26
|
function getProcessEnv() {
|
|
16
27
|
return {
|
|
@@ -25,7 +36,7 @@ function getProcessEnv() {
|
|
|
25
36
|
};
|
|
26
37
|
}
|
|
27
38
|
function resolveDependencyNames(pkg) {
|
|
28
|
-
return new Set([
|
|
39
|
+
return /* @__PURE__ */ new Set([
|
|
29
40
|
...Object.keys(pkg.dependencies ?? {}),
|
|
30
41
|
...Object.keys(pkg.devDependencies ?? {}),
|
|
31
42
|
...Object.keys(pkg.peerDependencies ?? {}),
|
|
@@ -53,7 +64,7 @@ function resolvePlatformInfo(value) {
|
|
|
53
64
|
isAppAndroid,
|
|
54
65
|
isAppHarmony,
|
|
55
66
|
isAppIos,
|
|
56
|
-
isMp: normalized?.startsWith("mp-") === true,
|
|
67
|
+
isMp: normalized?.startsWith("mp-") === true || (normalized ? MINI_PROGRAM_PLATFORMS.has(normalized) : false),
|
|
57
68
|
isWeb: normalized?.startsWith("web") === true || normalized === "h5"
|
|
58
69
|
};
|
|
59
70
|
}
|
|
@@ -75,15 +86,31 @@ function isRunningInHBuilderX(options = {}) {
|
|
|
75
86
|
if (!(nodePath == null || nodePath.trim().length === 0)) return false;
|
|
76
87
|
return matchesHBuilderXPluginCwd(options.cwd ?? process.cwd());
|
|
77
88
|
}
|
|
78
|
-
function
|
|
89
|
+
function resolvePlatform(value) {
|
|
79
90
|
return resolvePlatformInfo(value);
|
|
80
91
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
92
|
+
function resolveTaroPlatform(value = getProcessEnv().TARO_ENV) {
|
|
93
|
+
return resolvePlatform(value);
|
|
94
|
+
}
|
|
95
|
+
function resolveMpxPlatformValue(env = getProcessEnv()) {
|
|
96
|
+
return env.MPX_CURRENT_TARGET_MODE ?? env.MPX_CLI_MODE;
|
|
97
|
+
}
|
|
98
|
+
function resolveMpxPlatform(value = resolveMpxPlatformValue()) {
|
|
99
|
+
return resolvePlatform(value);
|
|
100
|
+
}
|
|
101
|
+
function resolveUniPlatform(value = getProcessEnv().UNI_PLATFORM) {
|
|
102
|
+
return resolvePlatform(value);
|
|
103
|
+
}
|
|
104
|
+
function resolveUniUtsPlatform(value = getProcessEnv().UNI_UTS_PLATFORM) {
|
|
105
|
+
return resolvePlatform(value);
|
|
106
|
+
}
|
|
107
|
+
function resolveUniAppXPlatform(value = getProcessEnv().UNI_UTS_PLATFORM) {
|
|
108
|
+
return resolvePlatform(value);
|
|
83
109
|
}
|
|
84
110
|
function resolveUniPlatformsFromEnv(env = getProcessEnv()) {
|
|
85
111
|
return {
|
|
86
112
|
uniPlatform: resolveUniPlatform(env.UNI_PLATFORM),
|
|
113
|
+
uniAppXPlatform: resolveUniAppXPlatform(env.UNI_UTS_PLATFORM),
|
|
87
114
|
uniUtsPlatform: resolveUniUtsPlatform(env.UNI_UTS_PLATFORM)
|
|
88
115
|
};
|
|
89
116
|
}
|
|
@@ -177,4 +204,4 @@ function detectAppType(options = {}) {
|
|
|
177
204
|
}
|
|
178
205
|
const resolveImplicitAppTypeFromViteRoot = (root) => detectAppType({ root });
|
|
179
206
|
//#endregion
|
|
180
|
-
export { detectAppType, detectAppTypeFromEnv, detectAppTypeFromPackageJson, isMpxPackage, isRunningInHBuilderX, isTaroPackage, isUniAppPackage, isUniAppVitePackage, isUniAppXManifest, isUniAppXPackage, isWeappVitePackage, resolveImplicitAppTypeFromViteRoot, resolveUniPlatform, resolveUniPlatformsFromEnv, resolveUniUtsPlatform };
|
|
207
|
+
export { detectAppType, detectAppTypeFromEnv, detectAppTypeFromPackageJson, isMpxPackage, isRunningInHBuilderX, isTaroPackage, isUniAppPackage, isUniAppVitePackage, isUniAppXManifest, isUniAppXPackage, isWeappVitePackage, resolveImplicitAppTypeFromViteRoot, resolveMpxPlatform, resolvePlatform, resolveTaroPlatform, resolveUniAppXPlatform, resolveUniPlatform, resolveUniPlatformsFromEnv, resolveUniUtsPlatform };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
|
|
1
|
+
import type { IStyleHandlerOptions, WebCssCompatUserOptions } from '@weapp-tailwindcss/postcss/types';
|
|
2
2
|
import type { WeappTailwindcssGeneratorTarget } from './types';
|
|
3
3
|
import type { RuntimeBranch, RuntimeBranchContext } from '../runtime-branch';
|
|
4
4
|
import type { IArbitraryValues } from '../types/shared';
|
|
@@ -6,6 +6,7 @@ export interface WeappTailwindcssGeneratorOptions {
|
|
|
6
6
|
target?: WeappTailwindcssGeneratorTarget | undefined;
|
|
7
7
|
config?: string | undefined;
|
|
8
8
|
styleOptions?: Partial<IStyleHandlerOptions> | undefined;
|
|
9
|
+
webCompat?: WebCssCompatUserOptions | undefined;
|
|
9
10
|
importFallback?: boolean | undefined;
|
|
10
11
|
bareArbitraryValues?: IArbitraryValues['bareArbitraryValues'] | undefined;
|
|
11
12
|
}
|
|
@@ -15,6 +16,7 @@ export interface NormalizedWeappTailwindcssGeneratorOptions {
|
|
|
15
16
|
branch: RuntimeBranch;
|
|
16
17
|
config?: string | undefined;
|
|
17
18
|
styleOptions?: Partial<IStyleHandlerOptions> | undefined;
|
|
19
|
+
webCompat: WebCssCompatUserOptions | undefined;
|
|
18
20
|
importFallback: boolean;
|
|
19
21
|
bareArbitraryValues?: IArbitraryValues['bareArbitraryValues'] | undefined;
|
|
20
22
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_v4_engine = require("./v4-engine-
|
|
2
|
-
const require_utils = require("./utils-
|
|
1
|
+
const require_v4_engine = require("./v4-engine-CKbS27-o.js");
|
|
2
|
+
const require_utils = require("./utils-D3h8j7Mk.js");
|
|
3
3
|
//#region src/runtime-branch/create-branch.ts
|
|
4
4
|
function createRuntimeBranch(base, platformFamily, options) {
|
|
5
5
|
const { context, tailwindcssVersion } = base;
|
|
@@ -96,6 +96,7 @@ function normalizeWeappTailwindcssGeneratorOptions(options, context = {}) {
|
|
|
96
96
|
if (options == null) return {
|
|
97
97
|
target,
|
|
98
98
|
branch,
|
|
99
|
+
webCompat: void 0,
|
|
99
100
|
importFallback: false,
|
|
100
101
|
bareArbitraryValues: void 0
|
|
101
102
|
};
|
|
@@ -104,6 +105,7 @@ function normalizeWeappTailwindcssGeneratorOptions(options, context = {}) {
|
|
|
104
105
|
branch,
|
|
105
106
|
config: options.config,
|
|
106
107
|
styleOptions: options.styleOptions,
|
|
108
|
+
webCompat: options.webCompat,
|
|
107
109
|
importFallback: options.importFallback ?? false,
|
|
108
110
|
bareArbitraryValues: options.bareArbitraryValues
|
|
109
111
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as createTailwindV4Engine, ct as inferGeneratorTargetFromEnv, n as resolveTailwindV4SourceFromRuntime } from "./v4-engine-
|
|
1
|
+
import { W as createTailwindV4Engine, ct as inferGeneratorTargetFromEnv, n as resolveTailwindV4SourceFromRuntime } from "./v4-engine-BklH3CpJ.mjs";
|
|
2
2
|
import { o as resolveUniUtsPlatform } from "./utils-DodxWHGz.mjs";
|
|
3
3
|
//#region src/runtime-branch/create-branch.ts
|
|
4
4
|
function createRuntimeBranch(base, platformFamily, options) {
|
|
@@ -96,6 +96,7 @@ function normalizeWeappTailwindcssGeneratorOptions(options, context = {}) {
|
|
|
96
96
|
if (options == null) return {
|
|
97
97
|
target,
|
|
98
98
|
branch,
|
|
99
|
+
webCompat: void 0,
|
|
99
100
|
importFallback: false,
|
|
100
101
|
bareArbitraryValues: void 0
|
|
101
102
|
};
|
|
@@ -104,6 +105,7 @@ function normalizeWeappTailwindcssGeneratorOptions(options, context = {}) {
|
|
|
104
105
|
branch,
|
|
105
106
|
config: options.config,
|
|
106
107
|
styleOptions: options.styleOptions,
|
|
108
|
+
webCompat: options.webCompat,
|
|
107
109
|
importFallback: options.importFallback ?? false,
|
|
108
110
|
bareArbitraryValues: options.bareArbitraryValues
|
|
109
111
|
};
|
package/dist/generator.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_v4_engine = require("./v4-engine-
|
|
3
|
-
const require_generator = require("./generator-
|
|
2
|
+
const require_v4_engine = require("./v4-engine-CKbS27-o.js");
|
|
3
|
+
const require_generator = require("./generator-CV_0irKO.js");
|
|
4
4
|
exports.createWeappTailwindcssGenerator = require_generator.createWeappTailwindcssGenerator;
|
|
5
5
|
exports.createWeappTailwindcssGeneratorFromRuntime = require_generator.createWeappTailwindcssGeneratorFromRuntime;
|
|
6
6
|
exports.normalizeWeappTailwindcssGeneratorOptions = require_generator.normalizeWeappTailwindcssGeneratorOptions;
|
package/dist/generator.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { K as transformTailwindV4CssByTarget, i as resolveTailwindV4SourceOptionsFromRuntime, n as resolveTailwindV4SourceFromRuntime, q as transformTailwindV4CssToWeapp, r as resolveTailwindV4SourceFromRuntimeOptions, t as resolveTailwindV4Source } from "./v4-engine-
|
|
2
|
-
import { i as normalizeWeappTailwindcssGeneratorOptions, n as createWeappTailwindcssGeneratorFromRuntime, r as resolveTailwindSourceFromRuntime, t as createWeappTailwindcssGenerator } from "./generator-
|
|
1
|
+
import { K as transformTailwindV4CssByTarget, i as resolveTailwindV4SourceOptionsFromRuntime, n as resolveTailwindV4SourceFromRuntime, q as transformTailwindV4CssToWeapp, r as resolveTailwindV4SourceFromRuntimeOptions, t as resolveTailwindV4Source } from "./v4-engine-BklH3CpJ.mjs";
|
|
2
|
+
import { i as normalizeWeappTailwindcssGeneratorOptions, n as createWeappTailwindcssGeneratorFromRuntime, r as resolveTailwindSourceFromRuntime, t as createWeappTailwindcssGenerator } from "./generator-DNs6ekoC.mjs";
|
|
3
3
|
export { createWeappTailwindcssGenerator, createWeappTailwindcssGeneratorFromRuntime, normalizeWeappTailwindcssGeneratorOptions, resolveTailwindSourceFromRuntime, resolveTailwindV4Source, resolveTailwindV4SourceFromRuntime, resolveTailwindV4SourceFromRuntimeOptions, resolveTailwindV4SourceOptionsFromRuntime, transformTailwindV4CssByTarget, transformTailwindV4CssToWeapp };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_v4_engine = require("./v4-engine-
|
|
3
|
-
const require_context = require("./context-
|
|
4
|
-
const require_tailwindcss = require("./tailwindcss-
|
|
5
|
-
const require_hmr_timing = require("./hmr-timing-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-emK7D4bc.js");
|
|
2
|
+
const require_v4_engine = require("./v4-engine-CKbS27-o.js");
|
|
3
|
+
const require_context = require("./context-D75pwtBW.js");
|
|
4
|
+
const require_tailwindcss = require("./tailwindcss-BSCvrs1p.js");
|
|
5
|
+
const require_hmr_timing = require("./hmr-timing-DOoHun3i.js");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
7
|
-
node_fs =
|
|
7
|
+
node_fs = require_rolldown_runtime.__toESM(node_fs);
|
|
8
8
|
let node_path = require("node:path");
|
|
9
|
-
node_path =
|
|
9
|
+
node_path = require_rolldown_runtime.__toESM(node_path);
|
|
10
10
|
let node_process = require("node:process");
|
|
11
|
-
node_process =
|
|
11
|
+
node_process = require_rolldown_runtime.__toESM(node_process);
|
|
12
12
|
let node_buffer = require("node:buffer");
|
|
13
13
|
let node_stream = require("node:stream");
|
|
14
|
-
node_stream =
|
|
14
|
+
node_stream = require_rolldown_runtime.__toESM(node_stream);
|
|
15
15
|
//#region src/bundlers/gulp/module-graph.ts
|
|
16
16
|
const MODULE_EXTENSIONS = [
|
|
17
17
|
".js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as hasTailwindRootDirectives, D as normalizeTailwindSourceForGenerator, G as getTailwindV4IncrementalGenerateCacheStats, T as normalizeTailwindConfigDirectives, U as prependConfigDirective, o as hasConfiguredTailwindV4CssRoots, s as upsertTailwindV4CssSource } from "./v4-engine-
|
|
2
|
-
import { S as createDebug, b as ensureRuntimeClassSet, l as shouldSkipJsTransform, n as normalizeStyleHandlerMajorVersion, t as getCompilerContext, y as createTailwindRuntimeReadyPromise } from "./context-
|
|
3
|
-
import { l as getRuntimeClassSetSignature, p as resolveViteSourceScanEntries } from "./tailwindcss-
|
|
4
|
-
import { F as createCssTokenSourceMap, L as processCachedTask, N as annotateCssSourceTrace, P as createCssSourceTraceCacheSignature, n as emitHmrTiming, r as createSourceCandidateCollector, s as createBundleRuntimeClassSetManager, u as generateCssByGenerator, v as rewriteLocalCssImportRequestsForOutput, y as splitLocalCssImports } from "./hmr-timing-
|
|
1
|
+
import { C as hasTailwindRootDirectives, D as normalizeTailwindSourceForGenerator, G as getTailwindV4IncrementalGenerateCacheStats, T as normalizeTailwindConfigDirectives, U as prependConfigDirective, o as hasConfiguredTailwindV4CssRoots, s as upsertTailwindV4CssSource } from "./v4-engine-BklH3CpJ.mjs";
|
|
2
|
+
import { S as createDebug, b as ensureRuntimeClassSet, l as shouldSkipJsTransform, n as normalizeStyleHandlerMajorVersion, t as getCompilerContext, y as createTailwindRuntimeReadyPromise } from "./context-B07Vf584.mjs";
|
|
3
|
+
import { l as getRuntimeClassSetSignature, p as resolveViteSourceScanEntries } from "./tailwindcss-BwV3_Ryc.mjs";
|
|
4
|
+
import { F as createCssTokenSourceMap, L as processCachedTask, N as annotateCssSourceTrace, P as createCssSourceTraceCacheSignature, n as emitHmrTiming, r as createSourceCandidateCollector, s as createBundleRuntimeClassSetManager, u as generateCssByGenerator, v as rewriteLocalCssImportRequestsForOutput, y as splitLocalCssImports } from "./hmr-timing-DLYQTCDb.mjs";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import process from "node:process";
|
package/dist/gulp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_gulp = require("./gulp-
|
|
2
|
+
const require_gulp = require("./gulp-B_u8NjQL.js");
|
|
3
3
|
exports.WeappTailwindcss = require_gulp.createPlugins;
|
|
4
4
|
exports.createPlugins = require_gulp.createPlugins;
|
|
5
5
|
exports.weappTailwindcss = require_gulp.createPlugins;
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createPlugins } from "./gulp-
|
|
1
|
+
import { t as createPlugins } from "./gulp-aQMZ0M7c.mjs";
|
|
2
2
|
export { createPlugins as WeappTailwindcss, createPlugins, createPlugins as weappTailwindcss };
|