weapp-tailwindcss 2.4.3 → 2.4.4
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/cli.js +3 -3
- package/dist/cli.mjs +3 -3
- package/dist/gulp.js +3 -3
- package/dist/gulp.mjs +3 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/dist/{options-a2ba3653.mjs → options-879de0a2.mjs} +7 -5
- package/dist/{options-2e71e6b3.js → options-887b74ca.js} +7 -5
- package/dist/postcss/plugin.d.ts +1 -1
- package/dist/postcss/shared.d.ts +1 -1
- package/dist/{postcss-b8952a11.js → postcss-33ef0bd0.js} +10 -2
- package/dist/{postcss-15e2ef2d.mjs → postcss-ea625621.mjs} +10 -2
- package/dist/postcss.js +2 -2
- package/dist/postcss.mjs +2 -2
- package/dist/replace.js +1 -1
- package/dist/replace.mjs +2 -2
- package/dist/{shared-fc50603a.mjs → shared-7c88fb94.mjs} +19 -2
- package/dist/{shared-cdb5ee55.js → shared-ae7dd073.js} +19 -2
- package/dist/types.d.ts +2 -0
- package/dist/vite.js +3 -3
- package/dist/vite.mjs +3 -3
- package/dist/webpack.js +3 -3
- package/dist/webpack.mjs +3 -3
- package/package.json +8 -9
package/dist/cli.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var options = require('./options-
|
|
3
|
+
var options = require('./options-887b74ca.js');
|
|
4
4
|
require('micromatch');
|
|
5
5
|
require('@babel/types');
|
|
6
6
|
require('@babel/generator');
|
|
7
7
|
require('@babel/parser');
|
|
8
8
|
require('@babel/traverse');
|
|
9
9
|
require('./replace.js');
|
|
10
|
-
require('./shared-
|
|
10
|
+
require('./shared-ae7dd073.js');
|
|
11
11
|
require('postcss');
|
|
12
|
-
require('./postcss-
|
|
12
|
+
require('./postcss-33ef0bd0.js');
|
|
13
13
|
require('postcss-selector-parser');
|
|
14
14
|
require('@csstools/postcss-is-pseudo-class');
|
|
15
15
|
require('node:path');
|
package/dist/cli.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { g as getOptions, c as createPatch } from './options-
|
|
1
|
+
import { g as getOptions, c as createPatch } from './options-879de0a2.mjs';
|
|
2
2
|
import 'micromatch';
|
|
3
3
|
import '@babel/types';
|
|
4
4
|
import '@babel/generator';
|
|
5
5
|
import '@babel/parser';
|
|
6
6
|
import '@babel/traverse';
|
|
7
7
|
import './replace.mjs';
|
|
8
|
-
import './shared-
|
|
8
|
+
import './shared-7c88fb94.mjs';
|
|
9
9
|
import 'postcss';
|
|
10
|
-
import './postcss-
|
|
10
|
+
import './postcss-ea625621.mjs';
|
|
11
11
|
import 'postcss-selector-parser';
|
|
12
12
|
import '@csstools/postcss-is-pseudo-class';
|
|
13
13
|
import 'node:path';
|
package/dist/gulp.js
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var stream = require('node:stream');
|
|
6
|
-
var options = require('./options-
|
|
6
|
+
var options = require('./options-887b74ca.js');
|
|
7
7
|
require('micromatch');
|
|
8
8
|
require('@babel/types');
|
|
9
9
|
require('@babel/generator');
|
|
10
10
|
require('@babel/parser');
|
|
11
11
|
require('@babel/traverse');
|
|
12
12
|
require('./replace.js');
|
|
13
|
-
require('./shared-
|
|
13
|
+
require('./shared-ae7dd073.js');
|
|
14
14
|
require('postcss');
|
|
15
|
-
require('./postcss-
|
|
15
|
+
require('./postcss-33ef0bd0.js');
|
|
16
16
|
require('postcss-selector-parser');
|
|
17
17
|
require('@csstools/postcss-is-pseudo-class');
|
|
18
18
|
require('node:path');
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import stream from 'node:stream';
|
|
2
|
-
import { g as getOptions, a as createTailwindcssPatcher } from './options-
|
|
2
|
+
import { g as getOptions, a as createTailwindcssPatcher } from './options-879de0a2.mjs';
|
|
3
3
|
import 'micromatch';
|
|
4
4
|
import '@babel/types';
|
|
5
5
|
import '@babel/generator';
|
|
6
6
|
import '@babel/parser';
|
|
7
7
|
import '@babel/traverse';
|
|
8
8
|
import './replace.mjs';
|
|
9
|
-
import './shared-
|
|
9
|
+
import './shared-7c88fb94.mjs';
|
|
10
10
|
import 'postcss';
|
|
11
|
-
import './postcss-
|
|
11
|
+
import './postcss-ea625621.mjs';
|
|
12
12
|
import 'postcss-selector-parser';
|
|
13
13
|
import '@csstools/postcss-is-pseudo-class';
|
|
14
14
|
import 'node:path';
|
package/dist/index.js
CHANGED
|
@@ -5,16 +5,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var webpack = require('./webpack.js');
|
|
6
6
|
var vite = require('./vite.js');
|
|
7
7
|
var gulp = require('./gulp.js');
|
|
8
|
-
require('./options-
|
|
8
|
+
require('./options-887b74ca.js');
|
|
9
9
|
require('micromatch');
|
|
10
10
|
require('@babel/types');
|
|
11
11
|
require('@babel/generator');
|
|
12
12
|
require('@babel/parser');
|
|
13
13
|
require('@babel/traverse');
|
|
14
14
|
require('./replace.js');
|
|
15
|
-
require('./shared-
|
|
15
|
+
require('./shared-ae7dd073.js');
|
|
16
16
|
require('postcss');
|
|
17
|
-
require('./postcss-
|
|
17
|
+
require('./postcss-33ef0bd0.js');
|
|
18
18
|
require('postcss-selector-parser');
|
|
19
19
|
require('@csstools/postcss-is-pseudo-class');
|
|
20
20
|
require('node:path');
|
package/dist/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export { UnifiedWebpackPluginV5 } from './webpack.mjs';
|
|
2
2
|
export { UnifiedViteWeappTailwindcssPlugin } from './vite.mjs';
|
|
3
3
|
export { createPlugins } from './gulp.mjs';
|
|
4
|
-
import './options-
|
|
4
|
+
import './options-879de0a2.mjs';
|
|
5
5
|
import 'micromatch';
|
|
6
6
|
import '@babel/types';
|
|
7
7
|
import '@babel/generator';
|
|
8
8
|
import '@babel/parser';
|
|
9
9
|
import '@babel/traverse';
|
|
10
10
|
import './replace.mjs';
|
|
11
|
-
import './shared-
|
|
11
|
+
import './shared-7c88fb94.mjs';
|
|
12
12
|
import 'postcss';
|
|
13
|
-
import './postcss-
|
|
13
|
+
import './postcss-ea625621.mjs';
|
|
14
14
|
import 'postcss-selector-parser';
|
|
15
15
|
import '@csstools/postcss-is-pseudo-class';
|
|
16
16
|
import 'node:path';
|
|
@@ -4,9 +4,9 @@ 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 { S as SimpleMappingChars2String, M as MappingChars2String } from './shared-
|
|
7
|
+
import { S as SimpleMappingChars2String, M as MappingChars2String } from './shared-7c88fb94.mjs';
|
|
8
8
|
import postcss from 'postcss';
|
|
9
|
-
import { p as postcssWeappTailwindcss } from './postcss-
|
|
9
|
+
import { p as postcssWeappTailwindcss } from './postcss-ea625621.mjs';
|
|
10
10
|
import postcssIsPseudoClass from '@csstools/postcss-is-pseudo-class';
|
|
11
11
|
import path from 'node:path';
|
|
12
12
|
import fs from 'node:fs';
|
|
@@ -339,7 +339,8 @@ const defaultOptions = {
|
|
|
339
339
|
appType: undefined,
|
|
340
340
|
arbitraryValues: {
|
|
341
341
|
allowDoubleQuotes: false
|
|
342
|
-
}
|
|
342
|
+
},
|
|
343
|
+
cssChildCombinatorReplaceValue: 'view + view'
|
|
343
344
|
};
|
|
344
345
|
|
|
345
346
|
function generateCode(match, options = {}) {
|
|
@@ -694,7 +695,7 @@ function getOptions(options = {}) {
|
|
|
694
695
|
const result = defu(options, defaultOptions, {
|
|
695
696
|
minifiedJs: isProd()
|
|
696
697
|
});
|
|
697
|
-
const { cssPreflight, customRuleCallback, cssPreflightRange, replaceUniversalSelectorWith, customAttributes, customReplaceDictionary, supportCustomLengthUnitsPatch, arbitraryValues } = result;
|
|
698
|
+
const { cssPreflight, customRuleCallback, cssPreflightRange, replaceUniversalSelectorWith, customAttributes, customReplaceDictionary, supportCustomLengthUnitsPatch, arbitraryValues, cssChildCombinatorReplaceValue } = result;
|
|
698
699
|
result.escapeMap = customReplaceDictionary;
|
|
699
700
|
const cssInjectPreflight = createInjectPreflight(cssPreflight);
|
|
700
701
|
const customAttributesEntities = isMap(options.customAttributes)
|
|
@@ -714,7 +715,8 @@ function getOptions(options = {}) {
|
|
|
714
715
|
cssPreflightRange,
|
|
715
716
|
replaceUniversalSelectorWith,
|
|
716
717
|
escapeMap,
|
|
717
|
-
mangleContext
|
|
718
|
+
mangleContext,
|
|
719
|
+
cssChildCombinatorReplaceValue
|
|
718
720
|
});
|
|
719
721
|
result.jsHandler = createjsHandler({
|
|
720
722
|
minifiedJs,
|
|
@@ -6,9 +6,9 @@ var generate = require('@babel/generator');
|
|
|
6
6
|
var parser = require('@babel/parser');
|
|
7
7
|
var traverse = require('@babel/traverse');
|
|
8
8
|
var replace = require('./replace.js');
|
|
9
|
-
var shared = require('./shared-
|
|
9
|
+
var shared = require('./shared-ae7dd073.js');
|
|
10
10
|
var postcss = require('postcss');
|
|
11
|
-
var postcss$1 = require('./postcss-
|
|
11
|
+
var postcss$1 = require('./postcss-33ef0bd0.js');
|
|
12
12
|
var postcssIsPseudoClass = require('@csstools/postcss-is-pseudo-class');
|
|
13
13
|
var path = require('node:path');
|
|
14
14
|
var fs = require('node:fs');
|
|
@@ -369,7 +369,8 @@ const defaultOptions = {
|
|
|
369
369
|
appType: undefined,
|
|
370
370
|
arbitraryValues: {
|
|
371
371
|
allowDoubleQuotes: false
|
|
372
|
-
}
|
|
372
|
+
},
|
|
373
|
+
cssChildCombinatorReplaceValue: 'view + view'
|
|
373
374
|
};
|
|
374
375
|
|
|
375
376
|
function generateCode(match, options = {}) {
|
|
@@ -724,7 +725,7 @@ function getOptions(options = {}) {
|
|
|
724
725
|
const result = defu(options, defaultOptions, {
|
|
725
726
|
minifiedJs: isProd()
|
|
726
727
|
});
|
|
727
|
-
const { cssPreflight, customRuleCallback, cssPreflightRange, replaceUniversalSelectorWith, customAttributes, customReplaceDictionary, supportCustomLengthUnitsPatch, arbitraryValues } = result;
|
|
728
|
+
const { cssPreflight, customRuleCallback, cssPreflightRange, replaceUniversalSelectorWith, customAttributes, customReplaceDictionary, supportCustomLengthUnitsPatch, arbitraryValues, cssChildCombinatorReplaceValue } = result;
|
|
728
729
|
result.escapeMap = customReplaceDictionary;
|
|
729
730
|
const cssInjectPreflight = createInjectPreflight(cssPreflight);
|
|
730
731
|
const customAttributesEntities = isMap(options.customAttributes)
|
|
@@ -744,7 +745,8 @@ function getOptions(options = {}) {
|
|
|
744
745
|
cssPreflightRange,
|
|
745
746
|
replaceUniversalSelectorWith,
|
|
746
747
|
escapeMap,
|
|
747
|
-
mangleContext
|
|
748
|
+
mangleContext,
|
|
749
|
+
cssChildCombinatorReplaceValue
|
|
748
750
|
});
|
|
749
751
|
result.jsHandler = createjsHandler({
|
|
750
752
|
minifiedJs,
|
package/dist/postcss/plugin.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import type { PluginCreator } from 'postcss';
|
|
|
2
2
|
import type { IStyleHandlerOptions } from "../types";
|
|
3
3
|
export type PostcssWeappTailwindcssRenamePlugin = PluginCreator<IStyleHandlerOptions>;
|
|
4
4
|
declare const postcssWeappTailwindcss: PostcssWeappTailwindcssRenamePlugin;
|
|
5
|
-
export { postcssWeappTailwindcss
|
|
5
|
+
export { postcssWeappTailwindcss };
|
|
6
6
|
export { default as postcssIsPseudoClass } from '@csstools/postcss-is-pseudo-class';
|
package/dist/postcss/shared.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InternalCssSelectorReplacerOptions } from "../types";
|
|
2
2
|
export declare function internalCssSelectorReplacer(selectors: string, options?: InternalCssSelectorReplacerOptions): string;
|
|
3
|
-
export declare
|
|
3
|
+
export declare const cssUnescape: (str: string) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var selectorParser = require('postcss-selector-parser');
|
|
4
|
-
var shared = require('./shared-
|
|
4
|
+
var shared = require('./shared-ae7dd073.js');
|
|
5
5
|
var postcss = require('postcss');
|
|
6
6
|
require('@csstools/postcss-is-pseudo-class');
|
|
7
7
|
|
|
@@ -63,7 +63,15 @@ function testIfVariablesScope(node, count = 1) {
|
|
|
63
63
|
return false;
|
|
64
64
|
}
|
|
65
65
|
function commonChunkPreflight(node, options) {
|
|
66
|
-
|
|
66
|
+
let childCombinatorReplaceValue = 'view + view';
|
|
67
|
+
if (Array.isArray(options.cssChildCombinatorReplaceValue)) {
|
|
68
|
+
const part = options.cssChildCombinatorReplaceValue.join(',');
|
|
69
|
+
childCombinatorReplaceValue = [part, ' + ', part].join('');
|
|
70
|
+
}
|
|
71
|
+
else if (typeof options.cssChildCombinatorReplaceValue === 'string') {
|
|
72
|
+
childCombinatorReplaceValue = options.cssChildCombinatorReplaceValue;
|
|
73
|
+
}
|
|
74
|
+
node.selector = node.selector.replaceAll(BROAD_MATCH_GLOBAL_REGEXP, childCombinatorReplaceValue);
|
|
67
75
|
if (testIfVariablesScope(node)) {
|
|
68
76
|
const selectorParts = node.selector.split(',');
|
|
69
77
|
if (!selectorParts.includes('view')) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import selectorParser from 'postcss-selector-parser';
|
|
2
|
-
import { i as internalCssSelectorReplacer } from './shared-
|
|
2
|
+
import { i as internalCssSelectorReplacer } from './shared-7c88fb94.mjs';
|
|
3
3
|
import { Rule, Declaration } from 'postcss';
|
|
4
4
|
import '@csstools/postcss-is-pseudo-class';
|
|
5
5
|
|
|
@@ -57,7 +57,15 @@ function testIfVariablesScope(node, count = 1) {
|
|
|
57
57
|
return false;
|
|
58
58
|
}
|
|
59
59
|
function commonChunkPreflight(node, options) {
|
|
60
|
-
|
|
60
|
+
let childCombinatorReplaceValue = 'view + view';
|
|
61
|
+
if (Array.isArray(options.cssChildCombinatorReplaceValue)) {
|
|
62
|
+
const part = options.cssChildCombinatorReplaceValue.join(',');
|
|
63
|
+
childCombinatorReplaceValue = [part, ' + ', part].join('');
|
|
64
|
+
}
|
|
65
|
+
else if (typeof options.cssChildCombinatorReplaceValue === 'string') {
|
|
66
|
+
childCombinatorReplaceValue = options.cssChildCombinatorReplaceValue;
|
|
67
|
+
}
|
|
68
|
+
node.selector = node.selector.replaceAll(BROAD_MATCH_GLOBAL_REGEXP, childCombinatorReplaceValue);
|
|
61
69
|
if (testIfVariablesScope(node)) {
|
|
62
70
|
const selectorParts = node.selector.split(',');
|
|
63
71
|
if (!selectorParts.includes('view')) {
|
package/dist/postcss.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var postcss = require('./postcss-
|
|
5
|
+
var postcss = require('./postcss-33ef0bd0.js');
|
|
6
6
|
var postcssIsPseudoClass = require('@csstools/postcss-is-pseudo-class');
|
|
7
7
|
require('postcss-selector-parser');
|
|
8
|
-
require('./shared-
|
|
8
|
+
require('./shared-ae7dd073.js');
|
|
9
9
|
require('postcss');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
package/dist/postcss.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { p as postcssWeappTailwindcss } from './postcss-
|
|
1
|
+
export { p as postcssWeappTailwindcss } from './postcss-ea625621.mjs';
|
|
2
2
|
export { default as postcssIsPseudoClass } from '@csstools/postcss-is-pseudo-class';
|
|
3
3
|
import 'postcss-selector-parser';
|
|
4
|
-
import './shared-
|
|
4
|
+
import './shared-7c88fb94.mjs';
|
|
5
5
|
import 'postcss';
|
package/dist/replace.js
CHANGED
package/dist/replace.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as escape, S as SimpleMappingChars2String } from './shared-
|
|
2
|
-
export { M as MappingChars2String, b as MappingChars2StringEntries, a as SYMBOL_TABLE, c as SimpleMappingChars2StringEntries, i as replaceCss } from './shared-
|
|
1
|
+
import { e as escape, S as SimpleMappingChars2String } from './shared-7c88fb94.mjs';
|
|
2
|
+
export { M as MappingChars2String, b as MappingChars2StringEntries, a as SYMBOL_TABLE, c as SimpleMappingChars2StringEntries, i as replaceCss } from './shared-7c88fb94.mjs';
|
|
3
3
|
|
|
4
4
|
function replaceWxml(original, options = {
|
|
5
5
|
keepEOL: false,
|
|
@@ -103,6 +103,9 @@ const SimpleMappingChars2String = {
|
|
|
103
103
|
const SimpleMappingChars2StringEntries = Object.entries(SimpleMappingChars2String);
|
|
104
104
|
|
|
105
105
|
const MAX_ASCII_CHAR_CODE = 127;
|
|
106
|
+
function isAsciiNumber(code) {
|
|
107
|
+
return code >= 48 && code <= 57;
|
|
108
|
+
}
|
|
106
109
|
function escape(selectors, options = {
|
|
107
110
|
map: SimpleMappingChars2String
|
|
108
111
|
}) {
|
|
@@ -120,8 +123,22 @@ function escape(selectors, options = {
|
|
|
120
123
|
else if (hit) {
|
|
121
124
|
sb[i] = hit;
|
|
122
125
|
}
|
|
123
|
-
else if (i === 0
|
|
124
|
-
|
|
126
|
+
else if (i === 0) {
|
|
127
|
+
if (isAsciiNumber(code)) {
|
|
128
|
+
sb[i] = '_' + char;
|
|
129
|
+
}
|
|
130
|
+
else if (char === '-') {
|
|
131
|
+
const nextChar = sb[i + 1];
|
|
132
|
+
if (nextChar) {
|
|
133
|
+
const nextCharCode = nextChar.codePointAt(0);
|
|
134
|
+
if (nextCharCode && isAsciiNumber(nextCharCode)) {
|
|
135
|
+
sb[i] = '_' + char;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
else if (nextChar === undefined) {
|
|
139
|
+
sb[i] = '_' + char;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
125
142
|
}
|
|
126
143
|
}
|
|
127
144
|
}
|
|
@@ -105,6 +105,9 @@ const SimpleMappingChars2String = {
|
|
|
105
105
|
const SimpleMappingChars2StringEntries = Object.entries(SimpleMappingChars2String);
|
|
106
106
|
|
|
107
107
|
const MAX_ASCII_CHAR_CODE = 127;
|
|
108
|
+
function isAsciiNumber(code) {
|
|
109
|
+
return code >= 48 && code <= 57;
|
|
110
|
+
}
|
|
108
111
|
function escape(selectors, options = {
|
|
109
112
|
map: SimpleMappingChars2String
|
|
110
113
|
}) {
|
|
@@ -122,8 +125,22 @@ function escape(selectors, options = {
|
|
|
122
125
|
else if (hit) {
|
|
123
126
|
sb[i] = hit;
|
|
124
127
|
}
|
|
125
|
-
else if (i === 0
|
|
126
|
-
|
|
128
|
+
else if (i === 0) {
|
|
129
|
+
if (isAsciiNumber(code)) {
|
|
130
|
+
sb[i] = '_' + char;
|
|
131
|
+
}
|
|
132
|
+
else if (char === '-') {
|
|
133
|
+
const nextChar = sb[i + 1];
|
|
134
|
+
if (nextChar) {
|
|
135
|
+
const nextCharCode = nextChar.codePointAt(0);
|
|
136
|
+
if (nextCharCode && isAsciiNumber(nextCharCode)) {
|
|
137
|
+
sb[i] = '_' + char;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
else if (nextChar === undefined) {
|
|
141
|
+
sb[i] = '_' + char;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
127
144
|
}
|
|
128
145
|
}
|
|
129
146
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type RequiredStyleHandlerOptions = {
|
|
|
16
16
|
isMainChunk: boolean;
|
|
17
17
|
cssInjectPreflight?: InjectPreflight;
|
|
18
18
|
cssPreflightRange?: 'view' | 'all';
|
|
19
|
+
cssChildCombinatorReplaceValue?: string | string[];
|
|
19
20
|
replaceUniversalSelectorWith?: string | false;
|
|
20
21
|
escapeMap?: Record<string, string>;
|
|
21
22
|
};
|
|
@@ -87,6 +88,7 @@ export interface UserDefinedOptions {
|
|
|
87
88
|
minifiedJs?: boolean;
|
|
88
89
|
mangle?: boolean | IMangleOptions;
|
|
89
90
|
arbitraryValues?: IArbitraryValues;
|
|
91
|
+
cssChildCombinatorReplaceValue?: string | string[];
|
|
90
92
|
}
|
|
91
93
|
export interface IMangleScopeContext {
|
|
92
94
|
rawOptions: UserDefinedOptions['mangle'];
|
package/dist/vite.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var options = require('./options-
|
|
6
|
-
var postcss = require('./postcss-
|
|
5
|
+
var options = require('./options-887b74ca.js');
|
|
6
|
+
var postcss = require('./postcss-33ef0bd0.js');
|
|
7
7
|
require('micromatch');
|
|
8
8
|
require('@babel/types');
|
|
9
9
|
require('@babel/generator');
|
|
10
10
|
require('@babel/parser');
|
|
11
11
|
require('@babel/traverse');
|
|
12
12
|
require('./replace.js');
|
|
13
|
-
require('./shared-
|
|
13
|
+
require('./shared-ae7dd073.js');
|
|
14
14
|
require('postcss');
|
|
15
15
|
require('@csstools/postcss-is-pseudo-class');
|
|
16
16
|
require('node:path');
|
package/dist/vite.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { g as getOptions, a as createTailwindcssPatcher, b as getGroupedEntries } from './options-
|
|
2
|
-
import { v as vitePluginName } from './postcss-
|
|
1
|
+
import { g as getOptions, a as createTailwindcssPatcher, b as getGroupedEntries } from './options-879de0a2.mjs';
|
|
2
|
+
import { v as vitePluginName } from './postcss-ea625621.mjs';
|
|
3
3
|
import 'micromatch';
|
|
4
4
|
import '@babel/types';
|
|
5
5
|
import '@babel/generator';
|
|
6
6
|
import '@babel/parser';
|
|
7
7
|
import '@babel/traverse';
|
|
8
8
|
import './replace.mjs';
|
|
9
|
-
import './shared-
|
|
9
|
+
import './shared-7c88fb94.mjs';
|
|
10
10
|
import 'postcss';
|
|
11
11
|
import '@csstools/postcss-is-pseudo-class';
|
|
12
12
|
import 'node:path';
|
package/dist/webpack.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var options = require('./options-
|
|
6
|
-
var postcss = require('./postcss-
|
|
5
|
+
var options = require('./options-887b74ca.js');
|
|
6
|
+
var postcss = require('./postcss-33ef0bd0.js');
|
|
7
7
|
require('micromatch');
|
|
8
8
|
require('@babel/types');
|
|
9
9
|
require('@babel/generator');
|
|
10
10
|
require('@babel/parser');
|
|
11
11
|
require('@babel/traverse');
|
|
12
12
|
require('./replace.js');
|
|
13
|
-
require('./shared-
|
|
13
|
+
require('./shared-ae7dd073.js');
|
|
14
14
|
require('postcss');
|
|
15
15
|
require('@csstools/postcss-is-pseudo-class');
|
|
16
16
|
require('node:path');
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { g as getOptions, a as createTailwindcssPatcher, b as getGroupedEntries } from './options-
|
|
2
|
-
import { a as pluginName, N as NS } from './postcss-
|
|
1
|
+
import { g as getOptions, a as createTailwindcssPatcher, b as getGroupedEntries } from './options-879de0a2.mjs';
|
|
2
|
+
import { a as pluginName, N as NS } from './postcss-ea625621.mjs';
|
|
3
3
|
import 'micromatch';
|
|
4
4
|
import '@babel/types';
|
|
5
5
|
import '@babel/generator';
|
|
6
6
|
import '@babel/parser';
|
|
7
7
|
import '@babel/traverse';
|
|
8
8
|
import './replace.mjs';
|
|
9
|
-
import './shared-
|
|
9
|
+
import './shared-7c88fb94.mjs';
|
|
10
10
|
import 'postcss';
|
|
11
11
|
import '@csstools/postcss-is-pseudo-class';
|
|
12
12
|
import 'node:path';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-tailwindcss",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.4",
|
|
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",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"@types/jest": "^29.5.2",
|
|
115
115
|
"@types/lodash": "^4.14.195",
|
|
116
116
|
"@types/micromatch": "^4.0.2",
|
|
117
|
-
"@types/node": "^20.
|
|
117
|
+
"@types/node": "^20.3.1",
|
|
118
118
|
"@types/semver": "^7.5.0",
|
|
119
119
|
"@types/vinyl": "^2.0.7",
|
|
120
120
|
"@types/webpack": "^5.28.1",
|
|
@@ -140,7 +140,6 @@
|
|
|
140
140
|
"html-loader": "^4.2.0",
|
|
141
141
|
"jest": "^29.5.0",
|
|
142
142
|
"lodash": "^4.17.21",
|
|
143
|
-
"memfs": "^3.5.3",
|
|
144
143
|
"mini-css-extract-plugin": "^2.7.6",
|
|
145
144
|
"miniprogram-automator": "^0.12.0",
|
|
146
145
|
"pkg-types": "^1.0.3",
|
|
@@ -148,9 +147,8 @@
|
|
|
148
147
|
"postcss-loader": "^7.3.3",
|
|
149
148
|
"postcss-rem-to-responsive-pixel": "^5.1.3",
|
|
150
149
|
"prettier": "^2.8.8",
|
|
151
|
-
"rollup": "^3.
|
|
152
|
-
"rollup-plugin-visualizer": "^5.9.
|
|
153
|
-
"simple-functional-loader": "^1.2.1",
|
|
150
|
+
"rollup": "^3.25.1",
|
|
151
|
+
"rollup-plugin-visualizer": "^5.9.2",
|
|
154
152
|
"style-loader": "^3.3.3",
|
|
155
153
|
"tailwind-children": "^0.5.0",
|
|
156
154
|
"tailwindcss": "^3.3.2",
|
|
@@ -166,7 +164,8 @@
|
|
|
166
164
|
"vite": "^4.3.9",
|
|
167
165
|
"vitest": "^0.32.0",
|
|
168
166
|
"weapp-tailwindcss-children": "^0.1.0",
|
|
169
|
-
"webpack": "^5.86.0"
|
|
167
|
+
"webpack": "^5.86.0",
|
|
168
|
+
"webpack-build-utils": "^0.0.1"
|
|
170
169
|
},
|
|
171
170
|
"dependencies": {
|
|
172
171
|
"@babel/generator": "^7.21.4",
|
|
@@ -178,8 +177,8 @@
|
|
|
178
177
|
"postcss": "8.4.24",
|
|
179
178
|
"postcss-selector-parser": "^6.0.13",
|
|
180
179
|
"semver": "^7.5.1",
|
|
181
|
-
"tailwindcss-mangle-shared": "^1.2.
|
|
182
|
-
"tailwindcss-patch": "^1.2.
|
|
180
|
+
"tailwindcss-mangle-shared": "^1.2.5",
|
|
181
|
+
"tailwindcss-patch": "^1.2.5"
|
|
183
182
|
},
|
|
184
183
|
"packageManager": "pnpm@8.6.1",
|
|
185
184
|
"scripts": {
|