weapp-tailwindcss 4.12.0-next.0 → 4.12.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 (51) hide show
  1. package/bin/weapp-tailwindcss.js +21 -1
  2. package/dist/{chunk-GMKSBLNY.js → chunk-24AGZQVR.js} +15 -7
  3. package/dist/{chunk-F2CKKG6Q.mjs → chunk-3VQKDHGP.mjs} +12 -4
  4. package/dist/{chunk-F5XJWJYO.mjs → chunk-57SOQCAU.mjs} +5 -5
  5. package/dist/{chunk-GD4SQMVF.mjs → chunk-5ZYHNDEK.mjs} +98 -37
  6. package/dist/{chunk-FMK6SFQQ.js → chunk-DUHYLR2R.js} +7 -7
  7. package/dist/{chunk-OYSABARD.js → chunk-E7I5TW5K.js} +3 -2
  8. package/dist/{chunk-WSS26HZS.js → chunk-FS2NOOEB.js} +5 -5
  9. package/dist/{chunk-GC7WXUOW.js → chunk-HVNGIKLS.js} +55 -31
  10. package/dist/{chunk-LVSUBDJC.js → chunk-JZQBZHN5.js} +39 -39
  11. package/dist/{chunk-QNRJCEZN.mjs → chunk-KGTVD4EP.mjs} +66 -42
  12. package/dist/{chunk-HL3US2OT.mjs → chunk-NNOQDMUP.mjs} +1 -1
  13. package/dist/{chunk-5ONE75V7.js → chunk-OFB2KBRP.js} +175 -114
  14. package/dist/{chunk-AYJ4HLWZ.mjs → chunk-PCDYXXSK.mjs} +11 -4
  15. package/dist/{chunk-ONLKZIRQ.js → chunk-RKISS72P.js} +1 -1
  16. package/dist/{chunk-ZR3KN3FG.mjs → chunk-RRQZL7FQ.mjs} +2 -2
  17. package/dist/{chunk-UUJWDME4.mjs → chunk-XZP3MREK.mjs} +1 -1
  18. package/dist/{chunk-NIS74SI6.js → chunk-ZAA5ZG3D.js} +60 -53
  19. package/dist/{chunk-2LH6PZH3.mjs → chunk-ZCH4YINE.mjs} +3 -2
  20. package/dist/cli.js +2241 -169
  21. package/dist/cli.mjs +2246 -174
  22. package/dist/core.js +9 -9
  23. package/dist/core.mjs +3 -3
  24. package/dist/css-macro/postcss.js +4 -4
  25. package/dist/css-macro/postcss.mjs +2 -2
  26. package/dist/css-macro.js +5 -5
  27. package/dist/css-macro.mjs +2 -2
  28. package/dist/defaults.js +1 -1
  29. package/dist/defaults.mjs +1 -1
  30. package/dist/gulp.js +5 -5
  31. package/dist/gulp.mjs +4 -4
  32. package/dist/index.js +9 -9
  33. package/dist/index.mjs +8 -8
  34. package/dist/postcss-html-transform.js +1 -1
  35. package/dist/postcss-html-transform.mjs +1 -1
  36. package/dist/presets.js +6 -6
  37. package/dist/presets.mjs +2 -2
  38. package/dist/reset.js +1 -1
  39. package/dist/reset.mjs +1 -1
  40. package/dist/types.js +1 -1
  41. package/dist/types.mjs +1 -1
  42. package/dist/vite.js +6 -6
  43. package/dist/vite.mjs +5 -5
  44. package/dist/weapp-tw-css-import-rewrite-loader.js +10 -5
  45. package/dist/weapp-tw-runtime-classset-loader.js +9 -4
  46. package/dist/webpack.js +7 -7
  47. package/dist/webpack.mjs +6 -6
  48. package/dist/webpack4.js +59 -55
  49. package/dist/webpack4.mjs +28 -24
  50. package/package.json +11 -10
  51. package/scripts/postinstall.mjs +59 -0
@@ -9,7 +9,7 @@ import {
9
9
  logger,
10
10
  resolveUniAppXOptions,
11
11
  warnMissingCssEntries
12
- } from "./chunk-AYJ4HLWZ.mjs";
12
+ } from "./chunk-PCDYXXSK.mjs";
13
13
  import {
14
14
  getDefaultOptions
15
15
  } from "./chunk-XAKAD2CR.mjs";
