weapp-tailwindcss 2.6.2 → 2.6.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.
@@ -4,139 +4,18 @@ import generate from '@babel/generator';
4
4
  import { parse, parseExpression } from '@babel/parser';
5
5
  import traverse from '@babel/traverse';
6
6
  import { replaceJs as replaceWxml } from './replace.mjs';
7
- import { i as isRegexp, n as noop, d as defaultOptions, a as isMap } from './defaults-c397b5f9.mjs';
7
+ import { escapeStringRegexp, makeCustomAttributes, tagWithEitherClassAndHoverClassRegexp, templateClassExactRegexp, wxsTagRegexp, variableRegExp } from '@weapp-core/regex';
8
+ import { n as noop, d as defaultOptions, i as isMap } from './defaults-702719e1.mjs';
8
9
  import postcss from 'postcss';
9
- import { p as postcssWeappTailwindcss } from './postcss-99efb521.mjs';
10
+ import { p as postcssWeappTailwindcss } from './postcss-a551ddc0.mjs';
10
11
  import postcssIsPseudoClass from '@csstools/postcss-is-pseudo-class';
11
- import { S as SimpleMappingChars2String, M as MappingChars2String } from './dic-3790a3a4.mjs';
12
+ import { SimpleMappingChars2String, MappingChars2String } from '@weapp-core/escape';
12
13
  import path from 'node:path';
13
14
  import fs from 'node:fs';
14
15
  import { gte } from 'semver';
15
16
  import { monkeyPatchForExposingContext, requireResolve, TailwindcssPatcher } from 'tailwindcss-patch';
16
17
  import { ClassGenerator, defaultMangleClassFilter } from 'tailwindcss-mangle-shared';
17
18
 
18
- function isObject(value) {
19
- return value !== null && typeof value === "object";
20
- }
21
- function _defu(baseObject, defaults, namespace = ".", merger) {
22
- if (!isObject(defaults)) {
23
- return _defu(baseObject, {}, namespace, merger);
24
- }
25
- const object = Object.assign({}, defaults);
26
- for (const key in baseObject) {
27
- if (key === "__proto__" || key === "constructor") {
28
- continue;
29
- }
30
- const value = baseObject[key];
31
- if (value === null || value === void 0) {
32
- continue;
33
- }
34
- if (merger && merger(object, key, value, namespace)) {
35
- continue;
36
- }
37
- if (Array.isArray(value) && Array.isArray(object[key])) {
38
- object[key] = [...value, ...object[key]];
39
- } else if (isObject(value) && isObject(object[key])) {
40
- object[key] = _defu(
41
- value,
42
- object[key],
43
- (namespace ? `${namespace}.` : "") + key.toString(),
44
- merger
45
- );
46
- } else {
47
- object[key] = value;
48
- }
49
- }
50
- return object;
51
- }
52
- function createDefu(merger) {
53
- return (...arguments_) => (
54
- // eslint-disable-next-line unicorn/no-array-reduce
55
- arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
56
- );
57
- }
58
- const defu = createDefu();
59
-
60
- function escapeStringRegexp(str) {
61
- if (typeof str !== 'string') {
62
- throw new TypeError('Expected a string');
63
- }
64
- return str.replaceAll(/[$()*+.?[\\\]^{|}]/g, '\\$&').replaceAll('-', '\\x2d');
65
- }
66
- const templateClassExactRegexp = /(?<=^|\s)(?:hover-)?class=(?:["']\W+\s*\w+\()?["']([^"]+)["']/gs;
67
- const tagWithEitherClassAndHoverClassRegexp = /<[a-z][a-z-]*[a-z]*\s+[^>]*?(?:hover-)?class="[^"]*"[^>]*?\/?>/g;
68
- function handleRegexp(reg) {
69
- return `(?:${reg.source})`;
70
- }
71
- function getSourceString(input) {
72
- let result;
73
- if (typeof input === 'string') {
74
- result = input;
75
- }
76
- else if (isRegexp(input)) {
77
- result = input.source;
78
- }
79
- else {
80
- result = input.toString();
81
- }
82
- return result;
83
- }
84
- function makePattern(arr) {
85
- let pattern = '';
86
- if (Array.isArray(arr)) {
87
- pattern = arr
88
- .reduce((acc, cur) => {
89
- if (typeof cur === 'string') {
90
- acc.push(cur);
91
- }
92
- else if (isRegexp(cur)) {
93
- acc.push(handleRegexp(cur));
94
- }
95
- return acc;
96
- }, [])
97
- .join('|');
98
- }
99
- else if (typeof arr === 'string') {
100
- pattern = arr;
101
- }
102
- else if (isRegexp(arr)) {
103
- pattern = handleRegexp(arr);
104
- }
105
- return pattern;
106
- }
107
- function createTemplateHandlerMatchRegexp(tag, attrs, options = {}) {
108
- const { exact = true } = options;
109
- const prefix = exact ? '(?<=^|\\s)' : '';
110
- const pattern = makePattern(attrs);
111
- let tagPattern = getSourceString(tag);
112
- if (tagPattern === '*') {
113
- tagPattern = '[a-z][-a-z]*[a-z]*';
114
- }
115
- const source = `<(${tagPattern})\\s+[^>]*?(?:${prefix}(${pattern})="(?:[^"]*)")[^>]*?\\/?>`;
116
- return new RegExp(source, 'g');
117
- }
118
- function createTemplateClassRegexp(attrs, options = {}) {
119
- const { exact = true } = options;
120
- const prefix = exact ? '(?<=^|\\s)' : '';
121
- const pattern = makePattern(attrs);
122
- const source = `(?:${prefix}${pattern})=(?:["']\\W+\\s*(?:\\w+)\\()?["']([^"]+)['"]`;
123
- return new RegExp(source, 'gs');
124
- }
125
- function makeCustomAttributes(entries) {
126
- if (Array.isArray(entries)) {
127
- return entries.map(([k, v]) => {
128
- return {
129
- tagRegexp: createTemplateHandlerMatchRegexp(k, v),
130
- attrRegexp: createTemplateClassRegexp(v),
131
- tag: getSourceString(k),
132
- attrs: v
133
- };
134
- });
135
- }
136
- }
137
- const variableRegExp = /{{(.*?)}}/gs;
138
- const wxsTagRegexp = /<wxs\s*(?:[a-z][a-z-]*[a-z]*(?:\s*=\s*".*?")?)*\s*>(.*?)<\/wxs>/gs;
139
-
140
19
  const validateFilterRE = /[\w%-?\u00A0-\uFFFF-]/;
