weapp-tailwindcss 2.10.1 → 3.0.0

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.
Files changed (46) hide show
  1. package/dist/{gulp → bundlers/gulp}/index.d.ts +1 -1
  2. package/dist/{vite → bundlers/vite}/index.d.ts +1 -1
  3. package/dist/{webpack → bundlers/webpack}/BaseUnifiedPlugin/v5.d.ts +1 -1
  4. package/dist/cli.js +6 -6
  5. package/dist/cli.mjs +6 -6
  6. package/dist/core.d.ts +8 -0
  7. package/dist/core.js +69 -0
  8. package/dist/core.mjs +65 -0
  9. package/dist/css-macro/index.d.ts +1 -1
  10. package/dist/css-macro/index.js +1 -1
  11. package/dist/css-macro/index.mjs +1 -1
  12. package/dist/{defaults-0O-zKoXE.js → defaults-QOAV8NSV.js} +10 -5
  13. package/dist/{defaults-dz6xGhOP.mjs → defaults-TZpmwtzd.mjs} +10 -6
  14. package/dist/defaults.js +2 -1
  15. package/dist/defaults.mjs +2 -1
  16. package/dist/{defu-d2wgbAKv.js → defu-KWuJnZLV.js} +10 -5
  17. package/dist/{defu-R3SAEzGq.mjs → defu-ms_ZBCiB.mjs} +10 -6
  18. package/dist/gulp.d.ts +1 -1
  19. package/dist/gulp.js +6 -9
  20. package/dist/gulp.mjs +6 -9
  21. package/dist/index.js +6 -6
  22. package/dist/index.mjs +6 -6
  23. package/dist/js/handlers.d.ts +0 -1
  24. package/dist/{options-jeQuZCU1.js → options-_u-7p8aC.js} +90 -187
  25. package/dist/{options-1ejnE5kK.mjs → options-vyKfCeIO.mjs} +88 -186
  26. package/dist/postcss/plugin.d.ts +1 -0
  27. package/dist/postcss/shared.d.ts +1 -0
  28. package/dist/{postcss-GEOOjC-4.mjs → postcss-4kTT_aj1.mjs} +71 -75
  29. package/dist/{postcss-03jfy6ZA.js → postcss-sB1dQbYV.js} +71 -75
  30. package/dist/postcss.js +8 -2
  31. package/dist/postcss.mjs +3 -2
  32. package/dist/replace.js +1 -1
  33. package/dist/replace.mjs +1 -1
  34. package/dist/{shared-S0v7ZvWs.mjs → shared-0D5OOeXo.mjs} +10 -1
  35. package/dist/{shared-nXoJWFdz.js → shared-AxeHlAoJ.js} +10 -0
  36. package/dist/types.d.ts +15 -21
  37. package/dist/utils.d.ts +9 -0
  38. package/dist/vite.d.ts +1 -1
  39. package/dist/vite.js +6 -6
  40. package/dist/vite.mjs +6 -6
  41. package/dist/webpack.d.ts +1 -1
  42. package/dist/webpack.js +6 -6
  43. package/dist/webpack.mjs +6 -6
  44. package/package.json +53 -56
  45. /package/dist/{webpack → bundlers/webpack}/index.d.ts +0 -0
  46. /package/dist/{webpack → bundlers/webpack}/loaders/weapp-tw-runtime-loader.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import stream from 'node:stream';