@@ -363,14 +363,14 @@ function initializeCache(cacheConfig) {
363
363
  }
364
364
 
365
365
  // src/tailwindcss/runtime-logs.ts
366
- import process2 from "process";
366
+ import process from "process";
367
367
  import { logger as logger2, pc } from "@weapp-tailwindcss/logger";
368
368
  var runtimeLogDedupeHolder = globalThis;
369
369
  var runtimeLogDedupe = runtimeLogDedupeHolder.__WEAPP_TW_RUNTIME_LOG_DEDUPE__ ?? (runtimeLogDedupeHolder.__WEAPP_TW_RUNTIME_LOG_DEDUPE__ = /* @__PURE__ */ new Set());
370
370
  function createRuntimeLogKey(category, baseDir, rootPath, version) {
371
371
  return JSON.stringify([
372
372
  category,
373
- baseDir ?? process2.cwd(),
373
+ baseDir ?? process.cwd(),
374
374
  rootPath ?? "",
375
375
  version ?? ""
376
376
  ]);
@@ -405,7 +405,7 @@ function logRuntimeTailwindcssVersion(baseDir, rootPath, version) {
405
405
  }
406
406
 
407
407
  // src/tailwindcss/targets.ts
408
- import process5 from "process";
408
+ import process4 from "process";
409
409
  import { logger as logger4 } from "@weapp-tailwindcss/logger";
410
410
 
411
411
  // src/tailwindcss/targets/paths.ts
@@ -414,18 +414,21 @@ import path from "path";
414
414
  var PATCH_INFO_FILENAME = "tailwindcss-target.json";
415
415
  var PATCH_INFO_CACHE_RELATIVE_PATH = path.join("node_modules", ".cache", "weapp-tailwindcss", PATCH_INFO_FILENAME);
416
416
  var PATCH_INFO_LEGACY_RELATIVE_PATH = path.join(".tw-patch", PATCH_INFO_FILENAME);
417
+ function toDisplayPath(value) {
418
+ return path.normalize(value).replace(/\\/g, "/");
419
+ }
417
420
  function formatRelativeToBase(targetPath, baseDir) {
418
421
  if (!baseDir) {
419
- return path.normalize(targetPath);
422
+ return toDisplayPath(targetPath);
420
423
  }
421
424
  const relative = path.relative(baseDir, targetPath);
422
425
  if (!relative || relative === ".") {
423
426
  return ".";
424
427
  }
425
428
  if (relative.startsWith("..")) {
426
- return path.normalize(targetPath);
429
+ return toDisplayPath(targetPath);
427
430
  }
428
- return path.join(".", relative);
431
+ return toDisplayPath(path.join(".", relative));
429
432
  }
430
433
  function resolveRecordLocation(baseDir) {
431
434
  const normalizedBase = path.normalize(baseDir);
@@ -460,13 +463,13 @@ function getRecordFileCandidates(baseDir) {
460
463
  import { existsSync as existsSync2, readFileSync } from "fs";
461
464
  import { mkdir, writeFile } from "fs/promises";
462
465
  import path2 from "path";
463
- import process3 from "process";
466
+ import process2 from "process";
464
467
  import { logger as logger3 } from "@weapp-tailwindcss/logger";
465
468
 
466
469
  // package.json
467
470
  var package_default = {
468
471
  name: "weapp-tailwindcss",
469
- version: "4.12.0-next.0",
472
+ version: "4.12.0",
470
473
  description: "\u628A tailwindcss \u539F\u5B50\u5316\u6837\u5F0F\u601D\u60F3\uFF0C\u5E26\u7ED9\u5C0F\u7A0B\u5E8F\u5F00\u53D1\u8005\u4EEC! bring tailwindcss to miniprogram developers!",
471
474
  author: "ice breaker <1324318532@qq.com>",
472
475
  license: "MIT",
@@ -616,13 +619,14 @@ var package_default = {
616
619
  "dist",
617
620
  "index.css",
618
621
  "preflight.css",
622
+ "scripts/postinstall.mjs",
619
623
  "theme.css",
620
624
  "uni-app-x.css",
621
625
  "utilities.css",
622
626
  "with-layer.css"
623
627
  ],
624
628
  engines: {
625
- node: "^18.17.0 || >=20.5.0"
629
+ node: "^20.19.0 || >=22.12.0"
626
630
  },
627
631
  scripts: {
628
632
  dev: "tsup --watch --sourcemap",
@@ -631,7 +635,7 @@ var package_default = {
631
635
  "build:cli": "cd plugins/cli && pnpm run build",
632
636
  "build:css": "tsx scripts/build-css.ts",
633
637
  "build:weapp-theme": "tsx scripts/build-weapp-theme.ts",
634
- test: "npm run postinstall && vitest run",
638
+ test: "pnpm run cli:patch && vitest run",
635
639
  "test:dev": "vitest",
636
640
  "test:ui": "vitest --ui",
637
641
  bench: "vitest bench --config ./vitest.config.ts",
@@ -648,7 +652,7 @@ var package_default = {
648
652
  release: "tsx scripts/release.ts",
649
653
  lint: "eslint .",
650
654
  "lint:fix": "eslint ./src --fix",
651
- postinstall: "node bin/weapp-tailwindcss.js patch",
655
+ postinstall: "node scripts/postinstall.mjs",
652
656
  "bench:vite-dev-hmr": "tsx scripts/vite-dev-hmr-bench.ts",
653
657
  "test:watch-hmr": "node --import tsx scripts/watch-hmr-regression/index.ts"
654
658
  },
@@ -658,10 +662,10 @@ var package_default = {
658
662
  },
659
663
  dependencies: {
660
664
  "@ast-core/escape": "~1.0.1",
661
- "@babel/parser": "~7.29.2",
665
+ "@babel/parser": "~7.29.3",
662
666
  "@babel/traverse": "~7.29.0",
663
667
  "@babel/types": "~7.29.0",
664
- "@tailwindcss-mangle/config": "^7.0.0",
668
+ "@tailwindcss-mangle/config": "^7.0.1",
665
669
  "@vue/compiler-dom": "catalog:vue3",
666
670
  "@vue/compiler-sfc": "catalog:vue3",
667
671
  "@weapp-core/escape": "~7.0.0",
@@ -682,7 +686,7 @@ var package_default = {
682
686
  semver: "~7.7.4",
683
687
  "tailwindcss-patch": "catalog:tailwindcssPatch",
684
688
  "webpack-sources": "3.3.4",
685
- yaml: "^2.8.3"
689
+ yaml: "^2.8.4"
686
690
  },
687
691
  devDependencies: {
688
692
  "fast-check": "^4.7.0"
@@ -708,7 +712,7 @@ function warnInvalidPatchTargetRecord(baseDir, recordPath, reason) {
708
712
  }
709
713
  loggedInvalidPatchRecords.add(normalizedPath);
710
714
  const fileDisplay = formatRelativeToBase(normalizedPath, baseDir);
711
- const baseDisplay = formatRelativeToBase(path2.normalize(baseDir), process3.cwd());
715
+ const baseDisplay = formatRelativeToBase(path2.normalize(baseDir), process2.cwd());
712
716
  const reasonMessage = reason ? `\uFF1A${reason}` : "";
713
717
  logger3.warn(
714
718
  `\u68C0\u6D4B\u5230\u635F\u574F\u7684 Tailwind CSS \u76EE\u6807\u8BB0\u5F55 ${fileDisplay}${reasonMessage}\u3002\u8BF7\u5728 ${baseDisplay} \u91CD\u65B0\u6267\u884C "weapp-tw patch --record-target" \u6216\u5220\u9664\u8BE5\u6587\u4EF6\u540E\u518D\u8FD0\u884C\u3002`
@@ -767,7 +771,7 @@ async function saveCliPatchTargetRecord(baseDir, patcher, options) {
767
771
  `, "utf8");
768
772
  return recordPath;
769
773
  } catch (error) {
770
- const baseDisplay = formatRelativeToBase(normalizedBase, process3.cwd());
774
+ const baseDisplay = formatRelativeToBase(normalizedBase, process2.cwd());
771
775
  logger3.warn(
772
776
  '\u81EA\u52A8\u66F4\u65B0 Tailwind CSS \u8865\u4E01\u8BB0\u5F55\u5931\u8D25\uFF0C\u8BF7\u5728 %s \u8FD0\u884C "weapp-tw patch --cwd %s"\u3002',
773
777
  baseDisplay,
@@ -780,10 +784,10 @@ async function saveCliPatchTargetRecord(baseDir, patcher, options) {
780
784
 
781
785
  // src/tailwindcss/targets/recorder.ts
782
786
  import path3 from "path";
783
- import process4 from "process";
787
+ import process3 from "process";
784
788
  function findPatchTargetRecord(baseDir) {
785
789
  const visited = /* @__PURE__ */ new Set();
786
- const fallback = baseDir ?? process4.cwd();
790
+ const fallback = baseDir ?? process3.cwd();
787
791
  let current = path3.resolve(fallback);
788
792
  while (!visited.has(current)) {
789
793
  const record = readPatchTargetRecord(current);
@@ -866,7 +870,7 @@ function logTailwindcssTarget(kind, patcher, baseDir) {
866
870
  logger4.warn(
867
871
  "%s \u672A\u627E\u5230 Tailwind CSS \u4F9D\u8D56\uFF0C\u8BF7\u68C0\u67E5\u5728 %s \u662F\u5426\u5DF2\u5B89\u88C5 tailwindcss",
868
872
  label,
869
- baseDir ?? process5.cwd()
873
+ baseDir ?? process4.cwd()
870
874
  );
871
875
  return;
872
876
  }
@@ -882,7 +886,7 @@ function logTailwindcssTarget(kind, patcher, baseDir) {
882
886
  // src/context/compiler-context-cache.ts
883
887
  import { Buffer } from "buffer";
884
888
  import path4 from "path";
885
- import process6 from "process";
889
+ import process5 from "process";
886
890
  import { logger as logger5 } from "@weapp-tailwindcss/logger";
887
891
  var PAREN_CONTENT_RE = /\(([^)]+)\)/u;
888
892
  var AT_LOCATION_RE = /at\s+(\S.*)$/u;
@@ -916,7 +920,7 @@ function shouldProbeCallerLocation(opts) {
916
920
  if (hasExplicitOptionBasedir(opts)) {
917
921
  return false;
918
922
  }
919
- return !(process6.env.WEAPP_TAILWINDCSS_BASEDIR || process6.env.WEAPP_TAILWINDCSS_BASE_DIR || process6.env.TAILWINDCSS_BASEDIR || process6.env.TAILWINDCSS_BASE_DIR);
923
+ return !(process5.env.WEAPP_TAILWINDCSS_BASEDIR || process5.env.WEAPP_TAILWINDCSS_BASE_DIR || process5.env.TAILWINDCSS_BASEDIR || process5.env.TAILWINDCSS_BASE_DIR);
920
924
  }
921
925
  function detectCallerLocation() {
922
926
  const stack = new Error("compiler-context-cache stack probe").stack;
@@ -949,20 +953,20 @@ function getRuntimeCacheScope(opts) {
949
953
  }
950
954
  const runtimeScope = {
951
955
  caller: void 0,
952
- cwd: process6.cwd(),
953
- init_cwd: process6.env.INIT_CWD,
954
- npm_config_local_prefix: process6.env.npm_config_local_prefix,
955
- npm_package_json: process6.env.npm_package_json,
956
- pnpm_package_name: process6.env.PNPM_PACKAGE_NAME,
957
- pwd: process6.env.PWD,
958
- tailwindcss_base_dir: process6.env.TAILWINDCSS_BASE_DIR,
959
- tailwindcss_basedir: process6.env.TAILWINDCSS_BASEDIR,
960
- uni_app_input_dir: process6.env.UNI_APP_INPUT_DIR,
961
- uni_cli_root: process6.env.UNI_CLI_ROOT,
962
- uni_input_dir: process6.env.UNI_INPUT_DIR,
963
- uni_input_root: process6.env.UNI_INPUT_ROOT,
964
- weapp_tailwindcss_base_dir: process6.env.WEAPP_TAILWINDCSS_BASE_DIR,
965
- weapp_tailwindcss_basedir: process6.env.WEAPP_TAILWINDCSS_BASEDIR
956
+ cwd: process5.cwd(),
957
+ init_cwd: process5.env.INIT_CWD,
958
+ npm_config_local_prefix: process5.env.npm_config_local_prefix,
959
+ npm_package_json: process5.env.npm_package_json,
960
+ pnpm_package_name: process5.env.PNPM_PACKAGE_NAME,
961
+ pwd: process5.env.PWD,
962
+ tailwindcss_base_dir: process5.env.TAILWINDCSS_BASE_DIR,
963
+ tailwindcss_basedir: process5.env.TAILWINDCSS_BASEDIR,
964
+ uni_app_input_dir: process5.env.UNI_APP_INPUT_DIR,
965
+ uni_cli_root: process5.env.UNI_CLI_ROOT,
966
+ uni_input_dir: process5.env.UNI_INPUT_DIR,
967
+ uni_input_root: process5.env.UNI_INPUT_ROOT,
968
+ weapp_tailwindcss_base_dir: process5.env.WEAPP_TAILWINDCSS_BASE_DIR,
969
+ weapp_tailwindcss_basedir: process5.env.WEAPP_TAILWINDCSS_BASEDIR
966
970
  };
967
971
  if (shouldProbeCallerLocation(opts)) {
968
972
  runtimeScope.caller = detectCallerLocation();
@@ -1564,7 +1568,7 @@ function isClassLikeCallExpression(path5, valuePath) {
1564
1568
  if (!helperName || !CLASS_HELPER_IDENTIFIERS.has(normalizeKeyword(helperName))) {
1565
1569
  return false;
1566
1570
  }
1567
- return path5.get("arguments").includes(valuePath);
1571
+ return path5.get("arguments").some((argumentPath) => argumentPath.node === valuePath.node);
1568
1572
  }
1569
1573
  function isClassContextLiteralPath(path5) {
1570
1574
  let current = path5;
@@ -2066,6 +2070,7 @@ function walkEvalExpression(path5, options, updater, handler) {
2066
2070
  for (const q of n.quasis) {
2067
2071
  const stub = {
2068
2072
  node: q,
2073
+ isStringLiteral: () => false,
2069
2074
  isTemplateElement: () => true
2070
2075
  };
2071
2076
  handleEvalTemplateElement(stub, templateHandlerOptions, updater, handler);
@@ -2810,6 +2815,7 @@ var EMPTY_IMPORT_DECLARATIONS = /* @__PURE__ */ new Set();
2810
2815
  var EMPTY_EXPORT_DECLARATIONS = /* @__PURE__ */ new Set();
2811
2816
  var EMPTY_REQUIRE_CALL_PATHS = [];
2812
2817
  var ignoredTaggedTemplateMatcherCache = /* @__PURE__ */ new WeakMap();
2818
+ var defaultEvalHandler;
2813
2819
  function getIgnoredTaggedTemplateMatcher(options) {
2814
2820
  const cached = ignoredTaggedTemplateMatcherCache.get(options);
2815
2821
  if (cached) {
@@ -2819,6 +2825,12 @@ function getIgnoredTaggedTemplateMatcher(options) {
2819
2825
  ignoredTaggedTemplateMatcherCache.set(options, created);
2820
2826
  return created;
2821
2827
  }
2828
+ function getDefaultEvalHandler() {
2829
+ if (!defaultEvalHandler) {
2830
+ throw new Error("Default JS eval handler is not initialized.");
2831
+ }
2832
+ return defaultEvalHandler;
2833
+ }
2822
2834
  function analyzeSource(ast, options, handler, collectModuleMetadata = true) {
2823
2835
  const jsTokenUpdater = new JsTokenUpdater();
2824
2836
  const needScope = Boolean(options.ignoreCallExpressionIdentifiers && options.ignoreCallExpressionIdentifiers.length > 0);
@@ -2846,7 +2858,7 @@ function analyzeSource(ast, options, handler, collectModuleMetadata = true) {
2846
2858
  const importDeclarations = collectModuleMetadata ? /* @__PURE__ */ new Set() : EMPTY_IMPORT_DECLARATIONS;
2847
2859
  const exportDeclarations = collectModuleMetadata ? /* @__PURE__ */ new Set() : EMPTY_EXPORT_DECLARATIONS;
2848
2860
  const requireCallPaths = collectModuleMetadata ? [] : EMPTY_REQUIRE_CALL_PATHS;
2849
- const evalHandler = handler ?? jsHandler;
2861
+ const evalHandler = handler ?? getDefaultEvalHandler();
2850
2862
  const templateElementEnter = hasTaggedTemplateIgnoreIdentifiers ? (p) => {
2851
2863
  const pp = p.parentPath;
2852
2864
  if (pp.isTemplateLiteral()) {
@@ -2987,9 +2999,11 @@ function jsHandler(rawSource, options) {
2987
2999
  }
2988
3000
  return result;
2989
3001
  }
3002
+ defaultEvalHandler = jsHandler;
2990
3003
 
2991
3004
  // src/js/index.ts
2992
3005
  var RESULT_CACHE_MAX = 512;
3006
+ var CACHEABLE_SOURCE_MAX_LENGTH = 512;
2993
3007
  var classNameSetIds = /* @__PURE__ */ new WeakMap();
2994
3008
  var nextClassNameSetId = 0;
2995
3009
  function getClassNameSetId(set) {
@@ -3043,6 +3057,15 @@ function hasDefinedOverrides(options) {
3043
3057
  }
3044
3058
  return false;
3045
3059
  }
3060
+ function shouldCacheJsResult(rawSource, options) {
3061
+ if (rawSource.length === 0 || rawSource.length > CACHEABLE_SOURCE_MAX_LENGTH) {
3062
+ return false;
3063
+ }
3064
+ if (options.moduleGraph || options.filename) {
3065
+ return false;
3066
+ }
3067
+ return true;
3068
+ }
3046
3069
  function createJsHandler(options) {
3047
3070
  const defaults = {
3048
3071
  escapeMap: options.escapeMap,
@@ -3087,14 +3110,14 @@ function createJsHandler(options) {
3087
3110
  return created;
3088
3111
  }
3089
3112
  function getCachedJsResult(rawSource, resolvedOptions) {
3090
- if (rawSource.length === 0) {
3113
+ if (!shouldCacheJsResult(rawSource, resolvedOptions)) {
3091
3114
  return void 0;
3092
3115
  }
3093
3116
  const key = `${getOptionsFingerprint(resolvedOptions)}:${md5(rawSource)}`;
3094
3117
  return resultCache.get(key);
3095
3118
  }
3096
3119
  function setCachedJsResult(rawSource, resolvedOptions, result) {
3097
- if (rawSource.length === 0 || result.error || result.linked) {
3120
+ if (!shouldCacheJsResult(rawSource, resolvedOptions) || result.error || result.linked) {
3098
3121
  return result;
3099
3122
  }
3100
3123
  const key = `${getOptionsFingerprint(resolvedOptions)}:${md5(rawSource)}`;
@@ -3499,7 +3522,7 @@ function handleEachClassFragment(ms, tokens, options = {}) {
3499
3522
  previousEnd = token.end;
3500
3523
  }
3501
3524
  if (tokens.length > 0) {
3502
- const lastToken = tokens.at(-1);
3525
+ const lastToken = tokens[tokens.length - 1];
3503
3526
  if (lastToken.end < ms.original.length) {
3504
3527
  updateWhitespaceGap(ms, lastToken.end, ms.original.length, options);
3505
3528
  }
@@ -3842,10 +3865,11 @@ function getCompilerContext(opts) {
3842
3865
  }
3843
3866
 
3844
3867
  // src/js/precheck.ts
3868
+ import process6 from "process";
3845
3869
  var FAST_JS_TRANSFORM_HINT_RE = /className\b|class\s*=|classList\.|\b(?:twMerge|clsx|classnames|cn|cva)\b|\[["'`]class["'`]\]|text-\[|bg-\[|\b(?:[whpm]|px|py|mx|my|rounded|flex|grid|gap)-/;
3846
3870
  var DEPENDENCY_HINT_RE = /\bimport\s*[("'`{*]|\brequire\s*\(|\bexport\s+\*\s+from\s+["'`]|\bexport\s*\{[^}]*\}\s*from\s+["'`]/;
3847
3871
  function shouldSkipJsTransform(rawSource, options) {
3848
- if (process.env.WEAPP_TW_DISABLE_JS_PRECHECK === "1") {
3872
+ if (process6.env.WEAPP_TW_DISABLE_JS_PRECHECK === "1") {
3849
3873
  return false;
3850
3874
  }
3851
3875
  if (!rawSource) {
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.55.2_@types+node@24.12.2__@swc+core@1.15.32_@swc+_5ed6cbcda668e45f9f2d3d9f21b34c59/node_modules/tsup/assets/esm_shims.js
1
+ // ../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.55.2_@types+node@24.12.2__@swc+core@1.15.33_@swc+_bcceec21436c72f72b5a2f34a0f75238/node_modules/tsup/assets/esm_shims.js
2
2
  import path from "path";
3
3
  import { fileURLToPath } from "url";
4
4
  var getFilename = () => fileURLToPath(import.meta.url);