141
20
  function isValidSelector(selector = '') {
142
21
  return validateFilterRE.test(selector);
@@ -225,6 +104,48 @@ function createjsHandler(options) {
225
104
  };
226
105
  }
227
106
 
107
+ function isObject(value) {
108
+ return value !== null && typeof value === "object";
109
+ }
110
+ function _defu(baseObject, defaults, namespace = ".", merger) {
111
+ if (!isObject(defaults)) {
112
+ return _defu(baseObject, {}, namespace, merger);
113
+ }
114
+ const object = Object.assign({}, defaults);
115
+ for (const key in baseObject) {
116
+ if (key === "__proto__" || key === "constructor") {
117
+ continue;
118
+ }
119
+ const value = baseObject[key];
120
+ if (value === null || value === void 0) {
121
+ continue;
122
+ }
123
+ if (merger && merger(object, key, value, namespace)) {
124
+ continue;
125
+ }
126
+ if (Array.isArray(value) && Array.isArray(object[key])) {
127
+ object[key] = [...value, ...object[key]];
128
+ } else if (isObject(value) && isObject(object[key])) {
129
+ object[key] = _defu(
130
+ value,
131
+ object[key],
132
+ (namespace ? `${namespace}.` : "") + key.toString(),
133
+ merger
134
+ );
135
+ } else {
136
+ object[key] = value;
137
+ }
138
+ }
139
+ return object;
140
+ }
141
+ function createDefu(merger) {
142
+ return (...arguments_) => (
143
+ // eslint-disable-next-line unicorn/no-array-reduce
144
+ arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
145
+ );
146
+ }
147
+ const defu = createDefu();
148
+
228
149
  function generateCode(match, options = {}) {
229
150
  const ast = parseExpression(match);
230
151
  traverse(ast, {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var selectorParser = require('postcss-selector-parser');
4
- var shared = require('./shared-4eed0e5c.js');
4
+ var shared = require('./shared-df9de23f.js');
5
5
  var postcss = require('postcss');
6
6
  require('@csstools/postcss-is-pseudo-class');
7
7
 
@@ -1,5 +1,5 @@
1
1
  import selectorParser from 'postcss-selector-parser';
2
- import { i as internalCssSelectorReplacer } from './shared-686bfc32.mjs';
2
+ import { i as internalCssSelectorReplacer } from './shared-fd149084.mjs';
3
3
  import { Declaration, Rule } from 'postcss';
4
4
  import '@csstools/postcss-is-pseudo-class';
5
5
 
package/dist/postcss.js CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var postcss = require('./postcss-4c88cd6d.js');
5
+ var postcss = require('./postcss-4e99a8e8.js');
6
6
  var postcssIsPseudoClass = require('@csstools/postcss-is-pseudo-class');
7
7
  require('postcss-selector-parser');
8
- require('./shared-4eed0e5c.js');
9
- require('./dic-05980807.js');
8
+ require('./shared-df9de23f.js');
9
+ require('@weapp-core/escape');
10
10
  require('postcss');
11
11
 
12
12
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
package/dist/postcss.mjs CHANGED
@@ -1,6 +1,6 @@
1
- export { p as postcssWeappTailwindcss } from './postcss-99efb521.mjs';
1
+ export { p as postcssWeappTailwindcss } from './postcss-a551ddc0.mjs';
2
2
  export { default as postcssIsPseudoClass } from '@csstools/postcss-is-pseudo-class';
3
3
  import 'postcss-selector-parser';
4
- import './shared-686bfc32.mjs';
5
- import './dic-3790a3a4.mjs';
4
+ import './shared-fd149084.mjs';
5
+ import '@weapp-core/escape';
6
6
  import 'postcss';
package/dist/reg.d.ts CHANGED
@@ -1,16 +1 @@
1
- import type { ICustomRegexp, ItemOrItemArray } from "./types";
2
- export declare function escapeStringRegexp(str: string): string;
3
- export declare const templateClassExactRegexp: RegExp;
4
- export declare const tagWithEitherClassAndHoverClassRegexp: RegExp;
5
- interface ICreateRegexpOptions {
6
- exact?: boolean;
7
- }
8
- export declare function handleRegexp(reg: RegExp): string;
9
- export declare function getSourceString(input: string | RegExp): string;
10
- export declare function makePattern(arr: ItemOrItemArray<string | RegExp>): string;
11
- export declare function createTemplateHandlerMatchRegexp(tag: string | RegExp, attrs: ItemOrItemArray<string | RegExp>, options?: ICreateRegexpOptions): RegExp;
12
- export declare function createTemplateClassRegexp(attrs: ItemOrItemArray<string | RegExp>, options?: ICreateRegexpOptions): RegExp;
13
- export declare function makeCustomAttributes(entries?: [string | RegExp, ItemOrItemArray<string | RegExp>][]): ICustomRegexp[] | undefined;
14
- export declare const variableRegExp: RegExp;
15
- export declare const wxsTagRegexp: RegExp;
16
- export {};
1
+ export * from '@weapp-core/regex';
package/dist/replace.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './dic';
1
+ export { MappingChars2String, MappingChars2StringEntries, MappingStringDictionary, SYMBOL_TABLE, SYMBOL_TABLE_TYPE, SYMBOL_TABLE_TYPE_VALUES, SimpleMappingChars2String, SimpleMappingChars2StringEntries } from './escape';
2
2
  export { replaceWxml as replaceJs } from './wxml/shared';
3
3
  export { internalCssSelectorReplacer as replaceCss } from './postcss/shared';
package/dist/replace.js CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dic = require('./dic-05980807.js');
6
- var shared = require('./shared-4eed0e5c.js');
5
+ var escape = require('@weapp-core/escape');
6
+ var shared = require('./shared-df9de23f.js');
7
7
 
8
8
  function replaceWxml(original, options = {
9
9
  keepEOL: false,
10
- escapeMap: dic.SimpleMappingChars2String
10
+ escapeMap: escape.SimpleMappingChars2String
11
11
  }) {
12
12
  const { keepEOL, escapeMap, mangleContext } = options;
13
13
  let res = original;
@@ -18,16 +18,31 @@ function replaceWxml(original, options = {
18
18
  if (mangleContext) {
19
19
  res = mangleContext.wxmlHandler(res);
20
20
  }
21
- res = shared.escape(res, {
21
+ res = escape.escape(res, {
22
22
  map: escapeMap
23
23
  });
24
24
  return res;
25
25
  }
26
26
 
27
- exports.MappingChars2String = dic.MappingChars2String;
28
- exports.MappingChars2StringEntries = dic.MappingChars2StringEntries;
29
- exports.SYMBOL_TABLE = dic.SYMBOL_TABLE;
30
- exports.SimpleMappingChars2String = dic.SimpleMappingChars2String;
31
- exports.SimpleMappingChars2StringEntries = dic.SimpleMappingChars2StringEntries;
27
+ Object.defineProperty(exports, 'MappingChars2String', {
28
+ enumerable: true,
29
+ get: function () { return escape.MappingChars2String; }
30
+ });
31
+ Object.defineProperty(exports, 'MappingChars2StringEntries', {
32
+ enumerable: true,
33
+ get: function () { return escape.MappingChars2StringEntries; }
34
+ });
35
+ Object.defineProperty(exports, 'SYMBOL_TABLE', {
36
+ enumerable: true,
37
+ get: function () { return escape.SYMBOL_TABLE; }
38
+ });
39
+ Object.defineProperty(exports, 'SimpleMappingChars2String', {
40
+ enumerable: true,
41
+ get: function () { return escape.SimpleMappingChars2String; }
42
+ });
43
+ Object.defineProperty(exports, 'SimpleMappingChars2StringEntries', {
44
+ enumerable: true,
45
+ get: function () { return escape.SimpleMappingChars2StringEntries; }
46
+ });
32
47
  exports.replaceCss = shared.internalCssSelectorReplacer;
33
48
  exports.replaceJs = replaceWxml;
package/dist/replace.mjs CHANGED
@@ -1,7 +1,6 @@
1
- import { S as SimpleMappingChars2String } from './dic-3790a3a4.mjs';
2
- export { M as MappingChars2String, b as MappingChars2StringEntries, a as SYMBOL_TABLE, c as SimpleMappingChars2StringEntries } from './dic-3790a3a4.mjs';
3
- import { e as escape } from './shared-686bfc32.mjs';
4
- export { i as replaceCss } from './shared-686bfc32.mjs';
1
+ import { escape, SimpleMappingChars2String } from '@weapp-core/escape';
2
+ export { MappingChars2String, MappingChars2StringEntries, SYMBOL_TABLE, SimpleMappingChars2String, SimpleMappingChars2StringEntries } from '@weapp-core/escape';
3
+ export { i as replaceCss } from './shared-fd149084.mjs';
5
4
 
6
5
  function replaceWxml(original, options = {
7
6
  keepEOL: false,
@@ -22,4 +21,4 @@ function replaceWxml(original, options = {
22
21
  return res;
23
22
  }
24
23
 
25
- export { SimpleMappingChars2String, replaceWxml as replaceJs };
24
+ export { replaceWxml as replaceJs };
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ var escape = require('@weapp-core/escape');
4
+
5
+ function internalCssSelectorReplacer(selectors, options = {
6
+ escapeMap: escape.SimpleMappingChars2String
7
+ }) {
8
+ const { mangleContext, escapeMap } = options;
9
+ if (mangleContext) {
10
+ selectors = mangleContext.cssHandler(selectors);
11
+ }
12
+ return escape.escape(selectors, {
13
+ map: escapeMap
14
+ });
15
+ }
16
+
17
+ exports.internalCssSelectorReplacer = internalCssSelectorReplacer;
@@ -0,0 +1,15 @@
1
+ import { escape, SimpleMappingChars2String } from '@weapp-core/escape';
2
+
3
+ function internalCssSelectorReplacer(selectors, options = {
4
+ escapeMap: SimpleMappingChars2String
5
+ }) {
6
+ const { mangleContext, escapeMap } = options;
7
+ if (mangleContext) {
8
+ selectors = mangleContext.cssHandler(selectors);
9
+ }
10
+ return escape(selectors, {
11
+ map: escapeMap
12
+ });
13
+ }
14
+
15
+ export { internalCssSelectorReplacer as i };
package/dist/types.d.ts CHANGED
@@ -108,12 +108,6 @@ export interface ICommonReplaceOptions {
108
108
  keepEOL?: boolean;
109
109
  escapeMap?: Record<string, string>;
110
110
  }
111
- export type ICustomRegexp = {
112
- tagRegexp: RegExp;
113
- attrRegexp: RegExp;
114
- tag: string;
115
- attrs: ItemOrItemArray<string | RegExp>;
116
- };
117
111
  export interface ITemplateHandlerOptions extends ICommonReplaceOptions {
118
112
  customAttributesEntities?: ICustomAttributesEntities;
119
113
  escapeMap?: Record<string, string>;
package/dist/vite.js CHANGED
@@ -2,17 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var options = require('./options-c5e1d1b4.js');
6
- var postcss = require('./postcss-4c88cd6d.js');
7
- var defaults = require('./defaults-d79e9245.js');
5
+ var options = require('./options-43afee21.js');
6
+ var postcss = require('./postcss-4e99a8e8.js');
7
+ var defaults = require('./defaults-28cfeec8.js');
8
8
  require('micromatch');
9
9
  require('@babel/types');
10
10
  require('@babel/generator');
11
11
  require('@babel/parser');
12
12
  require('@babel/traverse');
13
13
  require('./replace.js');
14
- require('./dic-05980807.js');
15
- require('./shared-4eed0e5c.js');
14
+ require('@weapp-core/escape');
15
+ require('./shared-df9de23f.js');
16
+ require('@weapp-core/regex');
16
17
  require('postcss');
17
18
  require('@csstools/postcss-is-pseudo-class');
18
19
  require('node:path');
package/dist/vite.mjs CHANGED
@@ -1,14 +1,15 @@
1
- import { g as getOptions, a as createTailwindcssPatcher } from './options-244dcceb.mjs';
2
- import { v as vitePluginName } from './postcss-99efb521.mjs';
3
- import { g as getGroupedEntries } from './defaults-c397b5f9.mjs';
1
+ import { g as getOptions, a as createTailwindcssPatcher } from './options-d8cb9e14.mjs';
2
+ import { v as vitePluginName } from './postcss-a551ddc0.mjs';
3
+ import { g as getGroupedEntries } from './defaults-702719e1.mjs';
4
4
  import 'micromatch';
5
5
  import '@babel/types';
6
6
  import '@babel/generator';
7
7
  import '@babel/parser';
8
8
  import '@babel/traverse';
9
9
  import './replace.mjs';
10
- import './dic-3790a3a4.mjs';
11
- import './shared-686bfc32.mjs';
10
+ import '@weapp-core/escape';
11
+ import './shared-fd149084.mjs';
12
+ import '@weapp-core/regex';
12
13
  import 'postcss';
13
14
  import '@csstools/postcss-is-pseudo-class';
14
15
  import 'node:path';
package/dist/webpack.js CHANGED
@@ -4,17 +4,18 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var path = require('node:path');
6
6
  var fs = require('node:fs');
7
- var options = require('./options-c5e1d1b4.js');
8
- var postcss = require('./postcss-4c88cd6d.js');
9
- var defaults = require('./defaults-d79e9245.js');
7
+ var options = require('./options-43afee21.js');
8
+ var postcss = require('./postcss-4e99a8e8.js');
9
+ var defaults = require('./defaults-28cfeec8.js');
10
10
  require('micromatch');
11
11
  require('@babel/types');
12
12
  require('@babel/generator');
13
13
  require('@babel/parser');
14
14
  require('@babel/traverse');
15
15
  require('./replace.js');
16
- require('./dic-05980807.js');
17
- require('./shared-4eed0e5c.js');
16
+ require('@weapp-core/escape');
17
+ require('./shared-df9de23f.js');
18
+ require('@weapp-core/regex');
18
19
  require('postcss');
19
20
  require('@csstools/postcss-is-pseudo-class');
20
21
  require('semver');
package/dist/webpack.mjs CHANGED
@@ -1,16 +1,17 @@
1
1
  import path from 'node:path';
2
2
  import fs from 'node:fs';
3
- import { g as getOptions, a as createTailwindcssPatcher } from './options-244dcceb.mjs';
4
- import { a as pluginName } from './postcss-99efb521.mjs';
5
- import { g as getGroupedEntries } from './defaults-c397b5f9.mjs';
3
+ import { g as getOptions, a as createTailwindcssPatcher } from './options-d8cb9e14.mjs';
4
+ import { a as pluginName } from './postcss-a551ddc0.mjs';
5
+ import { g as getGroupedEntries } from './defaults-702719e1.mjs';
6
6
  import 'micromatch';
7
7
  import '@babel/types';
8
8
  import '@babel/generator';
9
9
  import '@babel/parser';
10
10
  import '@babel/traverse';
11
11
  import './replace.mjs';
12
- import './dic-3790a3a4.mjs';
13
- import './shared-686bfc32.mjs';
12
+ import '@weapp-core/escape';
13
+ import './shared-fd149084.mjs';
14
+ import '@weapp-core/regex';
14
15
  import 'postcss';
15
16
  import '@csstools/postcss-is-pseudo-class';
16
17
  import 'semver';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weapp-tailwindcss",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "把tailwindcss jit引擎,带给小程序开发者们\nbring tailwindcss jit engine to our miniprogram developers!",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -46,7 +46,8 @@
46
46
  "typesVersions": {
47
47
  "*": {
48
48
  "*": [
49
- "./dist/*"
49
+ "./dist/*",
50
+ "./dist/index.d.ts"
50
51
  ]
51
52
  }
52
53
  },
@@ -119,9 +120,9 @@
119
120
  "@types/jest": "^29.5.3",
120
121
  "@types/klaw": "^3.0.3",
121
122
  "@types/loader-utils": "^2.0.3",
122
- "@types/lodash": "^4.14.195",
123
+ "@types/lodash": "^4.14.196",
123
124
  "@types/micromatch": "^4.0.2",
124
- "@types/node": "^20.4.2",
125
+ "@types/node": "^20.4.5",
125
126
  "@types/semver": "^7.5.0",
126
127
  "@types/vinyl": "^2.0.7",
127
128
  "@types/webpack": "^5.28.1",
@@ -130,17 +131,16 @@
130
131
  "autoprefixer": "^10.4.14",
131
132
  "babel-loader": "^9.1.3",
132
133
  "bumpp": "^9.1.1",
133
- "chalk": "4.1.2",
134
+ "colorette": "^2.0.20",
134
135
  "cross-env": "^7.0.3",
135
136
  "css-loader": "^6.8.1",
136
137
  "defu": "6.1.2",
137
- "del": "^6.1.1",
138
+ "del": "^7.0.0",
138
139
  "eslint": "8.45.0",
139
- "eslint-config-icebreaker": "^1.1.0",
140
+ "eslint-config-icebreaker": "^1.2.2",
140
141
  "eslint-config-prettier": "^8.8.0",
141
142
  "eslint-plugin-prettier": "^4.2.1",
142
- "execa": "5",
143
- "fast-glob": "^3.3.0",
143
+ "fast-glob": "^3.3.1",
144
144
  "fs-extra": "^11.1.1",
145
145
  "gulp": "^4.0.2",
146
146
  "gulp-postcss": "^9.0.1",
@@ -164,13 +164,13 @@
164
164
  "tailwindcss": "^3.3.3",
165
165
  "ts-jest": "^29.1.1",
166
166
  "ts-node": "^10.9.1",
167
- "ts-patch": "^3.0.1",
167
+ "ts-patch": "^3.0.2",
168
168
  "tsd": "^0.28.1",
169
- "tslib": "^2.6.0",
169
+ "tslib": "^2.6.1",
170
170
  "typescript": "^5.1.6",
171
171
  "typescript-transform-paths": "^3.4.6",
172
172
  "vinyl": "^3.0.0",
173
- "vite": "^4.4.4",
173
+ "vite": "^4.4.7",
174
174
  "vitest": "^0.33.0",
175
175
  "weapp-tailwindcss-children": "^0.1.0",
176
176
  "webpack": "^5.88.2",
@@ -182,15 +182,17 @@
182
182
  "@babel/traverse": "^7.22.8",
183
183
  "@babel/types": "^7.22.5",
184
184
  "@csstools/postcss-is-pseudo-class": "^4.0.0",
185
+ "@weapp-core/escape": "^1.0.0",
186
+ "@weapp-core/regex": "^1.0.0",
185
187
  "loader-utils": "^2.0.3",
186
188
  "micromatch": "^4.0.5",
187
- "postcss": "8.4.26",
189
+ "postcss": "8.4.27",
188
190
  "postcss-selector-parser": "^6.0.13",
189
191
  "semver": "^7.5.4",
190
192
  "tailwindcss-mangle-shared": "^1.2.7",
191
193
  "tailwindcss-patch": "^1.2.7"
192
194
  },
193
- "packageManager": "pnpm@8.6.3",
195
+ "packageManager": "pnpm@8.6.9",
194
196
  "scripts": {
195
197
  "dev": "yarn clean && yarn dts && cross-env NODE_ENV=development rollup -c rollup.config.ts --configPlugin typescript -w",
196
198
  "build": "yarn clean && cross-env NODE_ENV=production rollup -c rollup.config.ts --configPlugin typescript && yarn dts",