weapp-tailwindcss 5.4.2 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -1
- package/README.zh-CN.md +13 -1
- package/dist/bundlers/shared/v4-generation-core.d.ts +1 -0
- package/dist/bundlers/vite/capability-profile.d.ts +1 -0
- package/dist/bundlers/vite/css-finalizer/web-plugin.d.ts +3 -0
- package/dist/bundlers/vite/css-handler-options.d.ts +32 -0
- package/dist/bundlers/vite/{generate-bundle/css-output.d.ts → css-output.d.ts} +1 -1
- package/dist/bundlers/vite/frameworks/generic/web.d.ts +2 -0
- package/dist/bundlers/vite/generate-bundle/css-handler-options.d.ts +2 -32
- package/dist/bundlers/vite/generate-bundle/finalize/root-import-shell.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/remembered-css-replay.d.ts +2 -2
- package/dist/bundlers/vite/generate-bundle/runtime.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle/uni-app-x-postprocess.d.ts +1 -1
- package/dist/bundlers/vite/generate-bundle.d.ts +1 -1
- package/dist/bundlers/vite/runtime-class-set.d.ts +1 -5
- package/dist/bundlers/vite/shared/create-css-only-plugins-runtime.d.ts +3 -0
- package/dist/cache-CBJFB1HN.cjs +223 -0
- package/dist/compiler/events.d.ts +32 -0
- package/dist/compiler/host.d.ts +13 -0
- package/dist/compiler/index.d.ts +3 -0
- package/dist/compiler/runtime-state.d.ts +17 -0
- package/dist/compiler-B0YSc0DY.js +4877 -0
- package/dist/{wxml-o-CUulAM.cjs → compiler-SwMb3lOX.cjs} +3649 -283
- package/dist/core.cjs +6 -3
- package/dist/core.d.ts +2 -0
- package/dist/core.js +4 -4
- package/dist/defaults-B5ep0ojb.js +120 -0
- package/dist/defaults-BI9j1znS.cjs +156 -0
- package/dist/defaults.cjs +5 -121
- package/dist/defaults.js +1 -116
- package/dist/final-css-cleanup-BMlUDzik.cjs +112 -0
- package/dist/final-css-cleanup-CmVYbXPr.js +282 -0
- package/dist/{generator-WlhrtNa3.cjs → generator-DsrQ9txU.cjs} +62 -5
- package/dist/{generator-BjK5PRR-.js → generator-DyXTBPmE.js} +47 -2
- package/dist/generator.cjs +1 -1
- package/dist/generator.js +1 -1
- package/dist/{gulp-D6LcfRz_.js → gulp-CVUiPXPy.js} +7 -7
- package/dist/{gulp-ChecVI6A.cjs → gulp-Dtc01FdI.cjs} +30 -28
- package/dist/gulp.cjs +1 -1
- package/dist/gulp.js +1 -1
- package/dist/{hmr-timing-afnWvy7u.cjs → hmr-timing-3SdRVfZx.cjs} +6 -229
- package/dist/{hmr-timing-CqDfjvqE.js → hmr-timing-DNxQm-bN.js} +6 -1258
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/dist/{pipeline-helpers-DxPFMGxz.cjs → pipeline-helpers-DVrgv1HS.cjs} +6 -5
- package/dist/postcss.cjs +1 -1
- package/dist/postcss.js +1 -1
- package/dist/presets.cjs +4 -4
- package/dist/presets.js +2 -2
- package/dist/rspack.cjs +2 -2
- package/dist/rspack.js +2 -2
- package/dist/runtime-state-BBQcA0n5.cjs +54 -0
- package/dist/{source-candidate-scan-signature-FywFU3Rg.cjs → scoped-generator-B7thnzzm.cjs} +5 -123
- package/dist/{source-candidate-scan-signature-BVScymyM.js → scoped-generator-kRj_5Axx.js} +4 -92
- package/dist/source-candidate-scan-signature-B7cUxqqX.cjs +129 -0
- package/dist/source-candidate-scan-signature-CsP4BQNa.js +92 -0
- package/dist/style-injector/internal.d.ts +1 -1
- package/dist/style-injector/vite-web.d.ts +3 -0
- package/dist/{tailwindcss-9xmoCkaR.js → tailwindcss-BK9S7zuq.js} +1 -2
- package/dist/{tailwindcss-D3jltF7M.cjs → tailwindcss-C-jBBQfw.cjs} +8 -9
- package/dist/{transform-DQhgAarN.js → transform-C0rWZblB.js} +3 -3
- package/dist/{transform-C6k9zTQR.cjs → transform-C7QxW-fV.cjs} +27 -27
- package/dist/{v4-generation-core-CPKNwzjz.cjs → v4-generation-core-DuIVZvRz.cjs} +29 -1172
- package/dist/vite/web.cjs +27 -0
- package/dist/vite/web.d.ts +1 -0
- package/dist/vite/web.js +25 -0
- package/dist/{vite-D3aCtpmv.js → vite-0PsttwuR.js} +241 -3581
- package/dist/{vite-D-gmOkPN.cjs → vite-CJbO-7AQ.cjs} +494 -3794
- package/dist/vite-web.d.ts +4 -0
- package/dist/vite.cjs +1 -1
- package/dist/vite.js +1 -1
- package/dist/weapp-tw-css-generation-loader.cjs +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.cjs +5 -5
- package/dist/web-BFOkkJ-8.cjs +4357 -0
- package/dist/web-D8HSs56R.js +3792 -0
- package/dist/{webpack-yAne9ZYu.cjs → webpack-BWknqSDV.cjs} +51 -49
- package/dist/{webpack-B-6a8Z8F.js → webpack-DVtKeBq1.js} +13 -12
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.js +1 -1
- package/package.json +12 -3
- package/dist/cache-options-DavPxrhC.cjs +0 -16
- package/dist/cache-options-DwBtLwQe.js +0 -5
- package/dist/compiler-B-m9VGqj.cjs +0 -2316
- package/dist/compiler-BgMj2E5l.js +0 -2051
- package/dist/local-style-matcher-DRpFEu1s.cjs +0 -34
- package/dist/local-style-matcher-DsiI2wIc.js +0 -17
- package/dist/object-B-8IHefx.js +0 -47
- package/dist/object-DbHtAXRk.cjs +0 -58
- package/dist/wxml-CvKyV69S.js +0 -1822
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
2
|
-
//#region src/uni-app-x/local-style-matcher.ts
|
|
3
|
-
const COMPONENT_RE = /(?:^|\/)components(?:\/.+)?\.(?:uvue|nvue)$/;
|
|
4
|
-
const PAGE_RE = /(?:^|\/)pages(?:\/.+)?\.(?:uvue|nvue)$/;
|
|
5
|
-
function normalizeUniAppXLocalStyleId(id) {
|
|
6
|
-
return (0, _weapp_tailwindcss_shared.ensurePosix)((0, _weapp_tailwindcss_shared.cleanUrl)(id));
|
|
7
|
-
}
|
|
8
|
-
function shouldEnableComponentLocalStyle(id, matcher) {
|
|
9
|
-
const normalizedId = normalizeUniAppXLocalStyleId(id);
|
|
10
|
-
return matcher ? matcher(normalizedId) : COMPONENT_RE.test(normalizedId);
|
|
11
|
-
}
|
|
12
|
-
function shouldEnablePageLocalStyle(id, matcher) {
|
|
13
|
-
const normalizedId = normalizeUniAppXLocalStyleId(id);
|
|
14
|
-
return matcher ? matcher(normalizedId) : PAGE_RE.test(normalizedId);
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
Object.defineProperty(exports, "normalizeUniAppXLocalStyleId", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return normalizeUniAppXLocalStyleId;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "shouldEnableComponentLocalStyle", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function() {
|
|
26
|
-
return shouldEnableComponentLocalStyle;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
Object.defineProperty(exports, "shouldEnablePageLocalStyle", {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: function() {
|
|
32
|
-
return shouldEnablePageLocalStyle;
|
|
33
|
-
}
|
|
34
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { cleanUrl, ensurePosix } from "@weapp-tailwindcss/shared";
|
|
2
|
-
//#region src/uni-app-x/local-style-matcher.ts
|
|
3
|
-
const COMPONENT_RE = /(?:^|\/)components(?:\/.+)?\.(?:uvue|nvue)$/;
|
|
4
|
-
const PAGE_RE = /(?:^|\/)pages(?:\/.+)?\.(?:uvue|nvue)$/;
|
|
5
|
-
function normalizeUniAppXLocalStyleId(id) {
|
|
6
|
-
return ensurePosix(cleanUrl(id));
|
|
7
|
-
}
|
|
8
|
-
function shouldEnableComponentLocalStyle(id, matcher) {
|
|
9
|
-
const normalizedId = normalizeUniAppXLocalStyleId(id);
|
|
10
|
-
return matcher ? matcher(normalizedId) : COMPONENT_RE.test(normalizedId);
|
|
11
|
-
}
|
|
12
|
-
function shouldEnablePageLocalStyle(id, matcher) {
|
|
13
|
-
const normalizedId = normalizeUniAppXLocalStyleId(id);
|
|
14
|
-
return matcher ? matcher(normalizedId) : PAGE_RE.test(normalizedId);
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { shouldEnableComponentLocalStyle as n, shouldEnablePageLocalStyle as r, normalizeUniAppXLocalStyleId as t };
|
package/dist/object-B-8IHefx.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/typeof.js
|
|
2
|
-
function _typeof(o) {
|
|
3
|
-
"@babel/helpers - typeof";
|
|
4
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
5
|
-
return typeof o;
|
|
6
|
-
} : function(o) {
|
|
7
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
-
}, _typeof(o);
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPrimitive.js
|
|
12
|
-
function toPrimitive(t, r) {
|
|
13
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
14
|
-
var e = t[Symbol.toPrimitive];
|
|
15
|
-
if (void 0 !== e) {
|
|
16
|
-
var i = e.call(t, r || "default");
|
|
17
|
-
if ("object" != _typeof(i)) return i;
|
|
18
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
19
|
-
}
|
|
20
|
-
return ("string" === r ? String : Number)(t);
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPropertyKey.js
|
|
24
|
-
function toPropertyKey(t) {
|
|
25
|
-
var i = toPrimitive(t, "string");
|
|
26
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/defineProperty.js
|
|
30
|
-
function _defineProperty(e, r, t) {
|
|
31
|
-
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
32
|
-
value: t,
|
|
33
|
-
enumerable: !0,
|
|
34
|
-
configurable: !0,
|
|
35
|
-
writable: !0
|
|
36
|
-
}) : e[r] = t, e;
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/utils/object.ts
|
|
40
|
-
function definedEntries(value) {
|
|
41
|
-
return Object.entries(value).filter(([, item]) => item !== void 0);
|
|
42
|
-
}
|
|
43
|
-
function omitUndefined(value) {
|
|
44
|
-
return Object.fromEntries(definedEntries(value));
|
|
45
|
-
}
|
|
46
|
-
//#endregion
|
|
47
|
-
export { _defineProperty as n, omitUndefined as t };
|
package/dist/object-DbHtAXRk.cjs
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/typeof.js
|
|
2
|
-
function _typeof(o) {
|
|
3
|
-
"@babel/helpers - typeof";
|
|
4
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
5
|
-
return typeof o;
|
|
6
|
-
} : function(o) {
|
|
7
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
-
}, _typeof(o);
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPrimitive.js
|
|
12
|
-
function toPrimitive(t, r) {
|
|
13
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
14
|
-
var e = t[Symbol.toPrimitive];
|
|
15
|
-
if (void 0 !== e) {
|
|
16
|
-
var i = e.call(t, r || "default");
|
|
17
|
-
if ("object" != _typeof(i)) return i;
|
|
18
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
19
|
-
}
|
|
20
|
-
return ("string" === r ? String : Number)(t);
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/toPropertyKey.js
|
|
24
|
-
function toPropertyKey(t) {
|
|
25
|
-
var i = toPrimitive(t, "string");
|
|
26
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/defineProperty.js
|
|
30
|
-
function _defineProperty(e, r, t) {
|
|
31
|
-
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
32
|
-
value: t,
|
|
33
|
-
enumerable: !0,
|
|
34
|
-
configurable: !0,
|
|
35
|
-
writable: !0
|
|
36
|
-
}) : e[r] = t, e;
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/utils/object.ts
|
|
40
|
-
function definedEntries(value) {
|
|
41
|
-
return Object.entries(value).filter(([, item]) => item !== void 0);
|
|
42
|
-
}
|
|
43
|
-
function omitUndefined(value) {
|
|
44
|
-
return Object.fromEntries(definedEntries(value));
|
|
45
|
-
}
|
|
46
|
-
//#endregion
|
|
47
|
-
Object.defineProperty(exports, "_defineProperty", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function() {
|
|
50
|
-
return _defineProperty;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(exports, "omitUndefined", {
|
|
54
|
-
enumerable: true,
|
|
55
|
-
get: function() {
|
|
56
|
-
return omitUndefined;
|
|
57
|
-
}
|
|
58
|
-
});
|