@weapp-tailwindcss/shared 1.0.2 → 1.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/README.md
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
>
|
|
26
26
|
> 小程序原生工具链 `weapp-vite` 已经发布,使用它改善你的原生小程序开发体验吧,更多详见 [官方文档](https://vite.icebreaker.top/)
|
|
27
27
|
|
|
28
|
-
\[[文档地址](https://tw.icebreaker.top)\] \| \[[加入技术交流群](https://tw.icebreaker.top/docs/community/group)\]
|
|
28
|
+
\[[文档地址](https://tw.icebreaker.top)\] \| \[[备用文档地址](https://ice-tw.netlify.app/)\] \| \[[加入技术交流群](https://tw.icebreaker.top/docs/community/group)\]
|
|
29
29
|
|
|
30
30
|
- [特性](#特性)
|
|
31
31
|
- [版本对应](#版本对应)
|
|
@@ -56,7 +56,10 @@
|
|
|
56
56
|
|
|
57
57
|
## 版本对应
|
|
58
58
|
|
|
59
|
-
目前,`weapp-tailwindcss` 的 `
|
|
59
|
+
目前,`weapp-tailwindcss` 的 `4.x` 版本
|
|
60
|
+
|
|
61
|
+
- 支持最新版本的 `tailwindcss v4` 和 `v3` 还有 `v2 jit` 版本。
|
|
62
|
+
- 支持 `webpack5`,`webpack4`, `vite` 和 `gulp` 这些打包工具,也支持纯 `Nodejs` API 的方式,集成到你自己的构建工具中。
|
|
60
63
|
|
|
61
64
|
> 如果你还在使用 `tailwindcss@2` 版本,那你应该使用从 `weapp-tailwindcss/webpack4` 导出的本插件的 `postcss7` `webpack4` 版本。另外请确保你的 `nodejs` 版本 `>=16.6.0`。目前低于 `16` 的长期维护版本(`偶数版本`) 都已经结束了生命周期,建议安装 `nodejs` 的 `LTS` 版本,详见 [nodejs/release](https://github.com/nodejs/release)
|
|
62
65
|
|
|
@@ -27,9 +27,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.pnpm/tsup@8.
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.3_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js
|
|
31
|
+
import path from "path";
|
|
32
|
+
import { fileURLToPath } from "url";
|
|
31
33
|
var init_esm_shims = __esm({
|
|
32
|
-
"../../node_modules/.pnpm/tsup@8.
|
|
34
|
+
"../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.3_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js"() {
|
|
33
35
|
"use strict";
|
|
34
36
|
}
|
|
35
37
|
});
|
|
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.pnpm/tsup@8.
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.3_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/cjs_shims.js
|
|
31
31
|
var init_cjs_shims = __esm({
|
|
32
|
-
"../../node_modules/.pnpm/tsup@8.
|
|
32
|
+
"../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.1_jiti@2.5.1_postcss@8.5.6_tsx@4.20.3_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/cjs_shims.js"() {
|
|
33
33
|
"use strict";
|
|
34
34
|
}
|
|
35
35
|
});
|
package/dist/extractors.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKV5DB3LQjs = require('./chunk-KV5DB3LQ.js');
|
|
4
4
|
|
|
5
5
|
// src/extractors/index.ts
|
|
6
|
-
|
|
6
|
+
_chunkKV5DB3LQjs.init_cjs_shims.call(void 0, );
|
|
7
7
|
|
|
8
8
|
// src/extractors/split.ts
|
|
9
|
-
|
|
9
|
+
_chunkKV5DB3LQjs.init_cjs_shims.call(void 0, );
|
|
10
10
|
var validateFilterRE = /[\w\u00A0-\uFFFF%-?]/;
|
|
11
11
|
function isValidSelector(selector = "") {
|
|
12
12
|
return validateFilterRE.test(selector);
|
package/dist/extractors.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkKV5DB3LQjs = require('./chunk-KV5DB3LQ.js');
|
|
6
6
|
|
|
7
7
|
// ../../node_modules/.pnpm/is-primitive@3.0.1/node_modules/is-primitive/index.js
|
|
8
|
-
var require_is_primitive =
|
|
8
|
+
var require_is_primitive = _chunkKV5DB3LQjs.__commonJS.call(void 0, {
|
|
9
9
|
"../../node_modules/.pnpm/is-primitive@3.0.1/node_modules/is-primitive/index.js"(exports, module) {
|
|
10
10
|
"use strict";
|
|
11
|
-
|
|
11
|
+
_chunkKV5DB3LQjs.init_cjs_shims.call(void 0, );
|
|
12
12
|
module.exports = function isPrimitive(val) {
|
|
13
13
|
if (typeof val === "object") {
|
|
14
14
|
return val === null;
|
|
@@ -19,10 +19,10 @@ var require_is_primitive = _chunkLZVQCCFTjs.__commonJS.call(void 0, {
|
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
// ../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js
|
|
22
|
-
var require_isobject =
|
|
22
|
+
var require_isobject = _chunkKV5DB3LQjs.__commonJS.call(void 0, {
|
|
23
23
|
"../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js"(exports, module) {
|
|
24
24
|
"use strict";
|
|
25
|
-
|
|
25
|
+
_chunkKV5DB3LQjs.init_cjs_shims.call(void 0, );
|
|
26
26
|
module.exports = function isObject2(val) {
|
|
27
27
|
return val != null && typeof val === "object" && Array.isArray(val) === false;
|
|
28
28
|
};
|
|
@@ -30,10 +30,10 @@ var require_isobject = _chunkLZVQCCFTjs.__commonJS.call(void 0, {
|
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
// ../../node_modules/.pnpm/is-plain-object@2.0.4/node_modules/is-plain-object/index.js
|
|
33
|
-
var require_is_plain_object =
|
|
33
|
+
var require_is_plain_object = _chunkKV5DB3LQjs.__commonJS.call(void 0, {
|
|
34
34
|
"../../node_modules/.pnpm/is-plain-object@2.0.4/node_modules/is-plain-object/index.js"(exports, module) {
|
|
35
35
|
"use strict";
|
|
36
|
-
|
|
36
|
+
_chunkKV5DB3LQjs.init_cjs_shims.call(void 0, );
|
|
37
37
|
var isObject2 = require_isobject();
|
|
38
38
|
function isObjectObject(o) {
|
|
39
39
|
return isObject2(o) === true && Object.prototype.toString.call(o) === "[object Object]";
|
|
@@ -54,10 +54,10 @@ var require_is_plain_object = _chunkLZVQCCFTjs.__commonJS.call(void 0, {
|
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
// ../../node_modules/.pnpm/set-value@4.1.0/node_modules/set-value/index.js
|
|
57
|
-
var require_set_value =
|
|
57
|
+
var require_set_value = _chunkKV5DB3LQjs.__commonJS.call(void 0, {
|
|
58
58
|
"../../node_modules/.pnpm/set-value@4.1.0/node_modules/set-value/index.js"(exports, module) {
|
|
59
59
|
"use strict";
|
|
60
|
-
|
|
60
|
+
_chunkKV5DB3LQjs.init_cjs_shims.call(void 0, );
|
|
61
61
|
var { deleteProperty } = Reflect;
|
|
62
62
|
var isPrimitive = require_is_primitive();
|
|
63
63
|
var isPlainObject2 = require_is_plain_object();
|
|
@@ -184,10 +184,10 @@ var require_set_value = _chunkLZVQCCFTjs.__commonJS.call(void 0, {
|
|
|
184
184
|
});
|
|
185
185
|
|
|
186
186
|
// src/index.ts
|
|
187
|
-
|
|
187
|
+
_chunkKV5DB3LQjs.init_cjs_shims.call(void 0, );
|
|
188
188
|
|
|
189
189
|
// ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
|
190
|
-
|
|
190
|
+
_chunkKV5DB3LQjs.init_cjs_shims.call(void 0, );
|
|
191
191
|
function isPlainObject(value) {
|
|
192
192
|
if (value === null || typeof value !== "object") {
|
|
193
193
|
return false;
|
|
@@ -256,7 +256,7 @@ var defuArrayFn = createDefu((object, key, currentValue) => {
|
|
|
256
256
|
});
|
|
257
257
|
|
|
258
258
|
// ../../node_modules/.pnpm/get-value@4.0.1/node_modules/get-value/dist/index.mjs
|
|
259
|
-
|
|
259
|
+
_chunkKV5DB3LQjs.init_cjs_shims.call(void 0, );
|
|
260
260
|
var __defProp = Object.defineProperty;
|
|
261
261
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
262
262
|
var isObject = /* @__PURE__ */ __name((v) => v !== null && typeof v === "object", "isObject");
|
|
@@ -344,7 +344,7 @@ var getValue = /* @__PURE__ */ __name((target, path, options = {}) => {
|
|
|
344
344
|
var index_default = getValue;
|
|
345
345
|
|
|
346
346
|
// src/index.ts
|
|
347
|
-
var import_set_value =
|
|
347
|
+
var import_set_value = _chunkKV5DB3LQjs.__toESM.call(void 0, require_set_value());
|
|
348
348
|
function isRegexp(value) {
|
|
349
349
|
return Object.prototype.toString.call(value) === "[object RegExp]";
|
|
350
350
|
}
|
package/dist/index.mjs
CHANGED