weapp-tailwindcss 2.10.1 → 2.11.1
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/core.d.ts +8 -0
- package/dist/core.js +69 -0
- package/dist/core.mjs +65 -0
- package/dist/css-macro/index.d.ts +1 -1
- package/dist/css-macro/index.js +1 -1
- package/dist/css-macro/index.mjs +1 -1
- package/dist/{defu-R3SAEzGq.mjs → defu-NLkZUlr9.mjs} +9 -5
- package/dist/{defu-d2wgbAKv.js → defu-VMJMz2AB.js} +9 -5
- package/dist/gulp.js +3 -6
- package/dist/gulp.mjs +3 -6
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/dist/{options-1ejnE5kK.mjs → options-M8pGfjj_.mjs} +3 -3
- package/dist/{options-jeQuZCU1.js → options-lXV72tWf.js} +3 -3
- package/dist/{postcss-03jfy6ZA.js → postcss-Et8j4ugT.js} +30 -30
- package/dist/{postcss-GEOOjC-4.mjs → postcss-W8i3cl5I.mjs} +30 -30
- package/dist/postcss.js +1 -1
- package/dist/postcss.mjs +1 -1
- 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 +48 -43
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var options = require('./options-
|
|
3
|
+
var options = require('./options-lXV72tWf.js');
|
|
4
4
|
require('micromatch');
|
|
5
5
|
require('magic-string');
|
|
6
6
|
require('./replace.js');
|
|
@@ -11,12 +11,12 @@ require('@weapp-core/regex');
|
|
|
11
11
|
require('@babel/generator');
|
|
12
12
|
require('@babel/parser');
|
|
13
13
|
require('@babel/traverse');
|
|
14
|
-
require('./defu-
|
|
14
|
+
require('./defu-VMJMz2AB.js');
|
|
15
15
|
require('./defaults-0O-zKoXE.js');
|
|
16
16
|
require('@babel/types');
|
|
17
17
|
require('htmlparser2');
|
|
18
18
|
require('postcss');
|
|
19
|
-
require('./postcss-
|
|
19
|
+
require('./postcss-Et8j4ugT.js');
|
|
20
20
|
require('postcss-selector-parser');
|
|
21
21
|
require('@csstools/postcss-is-pseudo-class');
|
|
22
22
|
require('node:path');
|
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getOptions, c as createPatch } from './options-
|
|
1
|
+
import { g as getOptions, c as createPatch } from './options-M8pGfjj_.mjs';
|
|
2
2
|
import 'micromatch';
|
|
3
3
|
import 'magic-string';
|
|
4
4
|
import './replace.mjs';
|
|
@@ -9,12 +9,12 @@ import '@weapp-core/regex';
|
|
|
9
9
|
import '@babel/generator';
|
|
10
10
|
import '@babel/parser';
|
|
11
11
|
import '@babel/traverse';
|
|
12
|
-
import './defu-
|
|
12
|
+
import './defu-NLkZUlr9.mjs';
|
|
13
13
|
import './defaults-dz6xGhOP.mjs';
|
|
14
14
|
import '@babel/types';
|
|
15
15
|
import 'htmlparser2';
|
|
16
16
|
import 'postcss';
|
|
17
|
-
import './postcss-
|
|
17
|
+
import './postcss-W8i3cl5I.mjs';
|
|
18
18
|
import 'postcss-selector-parser';
|
|
19
19
|
import '@csstools/postcss-is-pseudo-class';
|
|
20
20
|
import 'node:path';
|
package/dist/core.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UserDefinedOptions } from "./types";
|
|
2
|
+
export declare function createContext(options?: UserDefinedOptions): {
|
|
3
|
+
transformWxss: (rawCss: string) => Promise<string>;
|
|
4
|
+
transformWxml: (rawWxml: string) => string;
|
|
5
|
+
transformJs: (rawJs: string, options?: {
|
|
6
|
+
runtimeSet?: Set<string> | undefined;
|
|
7
|
+
}) => string;
|
|
8
|
+
};
|
package/dist/core.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var options = require('./options-lXV72tWf.js');
|
|
6
|
+
require('micromatch');
|
|
7
|
+
require('magic-string');
|
|
8
|
+
require('./replace.js');
|
|
9
|
+
require('@weapp-core/escape');
|
|
10
|
+
require('@ast-core/escape');
|
|
11
|
+
require('./shared-nXoJWFdz.js');
|
|
12
|
+
require('@weapp-core/regex');
|
|
13
|
+
require('@babel/generator');
|
|
14
|
+
require('@babel/parser');
|
|
15
|
+
require('@babel/traverse');
|
|
16
|
+
require('./defu-VMJMz2AB.js');
|
|
17
|
+
require('./defaults-0O-zKoXE.js');
|
|
18
|
+
require('@babel/types');
|
|
19
|
+
require('htmlparser2');
|
|
20
|
+
require('postcss');
|
|
21
|
+
require('./postcss-Et8j4ugT.js');
|
|
22
|
+
require('postcss-selector-parser');
|
|
23
|
+
require('@csstools/postcss-is-pseudo-class');
|
|
24
|
+
require('node:path');
|
|
25
|
+
require('node:fs');
|
|
26
|
+
require('semver');
|
|
27
|
+
require('tailwindcss-patch');
|
|
28
|
+
require('@tailwindcss-mangle/shared');
|
|
29
|
+
require('lru-cache');
|
|
30
|
+
require('md5');
|
|
31
|
+
|
|
32
|
+
function createContext(options$1 = {}) {
|
|
33
|
+
const opts = options.getOptions(options$1);
|
|
34
|
+
const { templateHandler, styleHandler, patch, jsHandler, tailwindcssBasedir } = opts;
|
|
35
|
+
let runtimeSet = new Set();
|
|
36
|
+
patch === null || patch === void 0 ? void 0 : patch();
|
|
37
|
+
const twPatcher = options.createTailwindcssPatcher();
|
|
38
|
+
function transformWxss(rawCss) {
|
|
39
|
+
return options.__awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
const code = yield styleHandler(rawCss, {
|
|
41
|
+
isMainChunk: true
|
|
42
|
+
});
|
|
43
|
+
return code;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function transformJs(rawJs, options = {}) {
|
|
47
|
+
runtimeSet =
|
|
48
|
+
options && options.runtimeSet
|
|
49
|
+
? options.runtimeSet
|
|
50
|
+
: twPatcher.getClassSet({
|
|
51
|
+
basedir: tailwindcssBasedir
|
|
52
|
+
});
|
|
53
|
+
const { code } = jsHandler(rawJs, runtimeSet);
|
|
54
|
+
return code;
|
|
55
|
+
}
|
|
56
|
+
function transformWxml(rawWxml) {
|
|
57
|
+
const code = templateHandler(rawWxml, {
|
|
58
|
+
runtimeSet
|
|
59
|
+
});
|
|
60
|
+
return code;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
transformWxss,
|
|
64
|
+
transformWxml,
|
|
65
|
+
transformJs
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
exports.createContext = createContext;
|
package/dist/core.mjs
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { g as getOptions, a as createTailwindcssPatcher, _ as __awaiter } from './options-M8pGfjj_.mjs';
|
|
2
|
+
import 'micromatch';
|
|
3
|
+
import 'magic-string';
|
|
4
|
+
import './replace.mjs';
|
|
5
|
+
import '@weapp-core/escape';
|
|
6
|
+
import '@ast-core/escape';
|
|
7
|
+
import './shared-S0v7ZvWs.mjs';
|
|
8
|
+
import '@weapp-core/regex';
|
|
9
|
+
import '@babel/generator';
|
|
10
|
+
import '@babel/parser';
|
|
11
|
+
import '@babel/traverse';
|
|
12
|
+
import './defu-NLkZUlr9.mjs';
|
|
13
|
+
import './defaults-dz6xGhOP.mjs';
|
|
14
|
+
import '@babel/types';
|
|
15
|
+
import 'htmlparser2';
|
|
16
|
+
import 'postcss';
|
|
17
|
+
import './postcss-W8i3cl5I.mjs';
|
|
18
|
+
import 'postcss-selector-parser';
|
|
19
|
+
import '@csstools/postcss-is-pseudo-class';
|
|
20
|
+
import 'node:path';
|
|
21
|
+
import 'node:fs';
|
|
22
|
+
import 'semver';
|
|
23
|
+
import 'tailwindcss-patch';
|
|
24
|
+
import '@tailwindcss-mangle/shared';
|
|
25
|
+
import 'lru-cache';
|
|
26
|
+
import 'md5';
|
|
27
|
+
|
|
28
|
+
function createContext(options = {}) {
|
|
29
|
+
const opts = getOptions(options);
|
|
30
|
+
const { templateHandler, styleHandler, patch, jsHandler, tailwindcssBasedir } = opts;
|
|
31
|
+
let runtimeSet = new Set();
|
|
32
|
+
patch === null || patch === void 0 ? void 0 : patch();
|
|
33
|
+
const twPatcher = createTailwindcssPatcher();
|
|
34
|
+
function transformWxss(rawCss) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
const code = yield styleHandler(rawCss, {
|
|
37
|
+
isMainChunk: true
|
|
38
|
+
});
|
|
39
|
+
return code;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function transformJs(rawJs, options = {}) {
|
|
43
|
+
runtimeSet =
|
|
44
|
+
options && options.runtimeSet
|
|
45
|
+
? options.runtimeSet
|
|
46
|
+
: twPatcher.getClassSet({
|
|
47
|
+
basedir: tailwindcssBasedir
|
|
48
|
+
});
|
|
49
|
+
const { code } = jsHandler(rawJs, runtimeSet);
|
|
50
|
+
return code;
|
|
51
|
+
}
|
|
52
|
+
function transformWxml(rawWxml) {
|
|
53
|
+
const code = templateHandler(rawWxml, {
|
|
54
|
+
runtimeSet
|
|
55
|
+
});
|
|
56
|
+
return code;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
transformWxss,
|
|
60
|
+
transformWxml,
|
|
61
|
+
transformJs
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { createContext };
|
|
@@ -8,7 +8,7 @@ export interface Options {
|
|
|
8
8
|
declare const _default: {
|
|
9
9
|
(options: Options): {
|
|
10
10
|
handler: import("tailwindcss/types/config").PluginCreator;
|
|
11
|
-
config?: Partial<import("tailwindcss").Config> | undefined;
|
|
11
|
+
config?: Partial<import("tailwindcss/types/config").Config> | undefined;
|
|
12
12
|
};
|
|
13
13
|
__isOptionsFunction: true;
|
|
14
14
|
};
|
package/dist/css-macro/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var plugin = require('tailwindcss/plugin');
|
|
4
4
|
var constants = require('../constants-EVxkHOXL.js');
|
|
5
|
-
var defu = require('../defu-
|
|
5
|
+
var defu = require('../defu-VMJMz2AB.js');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
package/dist/css-macro/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import plugin from 'tailwindcss/plugin';
|
|
2
2
|
import { c as createMediaQuery, a as createNegativeMediaQuery } from '../constants-ol1NPf7z.mjs';
|
|
3
|
-
import { d as defu } from '../defu-
|
|
3
|
+
import { d as defu } from '../defu-NLkZUlr9.mjs';
|
|
4
4
|
|
|
5
5
|
var index = plugin.withOptions((options) => {
|
|
6
6
|
const { dynamic: dynamicMode, variantsMap } = defu(options, {
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
function isObject(value) {
|
|
2
|
-
return value !== null && typeof value === "object";
|
|
3
|
-
}
|
|
4
1
|
function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
5
|
-
if (!
|
|
2
|
+
if (!_isPlainObject(defaults)) {
|
|
6
3
|
return _defu(baseObject, {}, namespace, merger);
|
|
7
4
|
}
|
|
8
5
|
const object = Object.assign({}, defaults);
|
|
@@ -19,7 +16,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
|
19
16
|
}
|
|
20
17
|
if (Array.isArray(value) && Array.isArray(object[key])) {
|
|
21
18
|
object[key] = [...value, ...object[key]];
|
|
22
|
-
} else if (
|
|
19
|
+
} else if (_isPlainObject(value) && _isPlainObject(object[key])) {
|
|
23
20
|
object[key] = _defu(
|
|
24
21
|
value,
|
|
25
22
|
object[key],
|
|
@@ -32,6 +29,13 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
|
32
29
|
}
|
|
33
30
|
return object;
|
|
34
31
|
}
|
|
32
|
+
function _isPlainObject(value) {
|
|
33
|
+
if (value === null || typeof value !== "object") {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
const prototype = Object.getPrototypeOf(value);
|
|
37
|
+
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
|
|
38
|
+
}
|
|
35
39
|
function createDefu(merger) {
|
|
36
40
|
return (...arguments_) => (
|
|
37
41
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
function isObject(value) {
|
|
4
|
-
return value !== null && typeof value === "object";
|
|
5
|
-
}
|
|
6
3
|
function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
7
|
-
if (!
|
|
4
|
+
if (!_isPlainObject(defaults)) {
|
|
8
5
|
return _defu(baseObject, {}, namespace, merger);
|
|
9
6
|
}
|
|
10
7
|
const object = Object.assign({}, defaults);
|
|
@@ -21,7 +18,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
|
21
18
|
}
|
|
22
19
|
if (Array.isArray(value) && Array.isArray(object[key])) {
|
|
23
20
|
object[key] = [...value, ...object[key]];
|
|
24
|
-
} else if (
|
|
21
|
+
} else if (_isPlainObject(value) && _isPlainObject(object[key])) {
|
|
25
22
|
object[key] = _defu(
|
|
26
23
|
value,
|
|
27
24
|
object[key],
|
|
@@ -34,6 +31,13 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
|
34
31
|
}
|
|
35
32
|
return object;
|
|
36
33
|
}
|
|
34
|
+
function _isPlainObject(value) {
|
|
35
|
+
if (value === null || typeof value !== "object") {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
const prototype = Object.getPrototypeOf(value);
|
|
39
|
+
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
|
|
40
|
+
}
|
|
37
41
|
function createDefu(merger) {
|
|
38
42
|
return (...arguments_) => (
|
|
39
43
|
// eslint-disable-next-line unicorn/no-array-reduce
|
package/dist/gulp.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var options = require('./options-
|
|
5
|
+
var options = require('./options-lXV72tWf.js');
|
|
6
6
|
var stream = require('node:stream');
|
|
7
7
|
require('micromatch');
|
|
8
8
|
require('magic-string');
|
|
@@ -14,12 +14,12 @@ require('@weapp-core/regex');
|
|
|
14
14
|
require('@babel/generator');
|
|
15
15
|
require('@babel/parser');
|
|
16
16
|
require('@babel/traverse');
|
|
17
|
-
require('./defu-
|
|
17
|
+
require('./defu-VMJMz2AB.js');
|
|
18
18
|
require('./defaults-0O-zKoXE.js');
|
|
19
19
|
require('@babel/types');
|
|
20
20
|
require('htmlparser2');
|
|
21
21
|
require('postcss');
|
|
22
|
-
require('./postcss-
|
|
22
|
+
require('./postcss-Et8j4ugT.js');
|
|
23
23
|
require('postcss-selector-parser');
|
|
24
24
|
require('@csstools/postcss-is-pseudo-class');
|
|
25
25
|
require('node:path');
|
|
@@ -36,9 +36,6 @@ var stream__default = /*#__PURE__*/_interopDefaultCompat(stream);
|
|
|
36
36
|
|
|
37
37
|
const Transform = stream__default["default"].Transform;
|
|
38
38
|
function createPlugins(options$1 = {}) {
|
|
39
|
-
if (options$1.customReplaceDictionary === undefined) {
|
|
40
|
-
options$1.customReplaceDictionary = 'simple';
|
|
41
|
-
}
|
|
42
39
|
const opts = options.getOptions(options$1);
|
|
43
40
|
const { templateHandler, styleHandler, patch, jsHandler, setMangleRuntimeSet, tailwindcssBasedir } = opts;
|
|
44
41
|
let runtimeSet = new Set();
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getOptions, a as createTailwindcssPatcher, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, a as createTailwindcssPatcher, _ as __awaiter } from './options-M8pGfjj_.mjs';
|
|
2
2
|
import stream from 'node:stream';
|
|
3
3
|
import 'micromatch';
|
|
4
4
|
import 'magic-string';
|
|
@@ -10,12 +10,12 @@ import '@weapp-core/regex';
|
|
|
10
10
|
import '@babel/generator';
|
|
11
11
|
import '@babel/parser';
|
|
12
12
|
import '@babel/traverse';
|
|
13
|
-
import './defu-
|
|
13
|
+
import './defu-NLkZUlr9.mjs';
|
|
14
14
|
import './defaults-dz6xGhOP.mjs';
|
|
15
15
|
import '@babel/types';
|
|
16
16
|
import 'htmlparser2';
|
|
17
17
|
import 'postcss';
|
|
18
|
-
import './postcss-
|
|
18
|
+
import './postcss-W8i3cl5I.mjs';
|
|
19
19
|
import 'postcss-selector-parser';
|
|
20
20
|
import '@csstools/postcss-is-pseudo-class';
|
|
21
21
|
import 'node:path';
|
|
@@ -28,9 +28,6 @@ import 'md5';
|
|
|
28
28
|
|
|
29
29
|
const Transform = stream.Transform;
|
|
30
30
|
function createPlugins(options = {}) {
|
|
31
|
-
if (options.customReplaceDictionary === undefined) {
|
|
32
|
-
options.customReplaceDictionary = 'simple';
|
|
33
|
-
}
|
|
34
31
|
const opts = getOptions(options);
|
|
35
32
|
const { templateHandler, styleHandler, patch, jsHandler, setMangleRuntimeSet, tailwindcssBasedir } = opts;
|
|
36
33
|
let runtimeSet = new Set();
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ 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-lXV72tWf.js');
|
|
9
9
|
require('micromatch');
|
|
10
10
|
require('magic-string');
|
|
11
11
|
require('./replace.js');
|
|
@@ -16,12 +16,12 @@ require('@weapp-core/regex');
|
|
|
16
16
|
require('@babel/generator');
|
|
17
17
|
require('@babel/parser');
|
|
18
18
|
require('@babel/traverse');
|
|
19
|
-
require('./defu-
|
|
19
|
+
require('./defu-VMJMz2AB.js');
|
|
20
20
|
require('./defaults-0O-zKoXE.js');
|
|
21
21
|
require('@babel/types');
|
|
22
22
|
require('htmlparser2');
|
|
23
23
|
require('postcss');
|
|
24
|
-
require('./postcss-
|
|
24
|
+
require('./postcss-Et8j4ugT.js');
|
|
25
25
|
require('postcss-selector-parser');
|
|
26
26
|
require('@csstools/postcss-is-pseudo-class');
|
|
27
27
|
require('node:path');
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-M8pGfjj_.mjs';
|
|
5
5
|
import 'micromatch';
|
|
6
6
|
import 'magic-string';
|
|
7
7
|
import './replace.mjs';
|
|
@@ -12,12 +12,12 @@ import '@weapp-core/regex';
|
|
|
12
12
|
import '@babel/generator';
|
|
13
13
|
import '@babel/parser';
|
|
14
14
|
import '@babel/traverse';
|
|
15
|
-
import './defu-
|
|
15
|
+
import './defu-NLkZUlr9.mjs';
|
|
16
16
|
import './defaults-dz6xGhOP.mjs';
|
|
17
17
|
import '@babel/types';
|
|
18
18
|
import 'htmlparser2';
|
|
19
19
|
import 'postcss';
|
|
20
|
-
import './postcss-
|
|
20
|
+
import './postcss-W8i3cl5I.mjs';
|
|
21
21
|
import 'postcss-selector-parser';
|
|
22
22
|
import '@csstools/postcss-is-pseudo-class';
|
|
23
23
|
import 'node:path';
|
|
@@ -7,12 +7,12 @@ import { jsStringEscape } from '@ast-core/escape';
|
|
|
7
7
|
import generate from '@babel/generator';
|
|
8
8
|
import { parse, parseExpression } from '@babel/parser';
|
|
9
9
|
import traverse from '@babel/traverse';
|
|
10
|
-
import { d as defu } from './defu-
|
|
10
|
+
import { d as defu } from './defu-NLkZUlr9.mjs';
|
|
11
11
|
import { n as noop, d as defaultOptions, i as isMap } from './defaults-dz6xGhOP.mjs';
|
|
12
12
|
import * as t from '@babel/types';
|
|
13
13
|
import { Parser } from 'htmlparser2';
|
|
14
14
|
import postcss from 'postcss';
|
|
15
|
-
import { p as postcssWeappTailwindcss } from './postcss-
|
|
15
|
+
import { p as postcssWeappTailwindcss } from './postcss-W8i3cl5I.mjs';
|
|
16
16
|
import postcssIsPseudoClass from '@csstools/postcss-is-pseudo-class';
|
|
17
17
|
import path from 'node:path';
|
|
18
18
|
import fs from 'node:fs';
|
|
@@ -742,7 +742,7 @@ function getOptions(options = {}) {
|
|
|
742
742
|
if (options.supportCustomLengthUnitsPatch === true) {
|
|
743
743
|
options.supportCustomLengthUnitsPatch = undefined;
|
|
744
744
|
}
|
|
745
|
-
if (options.customReplaceDictionary === 'simple') {
|
|
745
|
+
if (options.customReplaceDictionary === undefined || options.customReplaceDictionary === 'simple') {
|
|
746
746
|
options.customReplaceDictionary = SimpleMappingChars2String;
|
|
747
747
|
}
|
|
748
748
|
else if (options.customReplaceDictionary === 'complex') {
|
|
@@ -9,12 +9,12 @@ var escape = require('@ast-core/escape');
|
|
|
9
9
|
var generate = require('@babel/generator');
|
|
10
10
|
var parser = require('@babel/parser');
|
|
11
11
|
var traverse = require('@babel/traverse');
|
|
12
|
-
var defu = require('./defu-
|
|
12
|
+
var defu = require('./defu-VMJMz2AB.js');
|
|
13
13
|
var defaults = require('./defaults-0O-zKoXE.js');
|
|
14
14
|
var t = require('@babel/types');
|
|
15
15
|
var htmlparser2 = require('htmlparser2');
|
|
16
16
|
var postcss = require('postcss');
|
|
17
|
-
var postcss$1 = require('./postcss-
|
|
17
|
+
var postcss$1 = require('./postcss-Et8j4ugT.js');
|
|
18
18
|
var postcssIsPseudoClass = require('@csstools/postcss-is-pseudo-class');
|
|
19
19
|
var path = require('node:path');
|
|
20
20
|
var fs = require('node:fs');
|
|
@@ -774,7 +774,7 @@ function getOptions(options = {}) {
|
|
|
774
774
|
if (options.supportCustomLengthUnitsPatch === true) {
|
|
775
775
|
options.supportCustomLengthUnitsPatch = undefined;
|
|
776
776
|
}
|
|
777
|
-
if (options.customReplaceDictionary === 'simple') {
|
|
777
|
+
if (options.customReplaceDictionary === undefined || options.customReplaceDictionary === 'simple') {
|
|
778
778
|
options.customReplaceDictionary = escape$1.SimpleMappingChars2String;
|
|
779
779
|
}
|
|
780
780
|
else if (options.customReplaceDictionary === 'complex') {
|
|
@@ -92,15 +92,15 @@ var cssVars = [
|
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
prop: '--tw-pan-x',
|
|
95
|
-
value: '
|
|
95
|
+
value: ' '
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
prop: '--tw-pan-y',
|
|
99
|
-
value: '
|
|
99
|
+
value: ' '
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
prop: '--tw-pinch-zoom',
|
|
103
|
-
value: '
|
|
103
|
+
value: ' '
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
prop: '--tw-scroll-snap-strictness',
|
|
@@ -108,39 +108,39 @@ var cssVars = [
|
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
prop: '--tw-gradient-from-position',
|
|
111
|
-
value: '
|
|
111
|
+
value: ' '
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
prop: '--tw-gradient-via-position',
|
|
115
|
-
value: '
|
|
115
|
+
value: ' '
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
prop: '--tw-gradient-to-position',
|
|
119
|
-
value: '
|
|
119
|
+
value: ' '
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
prop: '--tw-ordinal',
|
|
123
|
-
value: '
|
|
123
|
+
value: ' '
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
prop: '--tw-slashed-zero',
|
|
127
|
-
value: '
|
|
127
|
+
value: ' '
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
prop: '--tw-numeric-figure',
|
|
131
|
-
value: '
|
|
131
|
+
value: ' '
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
prop: '--tw-numeric-spacing',
|
|
135
|
-
value: '
|
|
135
|
+
value: ' '
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
prop: '--tw-numeric-fraction',
|
|
139
|
-
value: '
|
|
139
|
+
value: ' '
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
prop: '--tw-ring-inset',
|
|
143
|
-
value: '
|
|
143
|
+
value: ' '
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
prop: '--tw-ring-offset-width',
|
|
@@ -172,75 +172,75 @@ var cssVars = [
|
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
prop: '--tw-blur',
|
|
175
|
-
value: '
|
|
175
|
+
value: ' '
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
prop: '--tw-brightness',
|
|
179
|
-
value: '
|
|
179
|
+
value: ' '
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
prop: '--tw-contrast',
|
|
183
|
-
value: '
|
|
183
|
+
value: ' '
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
prop: '--tw-grayscale',
|
|
187
|
-
value: '
|
|
187
|
+
value: ' '
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
prop: '--tw-hue-rotate',
|
|
191
|
-
value: '
|
|
191
|
+
value: ' '
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
prop: '--tw-invert',
|
|
195
|
-
value: '
|
|
195
|
+
value: ' '
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
prop: '--tw-saturate',
|
|
199
|
-
value: '
|
|
199
|
+
value: ' '
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
prop: '--tw-sepia',
|
|
203
|
-
value: '
|
|
203
|
+
value: ' '
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
206
|
prop: '--tw-drop-shadow',
|
|
207
|
-
value: '
|
|
207
|
+
value: ' '
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
prop: '--tw-backdrop-blur',
|
|
211
|
-
value: '
|
|
211
|
+
value: ' '
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
prop: '--tw-backdrop-brightness',
|
|
215
|
-
value: '
|
|
215
|
+
value: ' '
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
prop: '--tw-backdrop-contrast',
|
|
219
|
-
value: '
|
|
219
|
+
value: ' '
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
prop: '--tw-backdrop-grayscale',
|
|
223
|
-
value: '
|
|
223
|
+
value: ' '
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
226
|
prop: '--tw-backdrop-hue-rotate',
|
|
227
|
-
value: '
|
|
227
|
+
value: ' '
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
230
|
prop: '--tw-backdrop-invert',
|
|
231
|
-
value: '
|
|
231
|
+
value: ' '
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
234
|
prop: '--tw-backdrop-opacity',
|
|
235
|
-
value: '
|
|
235
|
+
value: ' '
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
prop: '--tw-backdrop-saturate',
|
|
239
|
-
value: '
|
|
239
|
+
value: ' '
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
prop: '--tw-backdrop-sepia',
|
|
243
|
-
value: '
|
|
243
|
+
value: ' '
|
|
244
244
|
}
|
|
245
245
|
];
|
|
246
246
|
|
|
@@ -86,15 +86,15 @@ var cssVars = [
|
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
prop: '--tw-pan-x',
|
|
89
|
-
value: '
|
|
89
|
+
value: ' '
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
prop: '--tw-pan-y',
|
|
93
|
-
value: '
|
|
93
|
+
value: ' '
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
prop: '--tw-pinch-zoom',
|
|
97
|
-
value: '
|
|
97
|
+
value: ' '
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
prop: '--tw-scroll-snap-strictness',
|
|
@@ -102,39 +102,39 @@ var cssVars = [
|
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
prop: '--tw-gradient-from-position',
|
|
105
|
-
value: '
|
|
105
|
+
value: ' '
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
prop: '--tw-gradient-via-position',
|
|
109
|
-
value: '
|
|
109
|
+
value: ' '
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
prop: '--tw-gradient-to-position',
|
|
113
|
-
value: '
|
|
113
|
+
value: ' '
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
prop: '--tw-ordinal',
|
|
117
|
-
value: '
|
|
117
|
+
value: ' '
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
prop: '--tw-slashed-zero',
|
|
121
|
-
value: '
|
|
121
|
+
value: ' '
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
prop: '--tw-numeric-figure',
|
|
125
|
-
value: '
|
|
125
|
+
value: ' '
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
prop: '--tw-numeric-spacing',
|
|
129
|
-
value: '
|
|
129
|
+
value: ' '
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
prop: '--tw-numeric-fraction',
|
|
133
|
-
value: '
|
|
133
|
+
value: ' '
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
prop: '--tw-ring-inset',
|
|
137
|
-
value: '
|
|
137
|
+
value: ' '
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
prop: '--tw-ring-offset-width',
|
|
@@ -166,75 +166,75 @@ var cssVars = [
|
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
prop: '--tw-blur',
|
|
169
|
-
value: '
|
|
169
|
+
value: ' '
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
prop: '--tw-brightness',
|
|
173
|
-
value: '
|
|
173
|
+
value: ' '
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
prop: '--tw-contrast',
|
|
177
|
-
value: '
|
|
177
|
+
value: ' '
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
prop: '--tw-grayscale',
|
|
181
|
-
value: '
|
|
181
|
+
value: ' '
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
prop: '--tw-hue-rotate',
|
|
185
|
-
value: '
|
|
185
|
+
value: ' '
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
prop: '--tw-invert',
|
|
189
|
-
value: '
|
|
189
|
+
value: ' '
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
prop: '--tw-saturate',
|
|
193
|
-
value: '
|
|
193
|
+
value: ' '
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
prop: '--tw-sepia',
|
|
197
|
-
value: '
|
|
197
|
+
value: ' '
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
prop: '--tw-drop-shadow',
|
|
201
|
-
value: '
|
|
201
|
+
value: ' '
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
prop: '--tw-backdrop-blur',
|
|
205
|
-
value: '
|
|
205
|
+
value: ' '
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
prop: '--tw-backdrop-brightness',
|
|
209
|
-
value: '
|
|
209
|
+
value: ' '
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
prop: '--tw-backdrop-contrast',
|
|
213
|
-
value: '
|
|
213
|
+
value: ' '
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
prop: '--tw-backdrop-grayscale',
|
|
217
|
-
value: '
|
|
217
|
+
value: ' '
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
220
|
prop: '--tw-backdrop-hue-rotate',
|
|
221
|
-
value: '
|
|
221
|
+
value: ' '
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
224
|
prop: '--tw-backdrop-invert',
|
|
225
|
-
value: '
|
|
225
|
+
value: ' '
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
prop: '--tw-backdrop-opacity',
|
|
229
|
-
value: '
|
|
229
|
+
value: ' '
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
prop: '--tw-backdrop-saturate',
|
|
233
|
-
value: '
|
|
233
|
+
value: ' '
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
prop: '--tw-backdrop-sepia',
|
|
237
|
-
value: '
|
|
237
|
+
value: ' '
|
|
238
238
|
}
|
|
239
239
|
];
|
|
240
240
|
|
package/dist/postcss.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var postcss = require('./postcss-
|
|
5
|
+
var postcss = require('./postcss-Et8j4ugT.js');
|
|
6
6
|
var postcssIsPseudoClass = require('@csstools/postcss-is-pseudo-class');
|
|
7
7
|
require('postcss-selector-parser');
|
|
8
8
|
require('./shared-nXoJWFdz.js');
|
package/dist/postcss.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { p as postcssWeappTailwindcss } from './postcss-
|
|
1
|
+
export { p as postcssWeappTailwindcss } from './postcss-W8i3cl5I.mjs';
|
|
2
2
|
export { default as postcssIsPseudoClass } from '@csstools/postcss-is-pseudo-class';
|
|
3
3
|
import 'postcss-selector-parser';
|
|
4
4
|
import './shared-S0v7ZvWs.mjs';
|
package/dist/vite.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
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-lXV72tWf.js');
|
|
6
|
+
var postcss = require('./postcss-Et8j4ugT.js');
|
|
7
7
|
var defaults = require('./defaults-0O-zKoXE.js');
|
|
8
8
|
var index = require('./index-z25r_Htj.js');
|
|
9
9
|
require('micromatch');
|
|
@@ -16,7 +16,7 @@ require('@weapp-core/regex');
|
|
|
16
16
|
require('@babel/generator');
|
|
17
17
|
require('@babel/parser');
|
|
18
18
|
require('@babel/traverse');
|
|
19
|
-
require('./defu-
|
|
19
|
+
require('./defu-VMJMz2AB.js');
|
|
20
20
|
require('@babel/types');
|
|
21
21
|
require('htmlparser2');
|
|
22
22
|
require('postcss');
|
package/dist/vite.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getOptions, a as createTailwindcssPatcher, _ as __awaiter } from './options-
|
|
2
|
-
import { v as vitePluginName } from './postcss-
|
|
1
|
+
import { g as getOptions, a as createTailwindcssPatcher, _ as __awaiter } from './options-M8pGfjj_.mjs';
|
|
2
|
+
import { v as vitePluginName } from './postcss-W8i3cl5I.mjs';
|
|
3
3
|
import { g as getGroupedEntries } from './defaults-dz6xGhOP.mjs';
|
|
4
4
|
import { c as createDebug } from './index-06BoOZig.mjs';
|
|
5
5
|
import 'micromatch';
|
|
@@ -12,7 +12,7 @@ import '@weapp-core/regex';
|
|
|
12
12
|
import '@babel/generator';
|
|
13
13
|
import '@babel/parser';
|
|
14
14
|
import '@babel/traverse';
|
|
15
|
-
import './defu-
|
|
15
|
+
import './defu-NLkZUlr9.mjs';
|
|
16
16
|
import '@babel/types';
|
|
17
17
|
import 'htmlparser2';
|
|
18
18
|
import 'postcss';
|
package/dist/webpack.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var options = require('./options-
|
|
5
|
+
var options = require('./options-lXV72tWf.js');
|
|
6
6
|
var path = require('node:path');
|
|
7
7
|
var fs = require('node:fs');
|
|
8
|
-
var postcss = require('./postcss-
|
|
8
|
+
var postcss = require('./postcss-Et8j4ugT.js');
|
|
9
9
|
var defaults = require('./defaults-0O-zKoXE.js');
|
|
10
10
|
var index = require('./index-z25r_Htj.js');
|
|
11
11
|
require('micromatch');
|
|
@@ -18,7 +18,7 @@ require('@weapp-core/regex');
|
|
|
18
18
|
require('@babel/generator');
|
|
19
19
|
require('@babel/parser');
|
|
20
20
|
require('@babel/traverse');
|
|
21
|
-
require('./defu-
|
|
21
|
+
require('./defu-VMJMz2AB.js');
|
|
22
22
|
require('@babel/types');
|
|
23
23
|
require('htmlparser2');
|
|
24
24
|
require('postcss');
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as getOptions, a as createTailwindcssPatcher, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, a as createTailwindcssPatcher, _ as __awaiter } from './options-M8pGfjj_.mjs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import fs from 'node:fs';
|
|
4
|
-
import { a as pluginName } from './postcss-
|
|
4
|
+
import { a as pluginName } from './postcss-W8i3cl5I.mjs';
|
|
5
5
|
import { g as getGroupedEntries, r as removeExt } from './defaults-dz6xGhOP.mjs';
|
|
6
6
|
import { c as createDebug } from './index-06BoOZig.mjs';
|
|
7
7
|
import 'micromatch';
|
|
@@ -14,7 +14,7 @@ import '@weapp-core/regex';
|
|
|
14
14
|
import '@babel/generator';
|
|
15
15
|
import '@babel/parser';
|
|
16
16
|
import '@babel/traverse';
|
|
17
|
-
import './defu-
|
|
17
|
+
import './defu-NLkZUlr9.mjs';
|
|
18
18
|
import '@babel/types';
|
|
19
19
|
import 'htmlparser2';
|
|
20
20
|
import 'postcss';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-tailwindcss",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.1",
|
|
4
4
|
"description": "把tailwindcss jit引擎,带给小程序开发者们! bring tailwindcss jit engine to miniprogram developers!",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,6 +31,11 @@
|
|
|
31
31
|
"require": "./dist/webpack.js",
|
|
32
32
|
"import": "./dist/webpack.mjs"
|
|
33
33
|
},
|
|
34
|
+
"./core": {
|
|
35
|
+
"types": "./dist/core.d.ts",
|
|
36
|
+
"require": "./dist/core.js",
|
|
37
|
+
"import": "./dist/core.mjs"
|
|
38
|
+
},
|
|
34
39
|
"./gulp": {
|
|
35
40
|
"types": "./dist/gulp.d.ts",
|
|
36
41
|
"require": "./dist/gulp.js",
|
|
@@ -112,7 +117,7 @@
|
|
|
112
117
|
},
|
|
113
118
|
"homepage": "https://weapp-tw.icebreaker.top",
|
|
114
119
|
"devDependencies": {
|
|
115
|
-
"@babel/core": "^7.23.
|
|
120
|
+
"@babel/core": "^7.23.3",
|
|
116
121
|
"@icebreakers/cli": "0.1.1",
|
|
117
122
|
"@icebreakers/readme": "0.1.0",
|
|
118
123
|
"@rollup/plugin-alias": "^5.0.1",
|
|
@@ -122,25 +127,25 @@
|
|
|
122
127
|
"@rollup/plugin-terser": "^0.4.4",
|
|
123
128
|
"@rollup/plugin-typescript": "^11.1.5",
|
|
124
129
|
"@tsconfig/recommended": "^1.0.3",
|
|
125
|
-
"@types/babel__generator": "^7.6.
|
|
126
|
-
"@types/babel__traverse": "^7.20.
|
|
127
|
-
"@types/debug": "^4.1.
|
|
128
|
-
"@types/diff": "^5.0.
|
|
129
|
-
"@types/fs-extra": "^11.0.
|
|
130
|
-
"@types/gulp": "^4.0.
|
|
131
|
-
"@types/gulp-postcss": "^8.0.
|
|
132
|
-
"@types/jest": "^29.5.
|
|
133
|
-
"@types/js-beautify": "^1.14.
|
|
134
|
-
"@types/klaw": "^3.0.
|
|
135
|
-
"@types/loader-utils": "^2.0.
|
|
136
|
-
"@types/lodash": "^4.14.
|
|
137
|
-
"@types/md5": "^2.3.
|
|
138
|
-
"@types/micromatch": "^4.0.
|
|
139
|
-
"@types/node": "^20.
|
|
140
|
-
"@types/semver": "^7.5.
|
|
141
|
-
"@types/vinyl": "^2.0.
|
|
142
|
-
"@types/webpack": "^5.28.
|
|
143
|
-
"@types/webpack-sources": "^3.2.
|
|
130
|
+
"@types/babel__generator": "^7.6.7",
|
|
131
|
+
"@types/babel__traverse": "^7.20.4",
|
|
132
|
+
"@types/debug": "^4.1.12",
|
|
133
|
+
"@types/diff": "^5.0.8",
|
|
134
|
+
"@types/fs-extra": "^11.0.4",
|
|
135
|
+
"@types/gulp": "^4.0.17",
|
|
136
|
+
"@types/gulp-postcss": "^8.0.6",
|
|
137
|
+
"@types/jest": "^29.5.8",
|
|
138
|
+
"@types/js-beautify": "^1.14.3",
|
|
139
|
+
"@types/klaw": "^3.0.6",
|
|
140
|
+
"@types/loader-utils": "^2.0.6",
|
|
141
|
+
"@types/lodash": "^4.14.201",
|
|
142
|
+
"@types/md5": "^2.3.5",
|
|
143
|
+
"@types/micromatch": "^4.0.5",
|
|
144
|
+
"@types/node": "^20.9.0",
|
|
145
|
+
"@types/semver": "^7.5.5",
|
|
146
|
+
"@types/vinyl": "^2.0.10",
|
|
147
|
+
"@types/webpack": "^5.28.5",
|
|
148
|
+
"@types/webpack-sources": "^3.2.3",
|
|
144
149
|
"@vitest/coverage-v8": "^0.34.6",
|
|
145
150
|
"autoprefixer": "^10.4.16",
|
|
146
151
|
"babel-loader": "^9.1.3",
|
|
@@ -150,38 +155,38 @@
|
|
|
150
155
|
"css-loader": "^6.8.1",
|
|
151
156
|
"css-to-tailwindcss-plugin": "^0.2.5",
|
|
152
157
|
"dedent": "^1.5.1",
|
|
153
|
-
"defu": "6.1.
|
|
158
|
+
"defu": "6.1.3",
|
|
154
159
|
"del": "^7.1.0",
|
|
155
160
|
"diff": "^5.1.0",
|
|
156
161
|
"domhandler": "^5.0.3",
|
|
157
|
-
"eslint": "8.
|
|
162
|
+
"eslint": "8.53.0",
|
|
158
163
|
"eslint-config-icebreaker": "^1.2.2",
|
|
159
164
|
"eslint-config-prettier": "^9.0.0",
|
|
160
165
|
"eslint-plugin-prettier": "^5.0.1",
|
|
161
166
|
"execa": "^7.2.0",
|
|
162
|
-
"fast-glob": "^3.3.
|
|
167
|
+
"fast-glob": "^3.3.2",
|
|
163
168
|
"fs-extra": "^11.1.1",
|
|
164
169
|
"gulp": "^4.0.2",
|
|
165
170
|
"gulp-postcss": "^9.0.1",
|
|
166
171
|
"html-loader": "^4.2.0",
|
|
167
172
|
"jest": "^29.7.0",
|
|
168
|
-
"js-beautify": "^1.14.
|
|
173
|
+
"js-beautify": "^1.14.11",
|
|
169
174
|
"klaw": "^4.1.0",
|
|
170
175
|
"lodash": "^4.17.21",
|
|
171
176
|
"mini-css-extract-plugin": "^2.7.6",
|
|
172
|
-
"miniprogram-automator": "^0.12.
|
|
177
|
+
"miniprogram-automator": "^0.12.1",
|
|
173
178
|
"pkg-types": "^1.0.3",
|
|
174
179
|
"postcss-load-config": "^4.0.1",
|
|
175
180
|
"postcss-loader": "^7.3.3",
|
|
176
181
|
"postcss-rem-to-responsive-pixel": "^5.1.3",
|
|
177
|
-
"prettier": "^3.0
|
|
182
|
+
"prettier": "^3.1.0",
|
|
178
183
|
"promisify-loader-runner": "^1.0.0",
|
|
179
|
-
"rollup": "^4.1
|
|
184
|
+
"rollup": "^4.4.1",
|
|
180
185
|
"rollup-plugin-visualizer": "^5.9.2",
|
|
181
|
-
"sass": "^1.69.
|
|
186
|
+
"sass": "^1.69.5",
|
|
182
187
|
"style-loader": "^3.3.3",
|
|
183
188
|
"tailwind-children": "^0.5.0",
|
|
184
|
-
"tailwindcss": "^3.3.
|
|
189
|
+
"tailwindcss": "^3.3.5",
|
|
185
190
|
"ts-jest": "^29.1.1",
|
|
186
191
|
"ts-node": "^10.9.1",
|
|
187
192
|
"ts-patch": "^3.0.2",
|
|
@@ -190,7 +195,7 @@
|
|
|
190
195
|
"typescript": "^5.2.2",
|
|
191
196
|
"typescript-transform-paths": "^3.4.6",
|
|
192
197
|
"vinyl": "^3.0.0",
|
|
193
|
-
"vite": "^4.
|
|
198
|
+
"vite": "^4.5.0",
|
|
194
199
|
"vitest": "^0.34.6",
|
|
195
200
|
"weapp-tailwindcss-children": "^0.1.0",
|
|
196
201
|
"webpack": "^5.89.0",
|
|
@@ -198,18 +203,18 @@
|
|
|
198
203
|
},
|
|
199
204
|
"dependencies": {
|
|
200
205
|
"@ast-core/escape": "^1.0.1",
|
|
201
|
-
"@babel/generator": "^7.23.
|
|
202
|
-
"@babel/parser": "^7.23.
|
|
203
|
-
"@babel/traverse": "^7.23.
|
|
204
|
-
"@babel/types": "^7.23.
|
|
206
|
+
"@babel/generator": "^7.23.3",
|
|
207
|
+
"@babel/parser": "^7.23.3",
|
|
208
|
+
"@babel/traverse": "^7.23.3",
|
|
209
|
+
"@babel/types": "^7.23.3",
|
|
205
210
|
"@csstools/postcss-is-pseudo-class": "^4.0.3",
|
|
206
211
|
"@tailwindcss-mangle/shared": "^2.2.2",
|
|
207
212
|
"@weapp-core/escape": "^2.0.0",
|
|
208
213
|
"@weapp-core/regex": "^1.0.1",
|
|
209
214
|
"debug": "^4.3.4",
|
|
210
|
-
"htmlparser2": "
|
|
215
|
+
"htmlparser2": "9.0.0",
|
|
211
216
|
"loader-utils": "^2.0.3",
|
|
212
|
-
"lru-cache": "^10.0.
|
|
217
|
+
"lru-cache": "^10.0.2",
|
|
213
218
|
"magic-string": "^0.30.5",
|
|
214
219
|
"md5": "^2.3.0",
|
|
215
220
|
"micromatch": "^4.0.5",
|
|
@@ -218,17 +223,17 @@
|
|
|
218
223
|
"semver": "^7.5.4",
|
|
219
224
|
"tailwindcss-patch": "^2.2.2"
|
|
220
225
|
},
|
|
221
|
-
"packageManager": "pnpm@8.
|
|
226
|
+
"packageManager": "pnpm@8.10.2",
|
|
222
227
|
"engines": {
|
|
223
228
|
"node": ">=16.6.0"
|
|
224
229
|
},
|
|
225
230
|
"scripts": {
|
|
226
|
-
"dev": "
|
|
227
|
-
"build": "
|
|
228
|
-
"build:demo": "
|
|
231
|
+
"dev": "pnpm clean && pnpm dts && cross-env NODE_ENV=development rollup -c rollup.config.ts --configPlugin typescript -w",
|
|
232
|
+
"build": "pnpm clean && cross-env NODE_ENV=production rollup -c rollup.config.ts --configPlugin typescript && pnpm dts",
|
|
233
|
+
"build:demo": "pnpm demo:del-dist && cross-env NODE_ENV=demo rollup -c rollup.config.ts --configPlugin typescript && pnpm demo:sync-dist",
|
|
229
234
|
"build:tsc": "cross-env NODE_ENV=development tsc --build tsconfig.json",
|
|
230
235
|
"dts": "tsc --emitDeclarationOnly -p tsconfig.dts.json",
|
|
231
|
-
"test": "cross-env DEBUG=weapp-tw jest && vitest run",
|
|
236
|
+
"test": "npm run postinstall && cross-env DEBUG=weapp-tw jest && vitest run",
|
|
232
237
|
"jest-u": "jest -u",
|
|
233
238
|
"jest:u": "jest -u",
|
|
234
239
|
"test:dev": "vitest",
|
|
@@ -239,7 +244,7 @@
|
|
|
239
244
|
"test:all": "cross-env JEST_INVALID_SKIP_CASES=1 jest",
|
|
240
245
|
"init:rename": "node scripts/init/rename.js",
|
|
241
246
|
"clean": "node scripts/clean.js",
|
|
242
|
-
"debug:web": "cd demo/web &&
|
|
247
|
+
"debug:web": "cd demo/web && pnpm dev",
|
|
243
248
|
"raw": "ts-node scripts/raw",
|
|
244
249
|
"get-decl": "ts-node scripts/get-decl.ts",
|
|
245
250
|
"demo:dev": "node scripts/demo/dev.js",
|