weapp-tailwindcss 4.3.2 → 4.3.3

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 (47) hide show
  1. package/dist/chunk-2F7HOQQY.mjs +8 -0
  2. package/dist/{chunk-GRWK73SM.js → chunk-3KMEJ2LM.js} +49 -16
  3. package/dist/{chunk-DGVVFKNF.mjs → chunk-3KXFKRIX.mjs} +39 -6
  4. package/dist/{chunk-3YIQPUK7.mjs → chunk-5BTC4YQI.mjs} +1 -1
  5. package/dist/chunk-6GP37C26.js +8 -0
  6. package/dist/{chunk-72PXDJ7I.js → chunk-A75TB5TE.js} +6 -6
  7. package/dist/{chunk-RC2KZ2LO.mjs → chunk-GEUHO2UC.mjs} +1 -5
  8. package/dist/{chunk-YNMM5ZP5.mjs → chunk-GFQ2R7SX.mjs} +4 -12
  9. package/dist/{chunk-YSVQIZ4W.js → chunk-JDLLZFZX.js} +9 -9
  10. package/dist/{chunk-BXPTS6UP.mjs → chunk-L36QGA7Y.mjs} +1 -1
  11. package/dist/{chunk-AMSF25MI.js → chunk-L7VNJFIK.js} +7 -15
  12. package/dist/{chunk-IDYXPWF6.mjs → chunk-M7PVNKCH.mjs} +9 -9
  13. package/dist/{chunk-K6IPKJSY.js → chunk-O3G5TVND.js} +1 -1
  14. package/dist/{chunk-O335YLYH.js → chunk-QXQOYYCR.js} +1 -2
  15. package/dist/{chunk-K3KFCISK.js → chunk-TI4R65TB.js} +2 -6
  16. package/dist/{chunk-JXBLHLFR.mjs → chunk-Y5AFAYKI.mjs} +0 -1
  17. package/dist/cli.js +5 -5
  18. package/dist/cli.mjs +4 -4
  19. package/dist/core.js +5 -5
  20. package/dist/core.mjs +4 -4
  21. package/dist/css-macro/postcss.js +1 -1
  22. package/dist/css-macro/postcss.mjs +1 -1
  23. package/dist/css-macro.js +3 -3
  24. package/dist/css-macro.mjs +2 -2
  25. package/dist/defaults.js +4 -4
  26. package/dist/defaults.mjs +3 -3
  27. package/dist/escape.js +1 -1
  28. package/dist/escape.mjs +1 -1
  29. package/dist/gulp.js +6 -6
  30. package/dist/gulp.mjs +5 -5
  31. package/dist/index.js +9 -8
  32. package/dist/index.mjs +8 -7
  33. package/dist/postcss-html-transform.js +1 -1
  34. package/dist/postcss-html-transform.mjs +1 -1
  35. package/dist/presets.js +3 -3
  36. package/dist/presets.mjs +2 -2
  37. package/dist/types.d.mts +54 -1
  38. package/dist/types.d.ts +54 -1
  39. package/dist/types.js +1 -1
  40. package/dist/types.mjs +1 -1
  41. package/dist/vite.js +6 -6
  42. package/dist/vite.mjs +5 -5
  43. package/dist/webpack.js +7 -6
  44. package/dist/webpack.mjs +6 -5
  45. package/dist/webpack4.js +11 -11
  46. package/dist/webpack4.mjs +10 -10
  47. package/package.json +9 -10
package/dist/webpack4.mjs CHANGED
@@ -1,3 +1,6 @@
1
+ import {
2
+ getCacheKey
3
+ } from "./chunk-2F7HOQQY.mjs";
1
4
  import {
2
5
  createDebug
3
6
  } from "./chunk-3AUX4FGE.mjs";
@@ -6,16 +9,15 @@ import {
6
9
  } from "./chunk-CMUA5KCO.mjs";
7
10
  import {
8
11
  getCompilerContext
9
- } from "./chunk-DGVVFKNF.mjs";
12
+ } from "./chunk-3KXFKRIX.mjs";
10
13
  import "./chunk-Q67IXIAH.mjs";
