weapp-tailwindcss 3.0.8 → 3.0.9

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
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var semver = require('semver');
4
- var options = require('./options-OeTQagSz.js');
4
+ var options = require('./options-ymQS0nTj.js');
5
5
  var index = require('./index-Fkmyt0Rc.js');
6
6
  require('magic-string');
7
7
  require('./replace.js');
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import semver from 'semver';
2
- import { g as getOptions, a as createPatch } from './options-tzRk6WuG.mjs';
2
+ import { g as getOptions, a as createPatch } from './options-Z3Pay3SJ.mjs';
3
3
  import { W as WEAPP_TW_REQUIRED_NODE_VERSION } from './index-_74RBzwy.mjs';
4
4
  import 'magic-string';
5
5
  import './replace.mjs';
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-OeTQagSz.js');
5
+ var options = require('./options-ymQS0nTj.js');
6
6
  require('magic-string');
7
7
  require('./replace.js');
8
8
  require('@weapp-core/escape');
package/dist/core.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-tzRk6WuG.mjs';
1
+ import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-Z3Pay3SJ.mjs';
2
2
  import 'magic-string';
3
3
  import './replace.mjs';
4
4
  import '@weapp-core/escape';
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-9KOtheOu.js');
6
- require('./options-OeTQagSz.js');
5
+ var index = require('./index-JQFi9orv.js');
6
+ require('./options-ymQS0nTj.js');
7
7
  require('magic-string');
8
8
  require('./replace.js');
9
9
  require('@weapp-core/escape');
package/dist/gulp.mjs CHANGED
@@ -1,5 +1,5 @@
1
- export { c as createPlugins } from './index-6BYZuCJ-.mjs';
2
- import './options-tzRk6WuG.mjs';
1
+ export { c as createPlugins } from './index-q-Es6emh.mjs';
2
+ import './options-Z3Pay3SJ.mjs';
3
3
  import 'magic-string';
4
4
  import './replace.mjs';
5
5
  import '@weapp-core/escape';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var options = require('./options-OeTQagSz.js');
3
+ var options = require('./options-ymQS0nTj.js');
4
4
  var index = require('./index-Fkmyt0Rc.js');
5
5
  var defaults = require('./defaults-1lCMiqik.js');
