weapp-tailwindcss 3.0.8 → 3.0.10
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 +5 -5
- package/dist/cli.mjs +5 -5
- package/dist/core.js +5 -5
- package/dist/core.mjs +5 -5
- package/dist/css-macro/index.js +2 -2
- package/dist/css-macro/index.mjs +2 -2
- package/dist/css-macro/postcss.js +1 -1
- package/dist/css-macro/postcss.mjs +1 -1
- package/dist/{defaults-1lCMiqik.js → defaults-BT3A8Rzc.js} +1 -1
- package/dist/{defaults-c-Db9ovX.mjs → defaults-CBb6_9nJ.mjs} +1 -1
- package/dist/defaults.js +2 -2
- package/dist/defaults.mjs +2 -2
- package/dist/gulp.js +6 -6
- package/dist/gulp.mjs +6 -6
- package/dist/{index-xGKG_MG3.js → index-BBGsdK79.js} +4 -4
- package/dist/{index-_74RBzwy.mjs → index-C7QwtXvo.mjs} +1 -1
- package/dist/{index-Fkmyt0Rc.js → index-CKzzVDhq.js} +1 -1
- package/dist/{index-6BYZuCJ-.mjs → index-DMO3Y3vp.mjs} +1 -1
- package/dist/{index-9KOtheOu.js → index-DXyNWU95.js} +1 -1
- package/dist/{index--E-2E4kq.mjs → index-DfbtBzIV.mjs} +4 -4
- package/dist/index.js +9 -9
- package/dist/index.mjs +9 -9
- package/dist/js/handlers.d.ts +1 -1
- package/dist/{options-OeTQagSz.js → options-Ce8c4jgF.js} +20 -27
- package/dist/{options-tzRk6WuG.mjs → options-D74YiXdv.mjs} +20 -27
- package/dist/postcss.js +2 -2
- package/dist/postcss.mjs +2 -2
- package/dist/replace.js +1 -1
- package/dist/replace.mjs +1 -1
- package/dist/types.d.ts +2 -1
- package/dist/{v5-qvd3ogQO.js → v5-B5nztYEa.js} +4 -4
- package/dist/{v5-dm4XjVKy.mjs → v5-KEbKT7UN.mjs} +4 -4
- package/dist/vite.js +7 -7
- package/dist/vite.mjs +7 -7
- package/dist/webpack.js +7 -7
- package/dist/webpack.mjs +7 -7
- package/dist/webpack4.js +6 -6
- package/dist/webpack4.mjs +6 -6
- package/package.json +15 -15
- /package/dist/{constants-ol1NPf7z.mjs → constants-CcqTvLgQ.mjs} +0 -0
- /package/dist/{constants-EVxkHOXL.js → constants-D-YMDg7M.js} +0 -0
- /package/dist/{defu-6bFjC68s.js → defu-Cdz2PomB.js} +0 -0
- /package/dist/{defu-p1R_k1Ss.mjs → defu-n46TJT6t.mjs} +0 -0
- /package/dist/{index-juOeq2Kt.js → index-CKXO21Qe.js} +0 -0
- /package/dist/{index-06BoOZig.mjs → index-CLxBL7MC.mjs} +0 -0
- /package/dist/{shared-AxeHlAoJ.js → shared-BDew1Ric.js} +0 -0
- /package/dist/{shared-0D5OOeXo.mjs → shared-BX0VV-pr.mjs} +0 -0
package/dist/cli.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var semver = require('semver');
|
|
4
|
-
var options = require('./options-
|
|
5
|
-
var index = require('./index-
|
|
4
|
+
var options = require('./options-Ce8c4jgF.js');
|
|
5
|
+
var index = require('./index-CKzzVDhq.js');
|
|
6
6
|
require('magic-string');
|
|
7
7
|
require('./replace.js');
|
|
8
8
|
require('@weapp-core/escape');
|
|
9
9
|
require('@ast-core/escape');
|
|
10
|
-
require('./shared-
|
|
10
|
+
require('./shared-BDew1Ric.js');
|
|
11
11
|
require('@weapp-core/regex');
|
|
12
12
|
require('@babel/generator');
|
|
13
13
|
require('@babel/parser');
|
|
14
14
|
require('@babel/traverse');
|
|
15
|
-
require('./defaults-
|
|
16
|
-
require('./defu-
|
|
15
|
+
require('./defaults-BT3A8Rzc.js');
|
|
16
|
+
require('./defu-Cdz2PomB.js');
|
|
17
17
|
require('@babel/types');
|
|
18
18
|
require('htmlparser2');
|
|
19
19
|
require('postcss');
|
package/dist/cli.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import semver from 'semver';
|
|
2
|
-
import { g as getOptions, a as createPatch } from './options-
|
|
3
|
-
import { W as WEAPP_TW_REQUIRED_NODE_VERSION } from './index-
|
|
2
|
+
import { g as getOptions, a as createPatch } from './options-D74YiXdv.mjs';
|
|
3
|
+
import { W as WEAPP_TW_REQUIRED_NODE_VERSION } from './index-C7QwtXvo.mjs';
|
|
4
4
|
import 'magic-string';
|
|
5
5
|
import './replace.mjs';
|
|
6
6
|
import '@weapp-core/escape';
|
|
7
7
|
import '@ast-core/escape';
|
|
8
|
-
import './shared-
|
|
8
|
+
import './shared-BX0VV-pr.mjs';
|
|
9
9
|
import '@weapp-core/regex';
|
|
10
10
|
import '@babel/generator';
|
|
11
11
|
import '@babel/parser';
|
|
12
12
|
import '@babel/traverse';
|
|
13
|
-
import './defaults-
|
|
14
|
-
import './defu-
|
|
13
|
+
import './defaults-CBb6_9nJ.mjs';
|
|
14
|
+
import './defu-n46TJT6t.mjs';
|
|
15
15
|
import '@babel/types';
|
|
16
16
|
import 'htmlparser2';
|
|
17
17
|
import 'postcss';
|
package/dist/core.js
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var options = require('./options-
|
|
5
|
+
var options = require('./options-Ce8c4jgF.js');
|
|
6
6
|
require('magic-string');
|
|
7
7
|
require('./replace.js');
|
|
8
8
|
require('@weapp-core/escape');
|
|
9
9
|
require('@ast-core/escape');
|
|
10
|
-
require('./shared-
|
|
10
|
+
require('./shared-BDew1Ric.js');
|
|
11
11
|
require('@weapp-core/regex');
|
|
12
12
|
require('@babel/generator');
|
|
13
13
|
require('@babel/parser');
|
|
14
14
|
require('@babel/traverse');
|
|
15
|
-
require('./defaults-
|
|
16
|
-
require('./defu-
|
|
15
|
+
require('./defaults-BT3A8Rzc.js');
|
|
16
|
+
require('./defu-Cdz2PomB.js');
|
|
17
17
|
require('@babel/types');
|
|
18
18
|
require('htmlparser2');
|
|
19
19
|
require('postcss');
|
|
20
|
-
require('./index-
|
|
20
|
+
require('./index-CKzzVDhq.js');
|
|
21
21
|
require('@csstools/postcss-is-pseudo-class');
|
|
22
22
|
require('postcss-rem-to-responsive-pixel');
|
|
23
23
|
require('postcss-selector-parser');
|
package/dist/core.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-D74YiXdv.mjs';
|
|
2
2
|
import 'magic-string';
|
|
3
3
|
import './replace.mjs';
|
|
4
4
|
import '@weapp-core/escape';
|
|
5
5
|
import '@ast-core/escape';
|
|
6
|
-
import './shared-
|
|
6
|
+
import './shared-BX0VV-pr.mjs';
|
|
7
7
|
import '@weapp-core/regex';
|
|
8
8
|
import '@babel/generator';
|
|
9
9
|
import '@babel/parser';
|
|
10
10
|
import '@babel/traverse';
|
|
11
|
-
import './defaults-
|
|
12
|
-
import './defu-
|
|
11
|
+
import './defaults-CBb6_9nJ.mjs';
|
|
12
|
+
import './defu-n46TJT6t.mjs';
|
|
13
13
|
import '@babel/types';
|
|
14
14
|
import 'htmlparser2';
|
|
15
15
|
import 'postcss';
|
|
16
|
-
import './index-
|
|
16
|
+
import './index-C7QwtXvo.mjs';
|
|
17
17
|
import '@csstools/postcss-is-pseudo-class';
|
|
18
18
|
import 'postcss-rem-to-responsive-pixel';
|
|
19
19
|
import 'postcss-selector-parser';
|
package/dist/css-macro/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var plugin = require('tailwindcss/plugin');
|
|
4
|
-
var constants = require('../constants-
|
|
5
|
-
var defu = require('../defu-
|
|
4
|
+
var constants = require('../constants-D-YMDg7M.js');
|
|
5
|
+
var defu = require('../defu-Cdz2PomB.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
|
-
import { c as createMediaQuery, a as createNegativeMediaQuery } from '../constants-
|
|
3
|
-
import { d as defu } from '../defu-
|
|
2
|
+
import { c as createMediaQuery, a as createNegativeMediaQuery } from '../constants-CcqTvLgQ.mjs';
|
|
3
|
+
import { d as defu } from '../defu-n46TJT6t.mjs';
|
|
4
4
|
|
|
5
5
|
var index = plugin.withOptions((options) => {
|
|
6
6
|
const { dynamic: dynamicMode, variantsMap } = defu(options, {
|
package/dist/defaults.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var defaults = require('./defaults-
|
|
5
|
+
var defaults = require('./defaults-BT3A8Rzc.js');
|
|
6
6
|
require('@weapp-core/escape');
|
|
7
7
|
require('@ast-core/escape');
|
|
8
|
-
require('./defu-
|
|
8
|
+
require('./defu-Cdz2PomB.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
package/dist/defaults.mjs
CHANGED
package/dist/gulp.js
CHANGED
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
6
|
-
require('./options-
|
|
5
|
+
var index = require('./index-DXyNWU95.js');
|
|
6
|
+
require('./options-Ce8c4jgF.js');
|
|
7
7
|
require('magic-string');
|
|
8
8
|
require('./replace.js');
|
|
9
9
|
require('@weapp-core/escape');
|
|
10
10
|
require('@ast-core/escape');
|
|
11
|
-
require('./shared-
|
|
11
|
+
require('./shared-BDew1Ric.js');
|
|
12
12
|
require('@weapp-core/regex');
|
|
13
13
|
require('@babel/generator');
|
|
14
14
|
require('@babel/parser');
|
|
15
15
|
require('@babel/traverse');
|
|
16
|
-
require('./defaults-
|
|
17
|
-
require('./defu-
|
|
16
|
+
require('./defaults-BT3A8Rzc.js');
|
|
17
|
+
require('./defu-Cdz2PomB.js');
|
|
18
18
|
require('@babel/types');
|
|
19
19
|
require('htmlparser2');
|
|
20
20
|
require('postcss');
|
|
21
|
-
require('./index-
|
|
21
|
+
require('./index-CKzzVDhq.js');
|
|
22
22
|
require('@csstools/postcss-is-pseudo-class');
|
|
23
23
|
require('postcss-rem-to-responsive-pixel');
|
|
24
24
|
require('postcss-selector-parser');
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { c as createPlugins } from './index-
|
|
2
|
-
import './options-
|
|
1
|
+
export { c as createPlugins } from './index-DMO3Y3vp.mjs';
|
|
2
|
+
import './options-D74YiXdv.mjs';
|
|
3
3
|
import 'magic-string';
|
|
4
4
|
import './replace.mjs';
|
|
5
5
|
import '@weapp-core/escape';
|
|
6
6
|
import '@ast-core/escape';
|
|
7
|
-
import './shared-
|
|
7
|
+
import './shared-BX0VV-pr.mjs';
|
|
8
8
|
import '@weapp-core/regex';
|
|
9
9
|
import '@babel/generator';
|
|
10
10
|
import '@babel/parser';
|
|
11
11
|
import '@babel/traverse';
|
|
12
|
-
import './defaults-
|
|
13
|
-
import './defu-
|
|
12
|
+
import './defaults-CBb6_9nJ.mjs';
|
|
13
|
+
import './defu-n46TJT6t.mjs';
|
|
14
14
|
import '@babel/types';
|
|
15
15
|
import 'htmlparser2';
|
|
16
16
|
import 'postcss';
|
|
17
|
-
import './index-
|
|
17
|
+
import './index-C7QwtXvo.mjs';
|
|
18
18
|
import '@csstools/postcss-is-pseudo-class';
|
|
19
19
|
import 'postcss-rem-to-responsive-pixel';
|
|
20
20
|
import 'postcss-selector-parser';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var options = require('./options-
|
|
4
|
-
var index = require('./index-
|
|
5
|
-
var defaults = require('./defaults-
|
|
6
|
-
var index$1 = require('./index-
|
|
3
|
+
var options = require('./options-Ce8c4jgF.js');
|
|
4
|
+
var index = require('./index-CKzzVDhq.js');
|
|
5
|
+
var defaults = require('./defaults-BT3A8Rzc.js');
|
|
6
|
+
var index$1 = require('./index-CKXO21Qe.js');
|
|
7
7
|
|
|
8
8
|
const debug = index$1.createDebug('generateBundle: ');
|
|
9
9
|
function UnifiedViteWeappTailwindcssPlugin(options$1 = {}) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import postcssIsPseudoClass from '@csstools/postcss-is-pseudo-class';
|
|
2
2
|
import postcssRem2rpx from 'postcss-rem-to-responsive-pixel';
|
|
3
3
|
import selectorParser from 'postcss-selector-parser';
|
|
4
|
-
import { c as composeIsPseudo, i as internalCssSelectorReplacer } from './shared-
|
|
4
|
+
import { c as composeIsPseudo, i as internalCssSelectorReplacer } from './shared-BX0VV-pr.mjs';
|
|
5
5
|
import { Declaration, Rule } from 'postcss';
|
|
6
6
|
|
|
7
7
|
const createRuleTransform = (rule, options) => {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var postcssIsPseudoClass = require('@csstools/postcss-is-pseudo-class');
|
|
4
4
|
var postcssRem2rpx = require('postcss-rem-to-responsive-pixel');
|
|
5
5
|
var selectorParser = require('postcss-selector-parser');
|
|
6
|
-
var shared = require('./shared-
|
|
6
|
+
var shared = require('./shared-BDew1Ric.js');
|
|
7
7
|
var postcss = require('postcss');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-D74YiXdv.mjs';
|
|
2
2
|
import stream from 'node:stream';
|
|
3
3
|
|
|
4
4
|
const Transform = stream.Transform;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var options = require('./options-
|
|
3
|
+
var options = require('./options-Ce8c4jgF.js');
|
|
4
4
|
var stream = require('node:stream');
|
|
5
5
|
|
|
6
6
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-
|
|
2
|
-
import { v as vitePluginName } from './index-
|
|
3
|
-
import { g as getGroupedEntries } from './defaults-
|
|
4
|
-
import { c as createDebug } from './index-
|
|
1
|
+
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-D74YiXdv.mjs';
|
|
2
|
+
import { v as vitePluginName } from './index-C7QwtXvo.mjs';
|
|
3
|
+
import { g as getGroupedEntries } from './defaults-CBb6_9nJ.mjs';
|
|
4
|
+
import { c as createDebug } from './index-CLxBL7MC.mjs';
|
|
5
5
|
|
|
6
6
|
const debug = createDebug('generateBundle: ');
|
|
7
7
|
function UnifiedViteWeappTailwindcssPlugin(options = {}) {
|
package/dist/index.js
CHANGED
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var v5 = require('./v5-
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var index$1 = require('./index-
|
|
8
|
-
require('./options-
|
|
5
|
+
var v5 = require('./v5-B5nztYEa.js');
|
|
6
|
+
var index = require('./index-BBGsdK79.js');
|
|
7
|
+
var index$1 = require('./index-DXyNWU95.js');
|
|
8
|
+
require('./options-Ce8c4jgF.js');
|
|
9
9
|
require('magic-string');
|
|
10
10
|
require('./replace.js');
|
|
11
11
|
require('@weapp-core/escape');
|
|
12
12
|
require('@ast-core/escape');
|
|
13
|
-
require('./shared-
|
|
13
|
+
require('./shared-BDew1Ric.js');
|
|
14
14
|
require('@weapp-core/regex');
|
|
15
15
|
require('@babel/generator');
|
|
16
16
|
require('@babel/parser');
|
|
17
17
|
require('@babel/traverse');
|
|
18
|
-
require('./defaults-
|
|
19
|
-
require('./defu-
|
|
18
|
+
require('./defaults-BT3A8Rzc.js');
|
|
19
|
+
require('./defu-Cdz2PomB.js');
|
|
20
20
|
require('@babel/types');
|
|
21
21
|
require('htmlparser2');
|
|
22
22
|
require('postcss');
|
|
23
|
-
require('./index-
|
|
23
|
+
require('./index-CKzzVDhq.js');
|
|
24
24
|
require('@csstools/postcss-is-pseudo-class');
|
|
25
25
|
require('postcss-rem-to-responsive-pixel');
|
|
26
26
|
require('postcss-selector-parser');
|
|
@@ -31,7 +31,7 @@ require('tailwindcss-patch');
|
|
|
31
31
|
require('@tailwindcss-mangle/shared');
|
|
32
32
|
require('lru-cache');
|
|
33
33
|
require('md5');
|
|
34
|
-
require('./index-
|
|
34
|
+
require('./index-CKXO21Qe.js');
|
|
35
35
|
require('debug');
|
|
36
36
|
require('node:stream');
|
|
37
37
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export { U as UnifiedWebpackPluginV5 } from './v5-
|
|
2
|
-
export { U as UnifiedViteWeappTailwindcssPlugin } from './index
|
|
3
|
-
export { c as createPlugins } from './index-
|
|
4
|
-
import './options-
|
|
1
|
+
export { U as UnifiedWebpackPluginV5 } from './v5-KEbKT7UN.mjs';
|
|
2
|
+
export { U as UnifiedViteWeappTailwindcssPlugin } from './index-DfbtBzIV.mjs';
|
|
3
|
+
export { c as createPlugins } from './index-DMO3Y3vp.mjs';
|
|
4
|
+
import './options-D74YiXdv.mjs';
|
|
5
5
|
import 'magic-string';
|
|
6
6
|
import './replace.mjs';
|
|
7
7
|
import '@weapp-core/escape';
|
|
8
8
|
import '@ast-core/escape';
|
|
9
|
-
import './shared-
|
|
9
|
+
import './shared-BX0VV-pr.mjs';
|
|
10
10
|
import '@weapp-core/regex';
|
|
11
11
|
import '@babel/generator';
|
|
12
12
|
import '@babel/parser';
|
|
13
13
|
import '@babel/traverse';
|
|
14
|
-
import './defaults-
|
|
15
|
-
import './defu-
|
|
14
|
+
import './defaults-CBb6_9nJ.mjs';
|
|
15
|
+
import './defu-n46TJT6t.mjs';
|
|
16
16
|
import '@babel/types';
|
|
17
17
|
import 'htmlparser2';
|
|
18
18
|
import 'postcss';
|
|
19
|
-
import './index-
|
|
19
|
+
import './index-C7QwtXvo.mjs';
|
|
20
20
|
import '@csstools/postcss-is-pseudo-class';
|
|
21
21
|
import 'postcss-rem-to-responsive-pixel';
|
|
22
22
|
import 'postcss-selector-parser';
|
|
@@ -27,6 +27,6 @@ import 'tailwindcss-patch';
|
|
|
27
27
|
import '@tailwindcss-mangle/shared';
|
|
28
28
|
import 'lru-cache';
|
|
29
29
|
import 'md5';
|
|
30
|
-
import './index-
|
|
30
|
+
import './index-CLxBL7MC.mjs';
|
|
31
31
|
import 'debug';
|
|
32
32
|
import 'node:stream';
|
package/dist/js/handlers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { StringLiteral, TemplateElement } from '@babel/types';
|
|
2
2
|
import MagicString from 'magic-string';
|
|
3
3
|
import type { IJsHandlerOptions } from "../types";
|
|
4
|
-
export declare function replaceHandleValue(str: string, node: StringLiteral | TemplateElement, options: IJsHandlerOptions, ms: MagicString, offset?: number
|
|
4
|
+
export declare function replaceHandleValue(str: string, node: StringLiteral | TemplateElement, options: IJsHandlerOptions, ms: MagicString, offset?: number): string;
|
|
@@ -8,11 +8,11 @@ var escape = require('@ast-core/escape');
|
|
|
8
8
|
var generate = require('@babel/generator');
|
|
9
9
|
var parser = require('@babel/parser');
|
|
10
10
|
var traverse = require('@babel/traverse');
|
|
11
|
-
var defaults = require('./defaults-
|
|
11
|
+
var defaults = require('./defaults-BT3A8Rzc.js');
|
|
12
12
|
var t = require('@babel/types');
|
|
13
13
|
var htmlparser2 = require('htmlparser2');
|
|
14
14
|
var postcss = require('postcss');
|
|
15
|
-
var index = require('./index-
|
|
15
|
+
var index = require('./index-CKzzVDhq.js');
|
|
16
16
|
var path = require('node:path');
|
|
17
17
|
var fs = require('node:fs');
|
|
18
18
|
var semver = require('semver');
|
|
@@ -91,17 +91,13 @@ const splitCode = (code, allowDoubleQuotes = false) => {
|
|
|
91
91
|
return code.split(splitter).filter((element) => isValidSelector(element));
|
|
92
92
|
};
|
|
93
93
|
|
|
94
|
-
function replaceHandleValue(str, node, options, ms, offset = 0
|
|
95
|
-
|
|
96
|
-
const
|
|
97
|
-
const escapeMap = options.escapeMap;
|
|
98
|
-
const allowDoubleQuotes = (_a = options.arbitraryValues) === null || _a === void 0 ? void 0 : _a.allowDoubleQuotes;
|
|
99
|
-
const ctx = options.mangleContext;
|
|
100
|
-
const jsPreserveClass = options.jsPreserveClass;
|
|
94
|
+
function replaceHandleValue(str, node, options, ms, offset = 0) {
|
|
95
|
+
const { classNameSet: set, escapeMap, mangleContext: ctx, needEscaped = false, jsPreserveClass, arbitraryValues, always } = options;
|
|
96
|
+
const allowDoubleQuotes = arbitraryValues === null || arbitraryValues === void 0 ? void 0 : arbitraryValues.allowDoubleQuotes;
|
|
101
97
|
const arr = splitCode(str, allowDoubleQuotes);
|
|
102
98
|
let rawStr = str;
|
|
103
99
|
for (const v of arr) {
|
|
104
|
-
if (set.has(v) && !(jsPreserveClass === null || jsPreserveClass === void 0 ? void 0 : jsPreserveClass(v))) {
|
|
100
|
+
if (always || (set && set.has(v) && !(jsPreserveClass === null || jsPreserveClass === void 0 ? void 0 : jsPreserveClass(v)))) {
|
|
105
101
|
let ignoreFlag = false;
|
|
106
102
|
if (Array.isArray(node.leadingComments)) {
|
|
107
103
|
ignoreFlag = node.leadingComments.findIndex((x) => x.value.includes('weapp-tw') && x.value.includes('ignore')) > -1;
|
|
@@ -110,7 +106,7 @@ function replaceHandleValue(str, node, options, ms, offset = 0, needEscaped = fa
|
|
|
110
106
|
if (ctx) {
|
|
111
107
|
rawStr = ctx.jsHandler(rawStr);
|
|
112
108
|
}
|
|
113
|
-
rawStr = rawStr.
|
|
109
|
+
rawStr = rawStr.replace(new RegExp(regex.escapeStringRegexp(v)), replace.replaceJs(v, {
|
|
114
110
|
escapeMap
|
|
115
111
|
}));
|
|
116
112
|
}
|
|
@@ -155,7 +151,7 @@ function jsHandler(rawSource, options) {
|
|
|
155
151
|
return;
|
|
156
152
|
}
|
|
157
153
|
const n = p.node;
|
|
158
|
-
replaceHandleValue(n.value, n,
|
|
154
|
+
replaceHandleValue(n.value, n, Object.assign(Object.assign({}, options), { needEscaped: (_a = options.needEscaped) !== null && _a !== void 0 ? _a : true }), ms, 1);
|
|
159
155
|
}
|
|
160
156
|
},
|
|
161
157
|
TemplateElement: {
|
|
@@ -164,7 +160,7 @@ function jsHandler(rawSource, options) {
|
|
|
164
160
|
return;
|
|
165
161
|
}
|
|
166
162
|
const n = p.node;
|
|
167
|
-
replaceHandleValue(n.value.raw, n, options, ms, 0
|
|
163
|
+
replaceHandleValue(n.value.raw, n, Object.assign(Object.assign({}, options), { needEscaped: false }), ms, 0);
|
|
168
164
|
}
|
|
169
165
|
},
|
|
170
166
|
CallExpression: {
|
|
@@ -229,11 +225,9 @@ function createJsHandler(options) {
|
|
|
229
225
|
};
|
|
230
226
|
}
|
|
231
227
|
|
|
232
|
-
function getQuotes(quote) {
|
|
233
|
-
return quote === "'" ? 'double' : 'single';
|
|
234
|
-
}
|
|
235
228
|
function generateCode(match, options = {}) {
|
|
236
229
|
try {
|
|
230
|
+
const ms = new MagicString__default["default"](match);
|
|
237
231
|
const ast = parser.parseExpression(match);
|
|
238
232
|
traverse__default["default"](ast, {
|
|
239
233
|
StringLiteral(path) {
|
|
@@ -244,19 +238,18 @@ function generateCode(match, options = {}) {
|
|
|
244
238
|
if (t__namespace.isBinaryExpression(path.parent) && t__namespace.isConditionalExpression((_a = path.parentPath) === null || _a === void 0 ? void 0 : _a.parent)) {
|
|
245
239
|
return;
|
|
246
240
|
}
|
|
247
|
-
|
|
241
|
+
const n = path.node;
|
|
242
|
+
replaceHandleValue(n.value, n, {
|
|
243
|
+
mangleContext: options.mangleContext,
|
|
244
|
+
escapeMap: options.escapeMap,
|
|
245
|
+
classNameSet: options.runtimeSet,
|
|
246
|
+
needEscaped: true,
|
|
247
|
+
always: true
|
|
248
|
+
}, ms, 1);
|
|
248
249
|
},
|
|
249
250
|
noScope: true
|
|
250
251
|
});
|
|
251
|
-
|
|
252
|
-
compact: true,
|
|
253
|
-
minified: true,
|
|
254
|
-
jsescOption: {
|
|
255
|
-
quotes: getQuotes(options.quote),
|
|
256
|
-
minimal: true
|
|
257
|
-
}
|
|
258
|
-
});
|
|
259
|
-
return code;
|
|
252
|
+
return ms.toString();
|
|
260
253
|
}
|
|
261
254
|
catch (_a) {
|
|
262
255
|
return match;
|
|
@@ -564,7 +557,7 @@ function useMangleStore() {
|
|
|
564
557
|
const arr = splitCode(rawSource);
|
|
565
558
|
for (const x of arr) {
|
|
566
559
|
if (ctx.runtimeSet.has(x)) {
|
|
567
|
-
rawSource = rawSource.
|
|
560
|
+
rawSource = rawSource.replace(new RegExp(regex.escapeStringRegexp(x)), ctx.classGenerator.generateClassName(x).name);
|
|
568
561
|
}
|
|
569
562
|
}
|
|
570
563
|
return rawSource;
|
|
@@ -6,11 +6,11 @@ import { jsStringEscape } from '@ast-core/escape';
|
|
|
6
6
|
import generate from '@babel/generator';
|
|
7
7
|
import { parse, parseExpression } from '@babel/parser';
|
|
8
8
|
import traverse from '@babel/traverse';
|
|
9
|
-
import { d as defuOverrideArray, n as noop, a as defaultOptions, i as isMap } from './defaults-
|
|
9
|
+
import { d as defuOverrideArray, n as noop, a as defaultOptions, i as isMap } from './defaults-CBb6_9nJ.mjs';
|
|
10
10
|
import * as t from '@babel/types';
|
|
11
11
|
import { Parser } from 'htmlparser2';
|
|
12
12
|
import postcss from 'postcss';
|
|
13
|
-
import { g as getPlugins } from './index-
|
|
13
|
+
import { g as getPlugins } from './index-C7QwtXvo.mjs';
|
|
14
14
|
import path from 'node:path';
|
|
15
15
|
import fs from 'node:fs';
|
|
16
16
|
import { gte } from 'semver';
|
|
@@ -60,17 +60,13 @@ const splitCode = (code, allowDoubleQuotes = false) => {
|
|
|
60
60
|
return code.split(splitter).filter((element) => isValidSelector(element));
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
function replaceHandleValue(str, node, options, ms, offset = 0
|
|
64
|
-
|
|
65
|
-
const
|
|
66
|
-
const escapeMap = options.escapeMap;
|
|
67
|
-
const allowDoubleQuotes = (_a = options.arbitraryValues) === null || _a === void 0 ? void 0 : _a.allowDoubleQuotes;
|
|
68
|
-
const ctx = options.mangleContext;
|
|
69
|
-
const jsPreserveClass = options.jsPreserveClass;
|
|
63
|
+
function replaceHandleValue(str, node, options, ms, offset = 0) {
|
|
64
|
+
const { classNameSet: set, escapeMap, mangleContext: ctx, needEscaped = false, jsPreserveClass, arbitraryValues, always } = options;
|
|
65
|
+
const allowDoubleQuotes = arbitraryValues === null || arbitraryValues === void 0 ? void 0 : arbitraryValues.allowDoubleQuotes;
|
|
70
66
|
const arr = splitCode(str, allowDoubleQuotes);
|
|
71
67
|
let rawStr = str;
|
|
72
68
|
for (const v of arr) {
|
|
73
|
-
if (set.has(v) && !(jsPreserveClass === null || jsPreserveClass === void 0 ? void 0 : jsPreserveClass(v))) {
|
|
69
|
+
if (always || (set && set.has(v) && !(jsPreserveClass === null || jsPreserveClass === void 0 ? void 0 : jsPreserveClass(v)))) {
|
|
74
70
|
let ignoreFlag = false;
|
|
75
71
|
if (Array.isArray(node.leadingComments)) {
|
|
76
72
|
ignoreFlag = node.leadingComments.findIndex((x) => x.value.includes('weapp-tw') && x.value.includes('ignore')) > -1;
|
|
@@ -79,7 +75,7 @@ function replaceHandleValue(str, node, options, ms, offset = 0, needEscaped = fa
|
|
|
79
75
|
if (ctx) {
|
|
80
76
|
rawStr = ctx.jsHandler(rawStr);
|
|
81
77
|
}
|
|
82
|
-
rawStr = rawStr.
|
|
78
|
+
rawStr = rawStr.replace(new RegExp(escapeStringRegexp(v)), replaceWxml(v, {
|
|
83
79
|
escapeMap
|
|
84
80
|
}));
|
|
85
81
|
}
|
|
@@ -124,7 +120,7 @@ function jsHandler(rawSource, options) {
|
|
|
124
120
|
return;
|
|
125
121
|
}
|
|
126
122
|
const n = p.node;
|
|
127
|
-
replaceHandleValue(n.value, n,
|
|
123
|
+
replaceHandleValue(n.value, n, Object.assign(Object.assign({}, options), { needEscaped: (_a = options.needEscaped) !== null && _a !== void 0 ? _a : true }), ms, 1);
|
|
128
124
|
}
|
|
129
125
|
},
|
|
130
126
|
TemplateElement: {
|
|
@@ -133,7 +129,7 @@ function jsHandler(rawSource, options) {
|
|
|
133
129
|
return;
|
|
134
130
|
}
|
|
135
131
|
const n = p.node;
|
|
136
|
-
replaceHandleValue(n.value.raw, n, options, ms, 0
|
|
132
|
+
replaceHandleValue(n.value.raw, n, Object.assign(Object.assign({}, options), { needEscaped: false }), ms, 0);
|
|
137
133
|
}
|
|
138
134
|
},
|
|
139
135
|
CallExpression: {
|
|
@@ -198,11 +194,9 @@ function createJsHandler(options) {
|
|
|
198
194
|
};
|
|
199
195
|
}
|
|
200
196
|
|
|
201
|
-
function getQuotes(quote) {
|
|
202
|
-
return quote === "'" ? 'double' : 'single';
|
|
203
|
-
}
|
|
204
197
|
function generateCode(match, options = {}) {
|
|
205
198
|
try {
|
|
199
|
+
const ms = new MagicString(match);
|
|
206
200
|
const ast = parseExpression(match);
|
|
207
201
|
traverse(ast, {
|
|
208
202
|
StringLiteral(path) {
|
|
@@ -213,19 +207,18 @@ function generateCode(match, options = {}) {
|
|
|
213
207
|
if (t.isBinaryExpression(path.parent) && t.isConditionalExpression((_a = path.parentPath) === null || _a === void 0 ? void 0 : _a.parent)) {
|
|
214
208
|
return;
|
|
215
209
|
}
|
|
216
|
-
|
|
210
|
+
const n = path.node;
|
|
211
|
+
replaceHandleValue(n.value, n, {
|
|
212
|
+
mangleContext: options.mangleContext,
|
|
213
|
+
escapeMap: options.escapeMap,
|
|
214
|
+
classNameSet: options.runtimeSet,
|
|
215
|
+
needEscaped: true,
|
|
216
|
+
always: true
|
|
217
|
+
}, ms, 1);
|
|
217
218
|
},
|
|
218
219
|
noScope: true
|
|
219
220
|
});
|
|
220
|
-
|
|
221
|
-
compact: true,
|
|
222
|
-
minified: true,
|
|
223
|
-
jsescOption: {
|
|
224
|
-
quotes: getQuotes(options.quote),
|
|
225
|
-
minimal: true
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
return code;
|
|
221
|
+
return ms.toString();
|
|
229
222
|
}
|
|
230
223
|
catch (_a) {
|
|
231
224
|
return match;
|
|
@@ -533,7 +526,7 @@ function useMangleStore() {
|
|
|
533
526
|
const arr = splitCode(rawSource);
|
|
534
527
|
for (const x of arr) {
|
|
535
528
|
if (ctx.runtimeSet.has(x)) {
|
|
536
|
-
rawSource = rawSource.
|
|
529
|
+
rawSource = rawSource.replace(new RegExp(escapeStringRegexp(x)), ctx.classGenerator.generateClassName(x).name);
|
|
537
530
|
}
|
|
538
531
|
}
|
|
539
532
|
return rawSource;
|
package/dist/postcss.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-CKzzVDhq.js');
|
|
6
6
|
var postcssIsPseudoClass = require('@csstools/postcss-is-pseudo-class');
|
|
7
7
|
var postcssRem2rpx = require('postcss-rem-to-responsive-pixel');
|
|
8
8
|
require('postcss-selector-parser');
|
|
9
|
-
require('./shared-
|
|
9
|
+
require('./shared-BDew1Ric.js');
|
|
10
10
|
require('@weapp-core/escape');
|
|
11
11
|
require('@ast-core/escape');
|
|
12
12
|
require('postcss');
|
package/dist/postcss.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { g as getPlugins, p as postcssWeappTailwindcssPostPlugin, a as postcssWeappTailwindcssPrePlugin } from './index-
|
|
1
|
+
export { g as getPlugins, p as postcssWeappTailwindcssPostPlugin, a as postcssWeappTailwindcssPrePlugin } from './index-C7QwtXvo.mjs';
|
|
2
2
|
export { default as postcssIsPseudoClass } from '@csstools/postcss-is-pseudo-class';
|
|
3
3
|
export { default as postcssRem2rpx } from 'postcss-rem-to-responsive-pixel';
|
|
4
4
|
import 'postcss-selector-parser';
|
|
5
|
-
import './shared-
|
|
5
|
+
import './shared-BX0VV-pr.mjs';
|
|
6
6
|
import '@weapp-core/escape';
|
|
7
7
|
import '@ast-core/escape';
|
|
8
8
|
import 'postcss';
|
package/dist/replace.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var escape = require('@weapp-core/escape');
|
|
6
6
|
require('@ast-core/escape');
|
|
7
|
-
var shared = require('./shared-
|
|
7
|
+
var shared = require('./shared-BDew1Ric.js');
|
|
8
8
|
|
|
9
9
|
function replaceWxml(original, options = {
|
|
10
10
|
keepEOL: false,
|
package/dist/replace.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { escape, SimpleMappingChars2String } from '@weapp-core/escape';
|
|
2
2
|
export { MappingChars2String, MappingChars2StringEntries, SYMBOL_TABLE, SimpleMappingChars2String, SimpleMappingChars2StringEntries } from '@weapp-core/escape';
|
|
3
3
|
import '@ast-core/escape';
|
|
4
|
-
export { i as replaceCss } from './shared-
|
|
4
|
+
export { i as replaceCss } from './shared-BX0VV-pr.mjs';
|
|
5
5
|
|
|
6
6
|
function replaceWxml(original, options = {
|
|
7
7
|
keepEOL: false,
|
package/dist/types.d.ts
CHANGED
|
@@ -40,12 +40,13 @@ export type ICustomAttributes = Record<string, ItemOrItemArray<string | RegExp>>
|
|
|
40
40
|
export type ICustomAttributesEntities = [string | RegExp, ItemOrItemArray<string | RegExp>][];
|
|
41
41
|
export type IJsHandlerOptions = {
|
|
42
42
|
escapeMap?: Record<string, string>;
|
|
43
|
-
classNameSet
|
|
43
|
+
classNameSet?: Set<string>;
|
|
44
44
|
arbitraryValues?: IArbitraryValues;
|
|
45
45
|
mangleContext?: IMangleScopeContext;
|
|
46
46
|
jsPreserveClass?: (keyword: string) => boolean | undefined;
|
|
47
47
|
needEscaped?: boolean;
|
|
48
48
|
generateMap?: boolean;
|
|
49
|
+
always?: boolean;
|
|
49
50
|
};
|
|
50
51
|
export interface RawSource {
|
|
51
52
|
start: number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var options = require('./options-
|
|
3
|
+
var options = require('./options-Ce8c4jgF.js');
|
|
4
4
|
var path = require('node:path');
|
|
5
5
|
var fs = require('node:fs');
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var defaults = require('./defaults-
|
|
8
|
-
var index$1 = require('./index-
|
|
6
|
+
var index = require('./index-CKzzVDhq.js');
|
|
7
|
+
var defaults = require('./defaults-BT3A8Rzc.js');
|
|
8
|
+
var index$1 = require('./index-CKXO21Qe.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
11
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-D74YiXdv.mjs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import fs from 'node:fs';
|
|
4
|
-
import { b as pluginName } from './index-
|
|
5
|
-
import { g as getGroupedEntries, r as removeExt } from './defaults-
|
|
6
|
-
import { c as createDebug } from './index-
|
|
4
|
+
import { b as pluginName } from './index-C7QwtXvo.mjs';
|
|
5
|
+
import { g as getGroupedEntries, r as removeExt } from './defaults-CBb6_9nJ.mjs';
|
|
6
|
+
import { c as createDebug } from './index-CLxBL7MC.mjs';
|
|
7
7
|
|
|
8
8
|
const debug = createDebug('processAssets: ');
|
|
9
9
|
class UnifiedWebpackPluginV5 {
|
package/dist/vite.js
CHANGED
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
6
|
-
require('./options-
|
|
5
|
+
var index = require('./index-BBGsdK79.js');
|
|
6
|
+
require('./options-Ce8c4jgF.js');
|
|
7
7
|
require('magic-string');
|
|
8
8
|
require('./replace.js');
|
|
9
9
|
require('@weapp-core/escape');
|
|
10
10
|
require('@ast-core/escape');
|
|
11
|
-
require('./shared-
|
|
11
|
+
require('./shared-BDew1Ric.js');
|
|
12
12
|
require('@weapp-core/regex');
|
|
13
13
|
require('@babel/generator');
|
|
14
14
|
require('@babel/parser');
|
|
15
15
|
require('@babel/traverse');
|
|
16
|
-
require('./defaults-
|
|
17
|
-
require('./defu-
|
|
16
|
+
require('./defaults-BT3A8Rzc.js');
|
|
17
|
+
require('./defu-Cdz2PomB.js');
|
|
18
18
|
require('@babel/types');
|
|
19
19
|
require('htmlparser2');
|
|
20
20
|
require('postcss');
|
|
21
|
-
require('./index-
|
|
21
|
+
require('./index-CKzzVDhq.js');
|
|
22
22
|
require('@csstools/postcss-is-pseudo-class');
|
|
23
23
|
require('postcss-rem-to-responsive-pixel');
|
|
24
24
|
require('postcss-selector-parser');
|
|
@@ -29,7 +29,7 @@ require('tailwindcss-patch');
|
|
|
29
29
|
require('@tailwindcss-mangle/shared');
|
|
30
30
|
require('lru-cache');
|
|
31
31
|
require('md5');
|
|
32
|
-
require('./index-
|
|
32
|
+
require('./index-CKXO21Qe.js');
|
|
33
33
|
require('debug');
|
|
34
34
|
|
|
35
35
|
|
package/dist/vite.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { U as UnifiedViteWeappTailwindcssPlugin } from './index
|
|
2
|
-
import './options-
|
|
1
|
+
export { U as UnifiedViteWeappTailwindcssPlugin } from './index-DfbtBzIV.mjs';
|
|
2
|
+
import './options-D74YiXdv.mjs';
|
|
3
3
|
import 'magic-string';
|
|
4
4
|
import './replace.mjs';
|
|
5
5
|
import '@weapp-core/escape';
|
|
6
6
|
import '@ast-core/escape';
|
|
7
|
-
import './shared-
|
|
7
|
+
import './shared-BX0VV-pr.mjs';
|
|
8
8
|
import '@weapp-core/regex';
|
|
9
9
|
import '@babel/generator';
|
|
10
10
|
import '@babel/parser';
|
|
11
11
|
import '@babel/traverse';
|
|
12
|
-
import './defaults-
|
|
13
|
-
import './defu-
|
|
12
|
+
import './defaults-CBb6_9nJ.mjs';
|
|
13
|
+
import './defu-n46TJT6t.mjs';
|
|
14
14
|
import '@babel/types';
|
|
15
15
|
import 'htmlparser2';
|
|
16
16
|
import 'postcss';
|
|
17
|
-
import './index-
|
|
17
|
+
import './index-C7QwtXvo.mjs';
|
|
18
18
|
import '@csstools/postcss-is-pseudo-class';
|
|
19
19
|
import 'postcss-rem-to-responsive-pixel';
|
|
20
20
|
import 'postcss-selector-parser';
|
|
@@ -25,5 +25,5 @@ import 'tailwindcss-patch';
|
|
|
25
25
|
import '@tailwindcss-mangle/shared';
|
|
26
26
|
import 'lru-cache';
|
|
27
27
|
import 'md5';
|
|
28
|
-
import './index-
|
|
28
|
+
import './index-CLxBL7MC.mjs';
|
|
29
29
|
import 'debug';
|
package/dist/webpack.js
CHANGED
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var v5 = require('./v5-
|
|
6
|
-
require('./options-
|
|
5
|
+
var v5 = require('./v5-B5nztYEa.js');
|
|
6
|
+
require('./options-Ce8c4jgF.js');
|
|
7
7
|
require('magic-string');
|
|
8
8
|
require('./replace.js');
|
|
9
9
|
require('@weapp-core/escape');
|
|
10
10
|
require('@ast-core/escape');
|
|
11
|
-
require('./shared-
|
|
11
|
+
require('./shared-BDew1Ric.js');
|
|
12
12
|
require('@weapp-core/regex');
|
|
13
13
|
require('@babel/generator');
|
|
14
14
|
require('@babel/parser');
|
|
15
15
|
require('@babel/traverse');
|
|
16
|
-
require('./defaults-
|
|
17
|
-
require('./defu-
|
|
16
|
+
require('./defaults-BT3A8Rzc.js');
|
|
17
|
+
require('./defu-Cdz2PomB.js');
|
|
18
18
|
require('@babel/types');
|
|
19
19
|
require('htmlparser2');
|
|
20
20
|
require('postcss');
|
|
21
|
-
require('./index-
|
|
21
|
+
require('./index-CKzzVDhq.js');
|
|
22
22
|
require('@csstools/postcss-is-pseudo-class');
|
|
23
23
|
require('postcss-rem-to-responsive-pixel');
|
|
24
24
|
require('postcss-selector-parser');
|
|
@@ -29,7 +29,7 @@ require('tailwindcss-patch');
|
|
|
29
29
|
require('@tailwindcss-mangle/shared');
|
|
30
30
|
require('lru-cache');
|
|
31
31
|
require('md5');
|
|
32
|
-
require('./index-
|
|
32
|
+
require('./index-CKXO21Qe.js');
|
|
33
33
|
require('debug');
|
|
34
34
|
|
|
35
35
|
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { U as UnifiedWebpackPluginV5 } from './v5-
|
|
2
|
-
import './options-
|
|
1
|
+
export { U as UnifiedWebpackPluginV5 } from './v5-KEbKT7UN.mjs';
|
|
2
|
+
import './options-D74YiXdv.mjs';
|
|
3
3
|
import 'magic-string';
|
|
4
4
|
import './replace.mjs';
|
|
5
5
|
import '@weapp-core/escape';
|
|
6
6
|
import '@ast-core/escape';
|
|
7
|
-
import './shared-
|
|
7
|
+
import './shared-BX0VV-pr.mjs';
|
|
8
8
|
import '@weapp-core/regex';
|
|
9
9
|
import '@babel/generator';
|
|
10
10
|
import '@babel/parser';
|
|
11
11
|
import '@babel/traverse';
|
|
12
|
-
import './defaults-
|
|
13
|
-
import './defu-
|
|
12
|
+
import './defaults-CBb6_9nJ.mjs';
|
|
13
|
+
import './defu-n46TJT6t.mjs';
|
|
14
14
|
import '@babel/types';
|
|
15
15
|
import 'htmlparser2';
|
|
16
16
|
import 'postcss';
|
|
17
|
-
import './index-
|
|
17
|
+
import './index-C7QwtXvo.mjs';
|
|
18
18
|
import '@csstools/postcss-is-pseudo-class';
|
|
19
19
|
import 'postcss-rem-to-responsive-pixel';
|
|
20
20
|
import 'postcss-selector-parser';
|
|
@@ -25,5 +25,5 @@ import 'tailwindcss-patch';
|
|
|
25
25
|
import '@tailwindcss-mangle/shared';
|
|
26
26
|
import 'lru-cache';
|
|
27
27
|
import 'md5';
|
|
28
|
-
import './index-
|
|
28
|
+
import './index-CLxBL7MC.mjs';
|
|
29
29
|
import 'debug';
|
package/dist/webpack4.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var options = require('./options-
|
|
5
|
+
var options = require('./options-Ce8c4jgF.js');
|
|
6
6
|
var path = require('node:path');
|
|
7
7
|
var fs = require('node:fs');
|
|
8
8
|
var webpackSources = require('webpack-sources');
|
|
9
|
-
var index = require('./index-
|
|
10
|
-
var defaults = require('./defaults-
|
|
11
|
-
var index$1 = require('./index-
|
|
9
|
+
var index = require('./index-CKzzVDhq.js');
|
|
10
|
+
var defaults = require('./defaults-BT3A8Rzc.js');
|
|
11
|
+
var index$1 = require('./index-CKXO21Qe.js');
|
|
12
12
|
require('magic-string');
|
|
13
13
|
require('./replace.js');
|
|
14
14
|
require('@weapp-core/escape');
|
|
15
15
|
require('@ast-core/escape');
|
|
16
|
-
require('./shared-
|
|
16
|
+
require('./shared-BDew1Ric.js');
|
|
17
17
|
require('@weapp-core/regex');
|
|
18
18
|
require('@babel/generator');
|
|
19
19
|
require('@babel/parser');
|
|
@@ -29,7 +29,7 @@ require('md5');
|
|
|
29
29
|
require('@csstools/postcss-is-pseudo-class');
|
|
30
30
|
require('postcss-rem-to-responsive-pixel');
|
|
31
31
|
require('postcss-selector-parser');
|
|
32
|
-
require('./defu-
|
|
32
|
+
require('./defu-Cdz2PomB.js');
|
|
33
33
|
require('debug');
|
|
34
34
|
|
|
35
35
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
package/dist/webpack4.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-D74YiXdv.mjs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import fs from 'node:fs';
|
|
4
4
|
import { ConcatSource, RawSource } from 'webpack-sources';
|
|
5
|
-
import { b as pluginName } from './index-
|
|
6
|
-
import { g as getGroupedEntries, r as removeExt } from './defaults-
|
|
7
|
-
import { c as createDebug } from './index-
|
|
5
|
+
import { b as pluginName } from './index-C7QwtXvo.mjs';
|
|
6
|
+
import { g as getGroupedEntries, r as removeExt } from './defaults-CBb6_9nJ.mjs';
|
|
7
|
+
import { c as createDebug } from './index-CLxBL7MC.mjs';
|
|
8
8
|
import 'magic-string';
|
|
9
9
|
import './replace.mjs';
|
|
10
10
|
import '@weapp-core/escape';
|
|
11
11
|
import '@ast-core/escape';
|
|
12
|
-
import './shared-
|
|
12
|
+
import './shared-BX0VV-pr.mjs';
|
|
13
13
|
import '@weapp-core/regex';
|
|
14
14
|
import '@babel/generator';
|
|
15
15
|
import '@babel/parser';
|
|
@@ -25,7 +25,7 @@ import 'md5';
|
|
|
25
25
|
import '@csstools/postcss-is-pseudo-class';
|
|
26
26
|
import 'postcss-rem-to-responsive-pixel';
|
|
27
27
|
import 'postcss-selector-parser';
|
|
28
|
-
import './defu-
|
|
28
|
+
import './defu-n46TJT6t.mjs';
|
|
29
29
|
import 'debug';
|
|
30
30
|
|
|
31
31
|
const debug = createDebug('processAssets: ');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-tailwindcss",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.10",
|
|
4
4
|
"description": "把tailwindcss jit引擎,带给小程序开发者们! bring tailwindcss jit engine to miniprogram developers!",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -145,21 +145,21 @@
|
|
|
145
145
|
"@types/lodash": "^4.14.202",
|
|
146
146
|
"@types/md5": "^2.3.5",
|
|
147
147
|
"@types/micromatch": "^4.0.6",
|
|
148
|
-
"@types/node": "^20.11.
|
|
148
|
+
"@types/node": "^20.11.17",
|
|
149
149
|
"@types/semver": "^7.5.6",
|
|
150
150
|
"@types/vinyl": "^2.0.11",
|
|
151
151
|
"@types/webpack": "^5.28.5",
|
|
152
152
|
"@types/webpack-sources": "^3.2.3",
|
|
153
153
|
"@types/webpack4": "npm:@types/webpack@4",
|
|
154
|
-
"@vitest/coverage-v8": "^1.2.
|
|
155
|
-
"@vitest/ui": "^1.2.
|
|
154
|
+
"@vitest/coverage-v8": "^1.2.2",
|
|
155
|
+
"@vitest/ui": "^1.2.2",
|
|
156
156
|
"autoprefixer": "^10.4.17",
|
|
157
157
|
"babel-loader": "^9.1.3",
|
|
158
158
|
"bumpp": "^9.3.0",
|
|
159
159
|
"colorette": "^2.0.20",
|
|
160
160
|
"cross-env": "^7.0.3",
|
|
161
161
|
"css-loader": "^6.9.1",
|
|
162
|
-
"css-to-tailwindcss-plugin": "^0.
|
|
162
|
+
"css-to-tailwindcss-plugin": "^0.3.0",
|
|
163
163
|
"dedent": "^1.5.1",
|
|
164
164
|
"defu": "6.1.4",
|
|
165
165
|
"del": "^7.1.0",
|
|
@@ -178,14 +178,14 @@
|
|
|
178
178
|
"js-beautify": "^1.14.11",
|
|
179
179
|
"klaw": "^4.1.0",
|
|
180
180
|
"lodash": "^4.17.21",
|
|
181
|
-
"mini-css-extract-plugin": "^2.
|
|
181
|
+
"mini-css-extract-plugin": "^2.8.0",
|
|
182
182
|
"miniprogram-automator": "^0.12.1",
|
|
183
183
|
"pkg-types": "^1.0.3",
|
|
184
|
-
"postcss-load-config": "^5.0.
|
|
184
|
+
"postcss-load-config": "^5.0.3",
|
|
185
185
|
"postcss-loader": "^7.3.4",
|
|
186
|
-
"prettier": "^3.2.
|
|
186
|
+
"prettier": "^3.2.5",
|
|
187
187
|
"promisify-loader-runner": "^1.0.1",
|
|
188
|
-
"rollup": "^4.
|
|
188
|
+
"rollup": "^4.10.0",
|
|
189
189
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
190
190
|
"sass": "^1.70.0",
|
|
191
191
|
"style-loader": "^3.3.4",
|
|
@@ -197,10 +197,10 @@
|
|
|
197
197
|
"typescript": "^5.3.3",
|
|
198
198
|
"typescript-transform-paths": "^3.4.6",
|
|
199
199
|
"vinyl": "^3.0.0",
|
|
200
|
-
"vite": "^5.
|
|
201
|
-
"vitest": "^1.2.
|
|
200
|
+
"vite": "^5.1.1",
|
|
201
|
+
"vitest": "^1.2.2",
|
|
202
202
|
"weapp-tailwindcss-children": "^0.1.0",
|
|
203
|
-
"webpack": "^5.90.
|
|
203
|
+
"webpack": "^5.90.1",
|
|
204
204
|
"webpack-build-utils": "^0.0.7"
|
|
205
205
|
},
|
|
206
206
|
"dependencies": {
|
|
@@ -217,13 +217,13 @@
|
|
|
217
217
|
"htmlparser2": "9.1.0",
|
|
218
218
|
"loader-utils": "2.0.3",
|
|
219
219
|
"lru-cache": "10.2.0",
|
|
220
|
-
"magic-string": "0.30.
|
|
220
|
+
"magic-string": "0.30.7",
|
|
221
221
|
"md5": "2.3.0",
|
|
222
222
|
"postcss": "8.4.33",
|
|
223
223
|
"postcss-rem-to-responsive-pixel": "^6.0.1",
|
|
224
224
|
"postcss-selector-parser": "6.0.15",
|
|
225
|
-
"semver": "7.
|
|
226
|
-
"tailwindcss-patch": "^2.2.
|
|
225
|
+
"semver": "7.6.0",
|
|
226
|
+
"tailwindcss-patch": "^2.2.3",
|
|
227
227
|
"webpack-sources": "3.2.3"
|
|
228
228
|
},
|
|
229
229
|
"packageManager": "pnpm@8.10.2",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|