11
- import "./chunk-3YIQPUK7.mjs";
14
+ import "./chunk-5BTC4YQI.mjs";
12
15
  import {
13
- getGroupedEntries,
14
- removeExt
15
- } from "./chunk-JXBLHLFR.mjs";
16
+ getGroupedEntries
17
+ } from "./chunk-Y5AFAYKI.mjs";
16
18
  import {
17
19
  __dirname
18
- } from "./chunk-BXPTS6UP.mjs";
20
+ } from "./chunk-L36QGA7Y.mjs";
19
21
 
20
22
  // src/bundlers/webpack/BaseUnifiedPlugin/v4.ts
21
23
  import fs from "fs";
@@ -128,7 +130,7 @@ var UnifiedWebpackPluginV4 = class {
128
130
  if (Array.isArray(groupedEntries.js)) {
129
131
  for (const element of groupedEntries.js) {
130
132
  const [file, originalSource] = element;
131
- const cacheKey = removeExt(file);
133
+ const cacheKey = getCacheKey(file);
132
134
  promises.push(
133
135
  cache.process(
134
136
  cacheKey,
@@ -144,9 +146,7 @@ var UnifiedWebpackPluginV4 = class {
144
146
  // @ts-ignore
145
147
  async () => {
146
148
  const rawSource = originalSource.source().toString();
147
- const { code } = await jsHandler(rawSource, runtimeSet, {
148
- // generateMap: hasMap,
149
- });
149
+ const { code } = await jsHandler(rawSource, runtimeSet);
150
150
  const source = new ConcatSource(code);
151
151
  compilation.updateAsset(file, source);
152
152
  onUpdate(file, rawSource, code);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weapp-tailwindcss",
3
- "version": "4.3.2",
3
+ "version": "4.3.3",
4
4
  "description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
5
5
  "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",
@@ -122,9 +122,9 @@
122
122
  "./css": "./css/index.css",
123
123
  "./*": "./*"
124
124
  },
125
- "main": "dist/index.js",
126
- "module": "dist/index.mjs",
127
- "types": "dist/index.d.ts",
125
+ "main": "./dist/index.js",
126
+ "module": "./dist/index.mjs",
127
+ "types": "./dist/index.d.ts",
128
128
  "style": "index.css",
129
129
  "typesVersions": {
130
130
  "*": {
@@ -162,7 +162,7 @@
162
162
  "@babel/parser": "~7.28.4",
163
163
  "@babel/traverse": "~7.28.4",
164
164
  "@babel/types": "~7.28.4",
165
- "@vue/compiler-dom": "^3.5.21",
165
+ "@vue/compiler-dom": "^3.5.22",
166
166
  "@weapp-core/escape": "~4.0.1",
167
167
  "@weapp-core/regex": "~1.0.1",
168
168
  "debug": "~4.4.3",
@@ -172,20 +172,20 @@
172
172
  "lru-cache": "10.4.3",
173
173
  "magic-string": "0.30.19",
174
174
  "semver": "~7.7.2",
175
- "tailwindcss-patch": "~7.1.5",
176
- "vue": "^3.5.21",
175
+ "tailwindcss-patch": "~7.1.6",
176
+ "vue": "^3.5.22",
177
177
  "webpack-sources": "3.3.3",
178
178
  "@weapp-tailwindcss/init": "1.0.7",
179
179
  "@weapp-tailwindcss/logger": "1.1.0",
180
180
  "@weapp-tailwindcss/mangle": "1.0.5",
181
- "@weapp-tailwindcss/postcss": "1.3.0",
181
+ "@weapp-tailwindcss/postcss": "1.3.1",
182
182
  "@weapp-tailwindcss/shared": "1.0.3"
183
183
  },
184
184
  "devDependencies": {
185
185
  "@ampproject/remapping": "^2.3.0",
186
186
  "@csstools/postcss-is-pseudo-class": "^5.0.3",
187
187
  "clsx": "^2.1.1",
188
- "rollup": "^4.50.2"
188
+ "rollup": "^4.52.3"
189
189
  },
190
190
  "scripts": {
191
191
  "dev": "tsup --watch --sourcemap",
@@ -205,7 +205,6 @@
205
205
  "release": "tsx scripts/release.ts",
206
206
  "lint": "eslint .",
207
207
  "lint:fix": "eslint ./src --fix",
208
- "-------": "-----------",
209
208
  "postinstall": "node bin/weapp-tailwindcss.js patch"
210
209
  }
211
210
  }