weapp-tailwindcss 3.6.1 → 3.6.2

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 CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  var process$1 = require('node:process');
4
4
  var semver = require('semver');
5
- var index = require('./index-OxGGIRJ6.js');
6
- var options = require('./options-BKnJT3al.js');
5
+ var index = require('./index-BXFTqrbY.js');
6
+ var options = require('./options-C8bt_5gC.js');
7
7
  var require$$0$2 = require('fs');
8
8
  var require$$0 = require('constants');
9
9
  var require$$0$1 = require('stream');
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import process$1 from 'node:process';
2
2
  import semver from 'semver';
3
- import { W as WEAPP_TW_REQUIRED_NODE_VERSION } from './index-BkGbeUsJ.mjs';
4
- import { _ as __awaiter, l as logger, g as getOptions } from './options-BJrhrWVC.mjs';
3
+ import { W as WEAPP_TW_REQUIRED_NODE_VERSION } from './index-BDm22ruU.mjs';
4
+ import { _ as __awaiter, l as logger, g as getOptions } from './options-De5Hd0X8.mjs';
5
5
  import require$$0$2 from 'fs';
6
6
  import require$$0 from 'constants';
7
7
  import require$$0$1 from 'stream';
package/dist/core.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var options = require('./options-BKnJT3al.js');
5
+ var options = require('./options-C8bt_5gC.js');
6
6
  require('lru-cache');
7
7
  require('md5');
8
8
  require('./defaults-CdqzSWsR.js');
@@ -19,7 +19,7 @@ require('./replace.js');
19
19
  require('./shared-r_GpWheO.js');
20
20
  require('@tailwindcss-mangle/shared');
21
21
  require('postcss');
22
- require('./index-OxGGIRJ6.js');
22
+ require('./index-BXFTqrbY.js');
23
23
  require('@csstools/postcss-is-pseudo-class');
24
24
  require('postcss-rem-to-responsive-pixel');
25
25
  require('postcss-selector-parser');
package/dist/core.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { g as getOptions } from './options-BJrhrWVC.mjs';
1
+ import { g as getOptions } from './options-De5Hd0X8.mjs';
2
2
  import 'lru-cache';
3
3
  import 'md5';
4
4
  import './defaults-5A8JI2hW.mjs';
@@ -15,7 +15,7 @@ import './replace.mjs';
15
15
  import './shared-COWjpokr.mjs';
16
16
  import '@tailwindcss-mangle/shared';
17
17
  import 'postcss';
18
- import './index-BkGbeUsJ.mjs';
18
+ import './index-BDm22ruU.mjs';
19
19
  import '@csstools/postcss-is-pseudo-class';
20
20
  import 'postcss-rem-to-responsive-pixel';
21
21
  import 'postcss-selector-parser';
package/dist/gulp.js CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-NUwXJMr-.js');
6
- require('./options-BKnJT3al.js');
5
+ var index = require('./index-DJ6L5Xph.js');
6
+ require('./options-C8bt_5gC.js');
7
7
  require('lru-cache');
8
8
  require('md5');
9
9
  require('./defaults-CdqzSWsR.js');
@@ -20,7 +20,7 @@ require('./replace.js');
20
20
  require('./shared-r_GpWheO.js');
21
21
  require('@tailwindcss-mangle/shared');
22
22
  require('postcss');
23
- require('./index-OxGGIRJ6.js');
23
+ require('./index-BXFTqrbY.js');
24
24
  require('@csstools/postcss-is-pseudo-class');
25
25
  require('postcss-rem-to-responsive-pixel');
26
26
  require('postcss-selector-parser');
package/dist/gulp.mjs CHANGED
@@ -1,5 +1,5 @@
1
- export { c as createPlugins } from './index-C02WsbSC.mjs';
2
- import './options-BJrhrWVC.mjs';
1
+ export { c as createPlugins } from './index-D0Epc3gp.mjs';
2
+ import './options-De5Hd0X8.mjs';
3
3
  import 'lru-cache';
4
4
  import 'md5';
5
5
  import './defaults-5A8JI2hW.mjs';
@@ -16,7 +16,7 @@ import './replace.mjs';
16
16
  import './shared-COWjpokr.mjs';
17
17
  import '@tailwindcss-mangle/shared';
18
18
  import 'postcss';
19
- import './index-BkGbeUsJ.mjs';
19
+ import './index-BDm22ruU.mjs';
20
20
  import '@csstools/postcss-is-pseudo-class';
