weapp-tailwindcss 5.0.1 → 5.0.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.
Files changed (54) hide show
  1. package/dist/{bundle-state-CBF5YX1m.js → bundle-state-Bvj01pW7.js} +35 -3
  2. package/dist/{bundle-state-CQmxxx0R.mjs → bundle-state-DY3eq4Gz.mjs} +24 -4
  3. package/dist/bundlers/shared/generated-css-marker.d.ts +6 -0
  4. package/dist/bundlers/shared/generator-css/directives.d.ts +1 -0
  5. package/dist/bundlers/shared/generator-css/source-files.d.ts +11 -5
  6. package/dist/bundlers/shared/generator-css/source-resolver.d.ts +2 -0
  7. package/dist/bundlers/shared/generator-css.d.ts +1 -0
  8. package/dist/bundlers/vite/bundle-state.d.ts +5 -1
  9. package/dist/bundlers/vite/css-finalizer.d.ts +12 -3
  10. package/dist/bundlers/vite/generate-bundle.d.ts +22 -6
  11. package/dist/bundlers/vite/processed-css-assets.d.ts +10 -2
  12. package/dist/bundlers/vite/source-candidates.d.ts +2 -0
  13. package/dist/bundlers/webpack/loaders/watch-dependencies.d.ts +8 -0
  14. package/dist/cli.js +1 -0
  15. package/dist/cli.mjs +1 -0
  16. package/dist/core.js +1 -1
  17. package/dist/core.mjs +1 -1
  18. package/dist/{generator-CvmsIQFI.js → generator-Bd1LntD3.js} +1 -1
  19. package/dist/{generator-DDtsUvkH.mjs → generator-DRHWC1t-.mjs} +1 -1
  20. package/dist/generator.js +2 -2
  21. package/dist/generator.mjs +2 -2
  22. package/dist/gulp.js +16 -10
  23. package/dist/gulp.mjs +14 -8
  24. package/dist/{incremental-runtime-class-set-BffodqHh.js → incremental-runtime-class-set-Bl18sFqt.js} +540 -694
  25. package/dist/{incremental-runtime-class-set-DArodvWs.mjs → incremental-runtime-class-set-CAEuUesH.mjs} +495 -619
  26. package/dist/index.js +4 -4
  27. package/dist/index.mjs +4 -4
  28. package/dist/{postcss-BzNYQUOH.mjs → postcss-CJrmfXvi.mjs} +4 -4
  29. package/dist/{postcss-DE0TOtV9.js → postcss-DfnqZ4Bm.js} +4 -4
  30. package/dist/postcss.js +1 -1
  31. package/dist/postcss.mjs +1 -1
  32. package/dist/{precheck-BzYPm-EG.js → precheck-Bj5ReSOU.js} +2 -2
  33. package/dist/{precheck-jZvTVXXG.mjs → precheck-CUr1DYyy.mjs} +2 -2
  34. package/dist/presets.js +2 -2
  35. package/dist/presets.mjs +2 -2
  36. package/dist/{source-candidates-BuTlMabx.mjs → source-candidates-D7b-Jzsx.mjs} +44 -11
  37. package/dist/{source-candidates-CxoIaS88.js → source-candidates-DQxvGPSw.js} +49 -10
  38. package/dist/tailwindcss/source-scan.d.ts +3 -1
  39. package/dist/{tailwindcss-CCZcu0lr.mjs → tailwindcss-D5RogwtV.mjs} +2 -2
  40. package/dist/{tailwindcss-DZckITp1.js → tailwindcss-jvoYizzX.js} +7 -1
  41. package/dist/{v3-engine-DGBhUnjn.mjs → v3-engine-BCUGX3gX.mjs} +637 -31
  42. package/dist/{v3-engine-M6Aqru5T.js → v3-engine-CmIF_gsq.js} +768 -30
  43. package/dist/{vite-DgRkWVPG.js → vite-D1ZdgbWa.js} +533 -290
  44. package/dist/{vite-BBcQIJpD.mjs → vite-jBTi5CwO.mjs} +532 -289
  45. package/dist/vite.js +1 -1
  46. package/dist/vite.mjs +1 -1
  47. package/dist/{runtime-registry-DpcR3IHI.js → watch-dependencies-zwx4EhBn.js} +39 -0
  48. package/dist/weapp-tw-css-import-rewrite-loader.js +1932 -1621
  49. package/dist/weapp-tw-runtime-classset-loader.js +6 -6
  50. package/dist/{webpack-D43aMQzO.mjs → webpack-CChDqRrl.mjs} +6 -6
  51. package/dist/{webpack-D-gb4ZvO.js → webpack-vk2uqSnK.js} +7 -7
  52. package/dist/webpack.js +1 -1
  53. package/dist/webpack.mjs +1 -1
  54. package/package.json +2 -2