6
6
  var index$1 = require('./index-juOeq2Kt.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var options = require('./options-OeTQagSz.js');
3
+ var options = require('./options-ymQS0nTj.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,4 +1,4 @@
1
- import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-tzRk6WuG.mjs';
1
+ import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-Z3Pay3SJ.mjs';
2
2
  import { v as vitePluginName } from './index-_74RBzwy.mjs';
3
3
  import { g as getGroupedEntries } from './defaults-c-Db9ovX.mjs';
4
4
  import { c as createDebug } from './index-06BoOZig.mjs';
@@ -1,4 +1,4 @@
1
- import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-tzRk6WuG.mjs';
1
+ import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-Z3Pay3SJ.mjs';
2
2
  import stream from 'node:stream';
3
3
 
4
4
  const Transform = stream.Transform;
package/dist/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var v5 = require('./v5-qvd3ogQO.js');
6
- var index = require('./index-xGKG_MG3.js');
7
- var index$1 = require('./index-9KOtheOu.js');
8
- require('./options-OeTQagSz.js');
5
+ var v5 = require('./v5-wLmuN-qW.js');
6
+ var index = require('./index-63THS8xH.js');
7
+ var index$1 = require('./index-JQFi9orv.js');
8
+ require('./options-ymQS0nTj.js');
9
9
  require('magic-string');
10
10
  require('./replace.js');
11
11
  require('@weapp-core/escape');
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- export { U as UnifiedWebpackPluginV5 } from './v5-dm4XjVKy.mjs';
2
- export { U as UnifiedViteWeappTailwindcssPlugin } from './index--E-2E4kq.mjs';
3
- export { c as createPlugins } from './index-6BYZuCJ-.mjs';
4
- import './options-tzRk6WuG.mjs';
1
+ export { U as UnifiedWebpackPluginV5 } from './v5-uxlJgYR1.mjs';
2
+ export { U as UnifiedViteWeappTailwindcssPlugin } from './index-KDDyuNhv.mjs';
3
+ export { c as createPlugins } from './index-q-Es6emh.mjs';
4
+ import './options-Z3Pay3SJ.mjs';
5
5
  import 'magic-string';
6
6
  import './replace.mjs';
7
7
  import '@weapp-core/escape';
@@ -79,7 +79,7 @@ function replaceHandleValue(str, node, options, ms, offset = 0, needEscaped = fa
79
79
  if (ctx) {
80
80
  rawStr = ctx.jsHandler(rawStr);
81
81
  }
82
- rawStr = rawStr.replaceAll(new RegExp(escapeStringRegexp(v), 'g'), replaceWxml(v, {
82
+ rawStr = rawStr.replace(new RegExp(escapeStringRegexp(v)), replaceWxml(v, {
83
83
  escapeMap
84
84
  }));
85
85
  }
@@ -533,7 +533,7 @@ function useMangleStore() {
533
533
  const arr = splitCode(rawSource);
534
534
  for (const x of arr) {
535
535
  if (ctx.runtimeSet.has(x)) {
536
- rawSource = rawSource.replaceAll(new RegExp(escapeStringRegexp(x), 'g'), ctx.classGenerator.generateClassName(x).name);
536
+ rawSource = rawSource.replace(new RegExp(escapeStringRegexp(x)), ctx.classGenerator.generateClassName(x).name);
537
537
  }
538
538
  }
539
539
  return rawSource;
@@ -110,7 +110,7 @@ function replaceHandleValue(str, node, options, ms, offset = 0, needEscaped = fa
110
110
  if (ctx) {
111
111
  rawStr = ctx.jsHandler(rawStr);
112
112
  }
113
- rawStr = rawStr.replaceAll(new RegExp(regex.escapeStringRegexp(v), 'g'), replace.replaceJs(v, {
113
+ rawStr = rawStr.replace(new RegExp(regex.escapeStringRegexp(v)), replace.replaceJs(v, {
114
114
  escapeMap
115
115
  }));
116
116
  }
@@ -564,7 +564,7 @@ function useMangleStore() {
564
564
  const arr = splitCode(rawSource);
565
565
  for (const x of arr) {
566
566
  if (ctx.runtimeSet.has(x)) {
567
- rawSource = rawSource.replaceAll(new RegExp(regex.escapeStringRegexp(x), 'g'), ctx.classGenerator.generateClassName(x).name);
567
+ rawSource = rawSource.replace(new RegExp(regex.escapeStringRegexp(x)), ctx.classGenerator.generateClassName(x).name);
568
568
  }
569
569
  }
570
570
  return rawSource;
@@ -1,4 +1,4 @@
1
- import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-tzRk6WuG.mjs';
1
+ import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-Z3Pay3SJ.mjs';
2
2
  import path from 'node:path';
3
3
  import fs from 'node:fs';
4
4
  import { b as pluginName } from './index-_74RBzwy.mjs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var options = require('./options-OeTQagSz.js');
3
+ var options = require('./options-ymQS0nTj.js');
4
4
  var path = require('node:path');
5
5
  var fs = require('node:fs');
6
6
  var index = require('./index-Fkmyt0Rc.js');
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-xGKG_MG3.js');
6
- require('./options-OeTQagSz.js');
5
+ var index = require('./index-63THS8xH.js');
6
+ require('./options-ymQS0nTj.js');
7
7
  require('magic-string');
8
8
  require('./replace.js');
9
9
  require('@weapp-core/escape');
package/dist/vite.mjs CHANGED
@@ -1,5 +1,5 @@
1
- export { U as UnifiedViteWeappTailwindcssPlugin } from './index--E-2E4kq.mjs';
2
- import './options-tzRk6WuG.mjs';
1
+ export { U as UnifiedViteWeappTailwindcssPlugin } from './index-KDDyuNhv.mjs';
2
+ import './options-Z3Pay3SJ.mjs';
3
3
  import 'magic-string';
4
4
  import './replace.mjs';
5
5
  import '@weapp-core/escape';
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-qvd3ogQO.js');
6
- require('./options-OeTQagSz.js');
5
+ var v5 = require('./v5-wLmuN-qW.js');
6
+ require('./options-ymQS0nTj.js');
7
7
  require('magic-string');
8
8
  require('./replace.js');
9
9
  require('@weapp-core/escape');
package/dist/webpack.mjs CHANGED
@@ -1,5 +1,5 @@
1
- export { U as UnifiedWebpackPluginV5 } from './v5-dm4XjVKy.mjs';
2
- import './options-tzRk6WuG.mjs';
1
+ export { U as UnifiedWebpackPluginV5 } from './v5-uxlJgYR1.mjs';
2
+ import './options-Z3Pay3SJ.mjs';
3
3
  import 'magic-string';
4
4
  import './replace.mjs';
5
5
  import '@weapp-core/escape';
package/dist/webpack4.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var options = require('./options-OeTQagSz.js');
5
+ var options = require('./options-ymQS0nTj.js');
6
6
  var path = require('node:path');
7
7
  var fs = require('node:fs');
8
8
  var webpackSources = require('webpack-sources');
package/dist/webpack4.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-tzRk6WuG.mjs';
1
+ import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-Z3Pay3SJ.mjs';
2
2
  import path from 'node:path';
3
3
  import fs from 'node:fs';
4
4
  import { ConcatSource, RawSource } from 'webpack-sources';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weapp-tailwindcss",
3
- "version": "3.0.8",
3
+ "version": "3.0.9",
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,14 +145,14 @@
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.7",
148
+ "@types/node": "^20.11.11",
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.1",
155
- "@vitest/ui": "^1.2.1",
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",
@@ -198,7 +198,7 @@
198
198
  "typescript-transform-paths": "^3.4.6",
199
199
  "vinyl": "^3.0.0",
200
200
  "vite": "^5.0.12",
201
- "vitest": "^1.2.1",
201
+ "vitest": "^1.2.2",
202
202
  "weapp-tailwindcss-children": "^0.1.0",
203
203
  "webpack": "^5.90.0",
204
204
  "webpack-build-utils": "^0.0.7"