21
21
  import 'postcss-rem-to-responsive-pixel';
22
22
  import 'postcss-selector-parser';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var options = require('./options-BKnJT3al.js');
4
- var index = require('./index-OxGGIRJ6.js');
3
+ var options = require('./options-C8bt_5gC.js');
4
+ var index = require('./index-BXFTqrbY.js');
5
5
  var index$1 = require('./index-HC-Qkn0i.js');
6
6
  var defaults = require('./defaults-CdqzSWsR.js');
7
7
 
@@ -90,7 +90,7 @@ const fallbackRemove = selectorParser((selectors) => {
90
90
  let maybeImportantId = false;
91
91
  selectors.walk((selector, idx) => {
92
92
  var _a, _b, _c;
93
- if (idx === 0 && selector.type === 'id') {
93
+ if (idx === 0 && (selector.type === 'id' || selector.type === 'class' || selector.type === 'attribute')) {
94
94
  maybeImportantId = true;
95
95
  }
96
96
  if (selector.type === 'universal') {
@@ -98,7 +98,7 @@ const fallbackRemove = selectorParser__default["default"]((selectors) => {
98
98
  let maybeImportantId = false;
99
99
  selectors.walk((selector, idx) => {
100
100
  var _a, _b, _c;
101
- if (idx === 0 && selector.type === 'id') {
101
+ if (idx === 0 && (selector.type === 'id' || selector.type === 'class' || selector.type === 'attribute')) {
102
102
  maybeImportantId = true;
103
103
  }
104
104
  if (selector.type === 'universal') {
@@ -1,4 +1,4 @@
1
- import { g as getOptions, _ as __awaiter } from './options-BJrhrWVC.mjs';
1
+ import { g as getOptions, _ as __awaiter } from './options-De5Hd0X8.mjs';
2
2
  import { Buffer } from 'node:buffer';
3
3
  import stream from 'node:stream';
4
4
  import { c as createDebug } from './index-BEIjgKpF.mjs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var options = require('./options-BKnJT3al.js');
3
+ var options = require('./options-C8bt_5gC.js');
4
4
  var node_buffer = require('node:buffer');
5
5
  var stream = require('node:stream');
6
6
  var index = require('./index-HC-Qkn0i.js');
@@ -1,5 +1,5 @@
1
- import { g as getOptions, _ as __awaiter } from './options-BJrhrWVC.mjs';
2
- import { v as vitePluginName } from './index-BkGbeUsJ.mjs';
1
+ import { g as getOptions, _ as __awaiter } from './options-De5Hd0X8.mjs';
2
+ import { v as vitePluginName } from './index-BDm22ruU.mjs';
3
3
  import { c as createDebug } from './index-BEIjgKpF.mjs';
4
4
  import { g as getGroupedEntries } from './defaults-5A8JI2hW.mjs';
5
5
 
package/dist/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-NUwXJMr-.js');
6
- var index$1 = require('./index-CQ2lY08t.js');
7
- var v5 = require('./v5-Dn7xHCrQ.js');
8
- require('./options-BKnJT3al.js');
5
+ var index = require('./index-DJ6L5Xph.js');
6
+ var index$1 = require('./index-BAgZ55jR.js');
7
+ var v5 = require('./v5-CRUBJKwZ.js');
8
+ require('./options-C8bt_5gC.js');
9
9
  require('lru-cache');
10
10
  require('md5');
11
11
  require('./defaults-CdqzSWsR.js');
@@ -22,7 +22,7 @@ require('./replace.js');
22
22
  require('./shared-r_GpWheO.js');
23
23
  require('@tailwindcss-mangle/shared');
24
24
  require('postcss');
25
- require('./index-OxGGIRJ6.js');
25
+ require('./index-BXFTqrbY.js');
26
26
  require('@csstools/postcss-is-pseudo-class');
27
27
  require('postcss-rem-to-responsive-pixel');
28
28
  require('postcss-selector-parser');
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- export { c as createPlugins } from './index-C02WsbSC.mjs';
2
- export { U as UnifiedViteWeappTailwindcssPlugin } from './index-BKg5XkrT.mjs';
3
- export { U as UnifiedWebpackPluginV5 } from './v5-CyTrcW-A.mjs';
4
- import './options-BJrhrWVC.mjs';
1
+ export { c as createPlugins } from './index-D0Epc3gp.mjs';
2
+ export { U as UnifiedViteWeappTailwindcssPlugin } from './index-L53veHx0.mjs';
3
+ export { U as UnifiedWebpackPluginV5 } from './v5-DkZoSlBn.mjs';
4
+ import './options-De5Hd0X8.mjs';
5
5
  import 'lru-cache';
6
6
  import 'md5';
7
7
  import './defaults-5A8JI2hW.mjs';
@@ -18,7 +18,7 @@ import './replace.mjs';
18
18
  import './shared-COWjpokr.mjs';
19
19
  import '@tailwindcss-mangle/shared';
20
20
  import 'postcss';
21
- import './index-BkGbeUsJ.mjs';
21
+ import './index-BDm22ruU.mjs';
22
22
  import '@csstools/postcss-is-pseudo-class';
23
23
  import 'postcss-rem-to-responsive-pixel';
24
24
  import 'postcss-selector-parser';
@@ -14,7 +14,7 @@ var regex = require('@weapp-core/regex');
14
14
  var replace = require('./replace.js');
15
15
  var shared = require('@tailwindcss-mangle/shared');
16
16
  var postcss = require('postcss');
17
- var index = require('./index-OxGGIRJ6.js');
17
+ var index = require('./index-BXFTqrbY.js');
18
18
  var path = require('node:path');
19
19
  var process = require('node:process');
20
20
  var tailwindcssPatch = require('tailwindcss-patch');
@@ -12,7 +12,7 @@ import { escapeStringRegexp } from '@weapp-core/regex';
12
12
  import { replaceJs as replaceWxml } from './replace.mjs';
13
13
  import { ClassGenerator, defaultMangleClassFilter } from '@tailwindcss-mangle/shared';
14
14
  import postcss from 'postcss';
15
- import { g as getPlugins } from './index-BkGbeUsJ.mjs';
15
+ import { g as getPlugins } from './index-BDm22ruU.mjs';
16
16
  import path from 'node:path';
17
17
  import process from 'node:process';
18
18
  import { TailwindcssPatcher } from 'tailwindcss-patch';
package/dist/postcss.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-OxGGIRJ6.js');
5
+ var index = require('./index-BXFTqrbY.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');
package/dist/postcss.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { g as getPlugins, p as postcssWeappTailwindcssPostPlugin, a as postcssWeappTailwindcssPrePlugin } from './index-BkGbeUsJ.mjs';
1
+ export { g as getPlugins, p as postcssWeappTailwindcssPostPlugin, a as postcssWeappTailwindcssPrePlugin } from './index-BDm22ruU.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';
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var options = require('./options-BKnJT3al.js');
3
+ var options = require('./options-C8bt_5gC.js');
4
4
  var fs = require('node:fs');
5
5
  var path = require('node:path');
6
- var index = require('./index-OxGGIRJ6.js');
6
+ var index = require('./index-BXFTqrbY.js');
7
7
  var index$1 = require('./index-HC-Qkn0i.js');
8
8
  var defaults = require('./defaults-CdqzSWsR.js');
9
9
 
@@ -1,7 +1,7 @@
1
- import { g as getOptions, _ as __awaiter } from './options-BJrhrWVC.mjs';
1
+ import { g as getOptions, _ as __awaiter } from './options-De5Hd0X8.mjs';
2
2
  import fs from 'node:fs';
3
3
  import path from 'node:path';
4
- import { b as pluginName } from './index-BkGbeUsJ.mjs';
4
+ import { b as pluginName } from './index-BDm22ruU.mjs';
5
5
  import { c as createDebug } from './index-BEIjgKpF.mjs';
6
6
  import { g as getGroupedEntries, r as removeExt } from './defaults-5A8JI2hW.mjs';
7
7
 
package/dist/vite.js CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-CQ2lY08t.js');
6
- require('./options-BKnJT3al.js');
5
+ var index = require('./index-BAgZ55jR.js');
6
+ require('./options-C8bt_5gC.js');
7
7
  require('lru-cache');
8
8
  require('md5');
9
9
  require('./defaults-CdqzSWsR.js');
@@ -20,7 +20,7 @@ require('./replace.js');
20
20
  require('./shared-r_GpWheO.js');
21
21
  require('@tailwindcss-mangle/shared');
22
22
  require('postcss');
23
- require('./index-OxGGIRJ6.js');
23
+ require('./index-BXFTqrbY.js');
24
24
  require('@csstools/postcss-is-pseudo-class');
25
25
  require('postcss-rem-to-responsive-pixel');
26
26
  require('postcss-selector-parser');
package/dist/vite.mjs CHANGED
@@ -1,5 +1,5 @@
1
- export { U as UnifiedViteWeappTailwindcssPlugin } from './index-BKg5XkrT.mjs';
2
- import './options-BJrhrWVC.mjs';
1
+ export { U as UnifiedViteWeappTailwindcssPlugin } from './index-L53veHx0.mjs';
2
+ import './options-De5Hd0X8.mjs';
3
3
  import 'lru-cache';
4
4
  import 'md5';
5
5
  import './defaults-5A8JI2hW.mjs';
@@ -16,7 +16,7 @@ import './replace.mjs';
16
16
  import './shared-COWjpokr.mjs';
17
17
  import '@tailwindcss-mangle/shared';
18
18
  import 'postcss';
19
- import './index-BkGbeUsJ.mjs';
19
+ import './index-BDm22ruU.mjs';
20
20
  import '@csstools/postcss-is-pseudo-class';
21
21
  import 'postcss-rem-to-responsive-pixel';
22
22
  import 'postcss-selector-parser';
package/dist/webpack.js CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var v5 = require('./v5-Dn7xHCrQ.js');
6
- require('./options-BKnJT3al.js');
5
+ var v5 = require('./v5-CRUBJKwZ.js');
6
+ require('./options-C8bt_5gC.js');
7
7
  require('lru-cache');
8
8
  require('md5');
9
9
  require('./defaults-CdqzSWsR.js');
@@ -20,7 +20,7 @@ require('./replace.js');
20
20
  require('./shared-r_GpWheO.js');
21
21
  require('@tailwindcss-mangle/shared');
22
22
  require('postcss');
23
- require('./index-OxGGIRJ6.js');
23
+ require('./index-BXFTqrbY.js');
24
24
  require('@csstools/postcss-is-pseudo-class');
25
25
  require('postcss-rem-to-responsive-pixel');
26
26
  require('postcss-selector-parser');
package/dist/webpack.mjs CHANGED
@@ -1,5 +1,5 @@
1
- export { U as UnifiedWebpackPluginV5 } from './v5-CyTrcW-A.mjs';
2
- import './options-BJrhrWVC.mjs';
1
+ export { U as UnifiedWebpackPluginV5 } from './v5-DkZoSlBn.mjs';
2
+ import './options-De5Hd0X8.mjs';
3
3
  import 'lru-cache';
4
4
  import 'md5';
5
5
  import './defaults-5A8JI2hW.mjs';
@@ -16,7 +16,7 @@ import './replace.mjs';
16
16
  import './shared-COWjpokr.mjs';
17
17
  import '@tailwindcss-mangle/shared';
18
18
  import 'postcss';
19
- import './index-BkGbeUsJ.mjs';
19
+ import './index-BDm22ruU.mjs';
20
20
  import '@csstools/postcss-is-pseudo-class';
21
21
  import 'postcss-rem-to-responsive-pixel';
22
22
  import 'postcss-selector-parser';
package/dist/webpack4.js CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var options = require('./options-BKnJT3al.js');
5
+ var options = require('./options-C8bt_5gC.js');
6
6
  var fs = require('node:fs');
7
7
  var path = require('node:path');
8
8
  var webpackSources = require('webpack-sources');
9
- var index = require('./index-OxGGIRJ6.js');
9
+ var index = require('./index-BXFTqrbY.js');
10
10
  var index$1 = require('./index-HC-Qkn0i.js');
11
11
  var defaults = require('./defaults-CdqzSWsR.js');
12
12
  require('lru-cache');
package/dist/webpack4.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { g as getOptions, _ as __awaiter } from './options-BJrhrWVC.mjs';
1
+ import { g as getOptions, _ as __awaiter } from './options-De5Hd0X8.mjs';
2
2
  import fs from 'node:fs';
3
3
  import path from 'node:path';
4
4
  import { ConcatSource, RawSource } from 'webpack-sources';
5
- import { b as pluginName } from './index-BkGbeUsJ.mjs';
5
+ import { b as pluginName } from './index-BDm22ruU.mjs';
6
6
  import { c as createDebug } from './index-BEIjgKpF.mjs';
7
7
  import { g as getGroupedEntries, r as removeExt } from './defaults-5A8JI2hW.mjs';
8
8
  import 'lru-cache';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weapp-tailwindcss",
3
- "version": "3.6.1",
3
+ "version": "3.6.2",
4
4
  "description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
5
5
  "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",