package/dist/vite.js CHANGED
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_vite = require("./vite-DgRkWVPG.js");
2
+ const require_vite = require("./vite-D1ZdgbWa.js");
3
3
  exports.WeappTailwindcss = require_vite.WeappTailwindcss;
4
4
  exports.weappTailwindcss = require_vite.WeappTailwindcss;
package/dist/vite.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as WeappTailwindcss } from "./vite-BBcQIJpD.mjs";
1
+ import { t as WeappTailwindcss } from "./vite-jBTi5CwO.mjs";
2
2
  export { WeappTailwindcss, WeappTailwindcss as weappTailwindcss };
@@ -21,6 +21,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  enumerable: true
22
22
  }) : target, mod));
23
23
  //#endregion
24
+ let node_fs = require("node:fs");
25
+ let node_path = require("node:path");
26
+ node_path = __toESM(node_path);
24
27
  //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
25
28
  var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
26
29
  let p = process || {}, argv = p.argv || [], env = p.env || {};
@@ -5476,6 +5479,30 @@ function getWebpackLoaderRuntime(key) {
5476
5479
  return key ? runtimeRegistry.get(key) : void 0;
5477
5480
  }
5478
5481
  //#endregion
5482
+ //#region src/bundlers/webpack/loaders/watch-dependencies.ts
5483
+ function normalizeWebpackWatchPath(file) {
5484
+ return node_path.default.resolve(file);
5485
+ }
5486
+ function registerWebpackWatchFile(loaderContext, file) {
5487
+ const resolved = normalizeWebpackWatchPath(file);
5488
+ try {
5489
+ if ((0, node_fs.statSync)(resolved).isDirectory()) {
5490
+ loaderContext.addContextDependency?.(resolved);
5491
+ return;
5492
+ }
5493
+ loaderContext.addDependency?.(resolved);
5494
+ } catch {
5495
+ if (loaderContext.addMissingDependency) {
5496
+ loaderContext.addMissingDependency(resolved);
5497
+ return;
5498
+ }
5499
+ loaderContext.addDependency?.(resolved);
5500
+ }
5501
+ }
5502
+ function registerWebpackWatchContext(loaderContext, context) {
5503
+ loaderContext.addContextDependency?.(normalizeWebpackWatchPath(context));
5504
+ }
5505
+ //#endregion
5479
5506
  Object.defineProperty(exports, "__toESM", {
5480
5507
  enumerable: true,
5481
5508
  get: function() {
@@ -5494,3 +5521,15 @@ Object.defineProperty(exports, "postcss_default", {
5494
5521
  return postcss_default;
5495
5522
  }
5496
5523
  });
5524
+ Object.defineProperty(exports, "registerWebpackWatchContext", {
5525
+ enumerable: true,
5526
+ get: function() {
5527
+ return registerWebpackWatchContext;
5528
+ }
5529
+ });
5530
+ Object.defineProperty(exports, "registerWebpackWatchFile", {
5531
+ enumerable: true,
5532
+ get: function() {
5533
+ return registerWebpackWatchFile;
5534
+ }
5535
+ });