3
- import { UserDefinedOptions } from "../types";
3
+ import { UserDefinedOptions } from "../../types";
4
4
  export declare function createPlugins(options?: UserDefinedOptions): {
5
5
  transformWxss: () => stream.Transform;
6
6
  transformWxml: () => stream.Transform;
@@ -1,3 +1,3 @@
1
1
  import type { Plugin } from 'vite';
2
- import { UserDefinedOptions } from "../types";
2
+ import { UserDefinedOptions } from "../../types";
3
3
  export declare function UnifiedViteWeappTailwindcssPlugin(options?: UserDefinedOptions): Plugin | undefined;
@@ -1,5 +1,5 @@
1
1
  import type { Compiler } from 'webpack';
2
- import type { AppType, UserDefinedOptions, InternalUserDefinedOptions, IBaseWebpackPlugin } from "../../types";
2
+ import type { AppType, UserDefinedOptions, InternalUserDefinedOptions, IBaseWebpackPlugin } from "../../../types";
3
3
  export declare class UnifiedWebpackPluginV5 implements IBaseWebpackPlugin {
4
4
  options: InternalUserDefinedOptions;
5
5
  appType?: AppType;
package/dist/cli.js CHANGED
@@ -1,24 +1,24 @@
1
1
  'use strict';
2
2
 
3
- var options = require('./options-jeQuZCU1.js');
4
- require('micromatch');
3
+ var options = require('./options-_u-7p8aC.js');
5
4
  require('magic-string');
6
5
  require('./replace.js');
7
6
  require('@weapp-core/escape');
8
7
  require('@ast-core/escape');
9
- require('./shared-nXoJWFdz.js');
8
+ require('./shared-AxeHlAoJ.js');
10
9
  require('@weapp-core/regex');
11
10
  require('@babel/generator');
12
11
  require('@babel/parser');
13
12
  require('@babel/traverse');
14
- require('./defu-d2wgbAKv.js');
15
- require('./defaults-0O-zKoXE.js');
13
+ require('./defaults-QOAV8NSV.js');
14
+ require('./defu-KWuJnZLV.js');
16
15
  require('@babel/types');
17
16
  require('htmlparser2');
18
17
  require('postcss');
19
- require('./postcss-03jfy6ZA.js');
18
+ require('./postcss-sB1dQbYV.js');
20
19
  require('postcss-selector-parser');
21
20
  require('@csstools/postcss-is-pseudo-class');
21
+ require('postcss-rem-to-responsive-pixel');
22
22
  require('node:path');
23
23
  require('node:fs');
24
24
  require('semver');
package/dist/cli.mjs CHANGED
@@ -1,22 +1,22 @@
1
- import { g as getOptions, c as createPatch } from './options-1ejnE5kK.mjs';
2
- import 'micromatch';
1
+ import { g as getOptions, c as createPatch } from './options-vyKfCeIO.mjs';
3
2
  import 'magic-string';
4
3
  import './replace.mjs';
5
4
  import '@weapp-core/escape';
6
5
  import '@ast-core/escape';
7
- import './shared-S0v7ZvWs.mjs';
6
+ import './shared-0D5OOeXo.mjs';
8
7
  import '@weapp-core/regex';
9
8
  import '@babel/generator';
10
9
  import '@babel/parser';
11
10
  import '@babel/traverse';
12
- import './defu-R3SAEzGq.mjs';
13
- import './defaults-dz6xGhOP.mjs';
11
+ import './defaults-TZpmwtzd.mjs';
12
+ import './defu-ms_ZBCiB.mjs';
14
13
  import '@babel/types';
15
14
  import 'htmlparser2';
16
15
  import 'postcss';
17
- import './postcss-GEOOjC-4.mjs';
16
+ import './postcss-4kTT_aj1.mjs';
18
17
  import 'postcss-selector-parser';
19
18
  import '@csstools/postcss-is-pseudo-class';
19
+ import 'postcss-rem-to-responsive-pixel';
20
20
  import 'node:path';
21
21
  import 'node:fs';
22
22
  import 'semver';
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-_u-7p8aC.js');
6
+ require('magic-string');
7
+ require('./replace.js');
8
+ require('@weapp-core/escape');
9
+ require('@ast-core/escape');
10
+ require('./shared-AxeHlAoJ.js');
11
+ require('@weapp-core/regex');
12
+ require('@babel/generator');
13
+ require('@babel/parser');
14
+ require('@babel/traverse');
15
+ require('./defaults-QOAV8NSV.js');
16
+ require('./defu-KWuJnZLV.js');
17
+ require('@babel/types');
18
+ require('htmlparser2');
19
+ require('postcss');
20
+ require('./postcss-sB1dQbYV.js');
21
+ require('postcss-selector-parser');
22
+ require('@csstools/postcss-is-pseudo-class');
23
+ require('postcss-rem-to-responsive-pixel');
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-vyKfCeIO.mjs';
2
+ import 'magic-string';
3
+ import './replace.mjs';
4
+ import '@weapp-core/escape';
5
+ import '@ast-core/escape';
6
+ import './shared-0D5OOeXo.mjs';
7
+ import '@weapp-core/regex';
8
+ import '@babel/generator';
9
+ import '@babel/parser';
10
+ import '@babel/traverse';
11
+ import './defaults-TZpmwtzd.mjs';
12
+ import './defu-ms_ZBCiB.mjs';
13
+ import '@babel/types';
14
+ import 'htmlparser2';
15
+ import 'postcss';
16
+ import './postcss-4kTT_aj1.mjs';
17
+ import 'postcss-selector-parser';
18
+ import '@csstools/postcss-is-pseudo-class';
19
+ import 'postcss-rem-to-responsive-pixel';
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
  };
@@ -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-d2wgbAKv.js');
5
+ var defu = require('../defu-KWuJnZLV.js');
6
6
 
7
7
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -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-R3SAEzGq.mjs';
3
+ import { d as defu } from '../defu-ms_ZBCiB.mjs';
4
4
 
5
5
  var index = plugin.withOptions((options) => {
6
6
  const { dynamic: dynamicMode, variantsMap } = defu(options, {
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var defu = require('./defu-KWuJnZLV.js');
3
4
  var escape = require('@weapp-core/escape');
4
5
  require('@ast-core/escape');
5
6
 
@@ -48,6 +49,12 @@ function getGroupedEntries(entries, options) {
48
49
  function removeExt(file) {
49
50
  return file.replace(/\.[^./]+$/, '');
50
51
  }
52
+ const defuOverrideArray = defu.createDefu((obj, key, value) => {
53
+ if (Array.isArray(obj[key]) && Array.isArray(value)) {
54
+ obj[key] = value;
55
+ return true;
56
+ }
57
+ });
51
58
 
52
59
  const defaultOptions = {
53
60
  cssMatcher: (file) => /.+\.(?:wx|ac|jx|tt|q|c)ss$/.test(file),
@@ -98,8 +105,6 @@ const defaultOptions = {
98
105
  'border-style': 'solid',
99
106
  'border-color': 'currentColor'
100
107
  },
101
- cssPreflightRange: 'view',
102
- replaceUniversalSelectorWith: 'view',
103
108
  disabled: false,
104
109
  customRuleCallback: noop,
105
110
  onLoad: noop,
@@ -122,7 +127,7 @@ const defaultOptions = {
122
127
  arbitraryValues: {
123
128
  allowDoubleQuotes: false
124
129
  },
125
- cssChildCombinatorReplaceValue: 'view + view',
130
+ cssChildCombinatorReplaceValue: ['view'],
126
131
  inlineWxs: false,
127
132
  injectAdditionalCssVarScope: false,
128
133
  jsPreserveClass: (keyword) => {
@@ -132,14 +137,14 @@ const defaultOptions = {
132
137
  return false;
133
138
  },
134
139
  disabledDefaultTemplateHandler: false,
135
- jsEscapeStrategy: 'replace',
136
140
  cssSelectorReplacement: {
137
141
  root: 'page',
138
- universal: 'view'
142
+ universal: ['view', 'text']
139
143
  }
140
144
  };
141
145
 
142
146
  exports.defaultOptions = defaultOptions;
147
+ exports.defuOverrideArray = defuOverrideArray;
143
148
  exports.getGroupedEntries = getGroupedEntries;
144
149
  exports.isMap = isMap;
145
150
  exports.noop = noop;
@@ -1,3 +1,4 @@
1
+ import { c as createDefu } from './defu-ms_ZBCiB.mjs';
1
2
  import { SimpleMappingChars2String } from '@weapp-core/escape';
2
3
  import '@ast-core/escape';
3
4
 
@@ -46,6 +47,12 @@ function getGroupedEntries(entries, options) {
46
47
  function removeExt(file) {
47
48
  return file.replace(/\.[^./]+$/, '');
48
49
  }
50
+ const defuOverrideArray = createDefu((obj, key, value) => {
51
+ if (Array.isArray(obj[key]) && Array.isArray(value)) {
52
+ obj[key] = value;
53
+ return true;
54
+ }
55
+ });
49
56
 
50
57
  const defaultOptions = {
51
58
  cssMatcher: (file) => /.+\.(?:wx|ac|jx|tt|q|c)ss$/.test(file),
@@ -96,8 +103,6 @@ const defaultOptions = {
96
103
  'border-style': 'solid',
97
104
  'border-color': 'currentColor'
98
105
  },
99
- cssPreflightRange: 'view',
100
- replaceUniversalSelectorWith: 'view',
101
106
  disabled: false,
102
107
  customRuleCallback: noop,
103
108
  onLoad: noop,
@@ -120,7 +125,7 @@ const defaultOptions = {
120
125
  arbitraryValues: {
121
126
  allowDoubleQuotes: false
122
127
  },
123
- cssChildCombinatorReplaceValue: 'view + view',
128
+ cssChildCombinatorReplaceValue: ['view'],
124
129
  inlineWxs: false,
125
130
  injectAdditionalCssVarScope: false,
126
131
  jsPreserveClass: (keyword) => {
@@ -130,11 +135,10 @@ const defaultOptions = {
130
135
  return false;
131
136
  },
132
137
  disabledDefaultTemplateHandler: false,
133
- jsEscapeStrategy: 'replace',
134
138
  cssSelectorReplacement: {
135
139
  root: 'page',
136
- universal: 'view'
140
+ universal: ['view', 'text']
137
141
  }
138
142
  };
139
143
 
140
- export { defaultOptions as d, getGroupedEntries as g, isMap as i, noop as n, removeExt as r };
144
+ export { defaultOptions as a, defuOverrideArray as d, getGroupedEntries as g, isMap as i, noop as n, removeExt as r };
package/dist/defaults.js CHANGED
@@ -2,9 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var defaults = require('./defaults-0O-zKoXE.js');
5
+ var defaults = require('./defaults-QOAV8NSV.js');
6
6
  require('@weapp-core/escape');
7
7
  require('@ast-core/escape');
8
+ require('./defu-KWuJnZLV.js');
8
9
 
9
10
 
10
11
 
package/dist/defaults.mjs CHANGED
@@ -1,3 +1,4 @@
1
- export { d as defaultOptions } from './defaults-dz6xGhOP.mjs';
1
+ export { a as defaultOptions } from './defaults-TZpmwtzd.mjs';
2
2
  import '@weapp-core/escape';
3
3
  import '@ast-core/escape';
4
+ import './defu-ms_ZBCiB.mjs';
@@ -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 (!isObject(defaults)) {
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 (isObject(value) && isObject(object[key])) {
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
@@ -42,4 +46,5 @@ function createDefu(merger) {
42
46
  }
43
47
  const defu = createDefu();
44
48
 
49
+ exports.createDefu = createDefu;
45
50
  exports.defu = defu;
@@ -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 (!isObject(defaults)) {
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 (isObject(value) && isObject(object[key])) {
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
@@ -40,4 +44,4 @@ function createDefu(merger) {
40
44
  }
41
45
  const defu = createDefu();
42
46
 
43
- export { defu as d };
47
+ export { createDefu as c, defu as d };
package/dist/gulp.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './gulp/index';
1
+ export * from './bundlers/gulp/index';
package/dist/gulp.js CHANGED
@@ -2,26 +2,26 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var options = require('./options-jeQuZCU1.js');
5
+ var options = require('./options-_u-7p8aC.js');
6
6
  var stream = require('node:stream');
7
- require('micromatch');
8
7
  require('magic-string');
9
8
  require('./replace.js');
10
9
  require('@weapp-core/escape');
11
10
  require('@ast-core/escape');
12
- require('./shared-nXoJWFdz.js');
11
+ require('./shared-AxeHlAoJ.js');
13
12
  require('@weapp-core/regex');
14
13
  require('@babel/generator');
15
14
  require('@babel/parser');
16
15
  require('@babel/traverse');
17
- require('./defu-d2wgbAKv.js');
18
- require('./defaults-0O-zKoXE.js');
16
+ require('./defaults-QOAV8NSV.js');
17
+ require('./defu-KWuJnZLV.js');
19
18
  require('@babel/types');
20
19
  require('htmlparser2');
21
20
  require('postcss');
22
- require('./postcss-03jfy6ZA.js');
21
+ require('./postcss-sB1dQbYV.js');
23
22
  require('postcss-selector-parser');
24
23
  require('@csstools/postcss-is-pseudo-class');
24
+ require('postcss-rem-to-responsive-pixel');
25
25
  require('node:path');
26
26
  require('node:fs');
27
27
  require('semver');
@@ -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,23 +1,23 @@
1
- import { g as getOptions, a as createTailwindcssPatcher, _ as __awaiter } from './options-1ejnE5kK.mjs';
1
+ import { g as getOptions, a as createTailwindcssPatcher, _ as __awaiter } from './options-vyKfCeIO.mjs';
2
2
  import stream from 'node:stream';
3
- import 'micromatch';
4
3
  import 'magic-string';
5
4
  import './replace.mjs';
6
5
  import '@weapp-core/escape';
7
6
  import '@ast-core/escape';
8
- import './shared-S0v7ZvWs.mjs';
7
+ import './shared-0D5OOeXo.mjs';
9
8
  import '@weapp-core/regex';
10
9
  import '@babel/generator';
11
10
  import '@babel/parser';
12
11
  import '@babel/traverse';
13
- import './defu-R3SAEzGq.mjs';
14
- import './defaults-dz6xGhOP.mjs';
12
+ import './defaults-TZpmwtzd.mjs';
13
+ import './defu-ms_ZBCiB.mjs';
15
14
  import '@babel/types';
16
15
  import 'htmlparser2';
17
16
  import 'postcss';
18
- import './postcss-GEOOjC-4.mjs';
17
+ import './postcss-4kTT_aj1.mjs';
19
18
  import 'postcss-selector-parser';
20
19
  import '@csstools/postcss-is-pseudo-class';
20
+ import 'postcss-rem-to-responsive-pixel';
21
21
  import 'node:path';
22
22
  import 'node:fs';
23
23
  import 'semver';
@@ -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,25 +5,25 @@ 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-jeQuZCU1.js');
9
- require('micromatch');
8
+ require('./options-_u-7p8aC.js');
10
9
  require('magic-string');
11
10
  require('./replace.js');
12
11
  require('@weapp-core/escape');
13
12
  require('@ast-core/escape');
14
- require('./shared-nXoJWFdz.js');
13
+ require('./shared-AxeHlAoJ.js');
15
14
  require('@weapp-core/regex');
16
15
  require('@babel/generator');
17
16
  require('@babel/parser');
18
17
  require('@babel/traverse');
19
- require('./defu-d2wgbAKv.js');
20
- require('./defaults-0O-zKoXE.js');
18
+ require('./defaults-QOAV8NSV.js');
19
+ require('./defu-KWuJnZLV.js');
21
20
  require('@babel/types');
22
21
  require('htmlparser2');
23
22
  require('postcss');
24
- require('./postcss-03jfy6ZA.js');
23
+ require('./postcss-sB1dQbYV.js');
25
24
  require('postcss-selector-parser');
26
25
  require('@csstools/postcss-is-pseudo-class');
26
+ require('postcss-rem-to-responsive-pixel');
27
27
  require('node:path');
28
28
  require('node:fs');
29
29
  require('semver');
package/dist/index.mjs CHANGED
@@ -1,25 +1,25 @@
1
1
  export { UnifiedWebpackPluginV5 } from './webpack.mjs';
2
2
  export { UnifiedViteWeappTailwindcssPlugin } from './vite.mjs';
3
3
  export { createPlugins } from './gulp.mjs';
4
- import './options-1ejnE5kK.mjs';
5
- import 'micromatch';
4
+ import './options-vyKfCeIO.mjs';
6
5
  import 'magic-string';
7
6
  import './replace.mjs';
8
7
  import '@weapp-core/escape';
9
8
  import '@ast-core/escape';
10
- import './shared-S0v7ZvWs.mjs';
9
+ import './shared-0D5OOeXo.mjs';
11
10
  import '@weapp-core/regex';
12
11
  import '@babel/generator';
13
12
  import '@babel/parser';
14
13
  import '@babel/traverse';
15
- import './defu-R3SAEzGq.mjs';
16
- import './defaults-dz6xGhOP.mjs';
14
+ import './defaults-TZpmwtzd.mjs';
15
+ import './defu-ms_ZBCiB.mjs';
17
16
  import '@babel/types';
18
17
  import 'htmlparser2';
19
18
  import 'postcss';
20
- import './postcss-GEOOjC-4.mjs';
19
+ import './postcss-4kTT_aj1.mjs';
21
20
  import 'postcss-selector-parser';
22
21
  import '@csstools/postcss-is-pseudo-class';
22
+ import 'postcss-rem-to-responsive-pixel';
23
23
  import 'node:path';
24
24
  import 'node:fs';
25
25
  import 'semver';
@@ -1,5 +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 regenerateHandleValue(str: string, node: StringLiteral | TemplateElement, options: IJsHandlerOptions): string;
5
4
  export declare function replaceHandleValue(str: string, node: StringLiteral | TemplateElement, options: IJsHandlerOptions, ms: MagicString, offset?: number, needEscaped?: boolean): string;