tailwind-styled-v4 5.0.40 → 5.0.411

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 (101) hide show
  1. package/dist/analyzer.js +43 -16
  2. package/dist/analyzer.js.map +1 -1
  3. package/dist/analyzer.mjs +104 -72
  4. package/dist/analyzer.mjs.map +1 -1
  5. package/dist/animate.js +33 -7
  6. package/dist/animate.js.map +1 -1
  7. package/dist/animate.mjs +55 -22
  8. package/dist/animate.mjs.map +1 -1
  9. package/dist/atomic.js +39 -10
  10. package/dist/atomic.js.map +1 -1
  11. package/dist/atomic.mjs +56 -23
  12. package/dist/atomic.mjs.map +1 -1
  13. package/dist/cli.js +222 -38
  14. package/dist/cli.js.map +1 -1
  15. package/dist/cli.mjs +321 -203
  16. package/dist/cli.mjs.map +1 -1
  17. package/dist/compiler.js +57 -14
  18. package/dist/compiler.js.map +1 -1
  19. package/dist/compiler.mjs +71 -28
  20. package/dist/compiler.mjs.map +1 -1
  21. package/dist/dashboard.js +0 -1
  22. package/dist/dashboard.js.map +1 -1
  23. package/dist/devtools.js +16 -2
  24. package/dist/devtools.js.map +1 -1
  25. package/dist/devtools.mjs +21 -2
  26. package/dist/devtools.mjs.map +1 -1
  27. package/dist/engine.js +141 -51
  28. package/dist/engine.js.map +1 -1
  29. package/dist/engine.mjs +238 -148
  30. package/dist/engine.mjs.map +1 -1
  31. package/dist/index.js +50 -8
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.mjs +74 -29
  34. package/dist/index.mjs.map +1 -1
  35. package/dist/next.js +98 -37
  36. package/dist/next.js.map +1 -1
  37. package/dist/next.mjs +177 -115
  38. package/dist/next.mjs.map +1 -1
  39. package/dist/plugin-api.js +0 -1
  40. package/dist/plugin-api.js.map +1 -1
  41. package/dist/plugin-registry.js +6 -2
  42. package/dist/plugin-registry.js.map +1 -1
  43. package/dist/plugin-registry.mjs +9 -2
  44. package/dist/plugin-registry.mjs.map +1 -1
  45. package/dist/plugin.js +0 -1
  46. package/dist/plugin.js.map +1 -1
  47. package/dist/preset.js +0 -1
  48. package/dist/preset.js.map +1 -1
  49. package/dist/rspack.js +89 -6
  50. package/dist/rspack.js.map +1 -1
  51. package/dist/rspack.mjs +39 -18
  52. package/dist/rspack.mjs.map +1 -1
  53. package/dist/runtime-css.js +0 -1
  54. package/dist/runtime-css.js.map +1 -1
  55. package/dist/runtime.js +0 -1
  56. package/dist/runtime.js.map +1 -1
  57. package/dist/scanner.js +29 -11
  58. package/dist/scanner.js.map +1 -1
  59. package/dist/scanner.mjs +84 -61
  60. package/dist/scanner.mjs.map +1 -1
  61. package/dist/shared.js +91 -35
  62. package/dist/shared.js.map +1 -1
  63. package/dist/shared.mjs +122 -64
  64. package/dist/shared.mjs.map +1 -1
  65. package/dist/storybook-addon.js +0 -1
  66. package/dist/storybook-addon.js.map +1 -1
  67. package/dist/svelte.js +40 -8
  68. package/dist/svelte.js.map +1 -1
  69. package/dist/svelte.mjs +57 -28
  70. package/dist/svelte.mjs.map +1 -1
  71. package/dist/syntax.js +7 -3
  72. package/dist/syntax.js.map +1 -1
  73. package/dist/syntax.mjs +30 -23
  74. package/dist/syntax.mjs.map +1 -1
  75. package/dist/testing.js +0 -1
  76. package/dist/testing.js.map +1 -1
  77. package/dist/theme.js +23 -5
  78. package/dist/theme.js.map +1 -1
  79. package/dist/theme.mjs +41 -17
  80. package/dist/theme.mjs.map +1 -1
  81. package/dist/turbopackLoader.js +58 -14
  82. package/dist/turbopackLoader.js.map +1 -1
  83. package/dist/turbopackLoader.mjs +89 -45
  84. package/dist/turbopackLoader.mjs.map +1 -1
  85. package/dist/tw.js +224 -38
  86. package/dist/tw.js.map +1 -1
  87. package/dist/tw.mjs +321 -203
  88. package/dist/tw.mjs.map +1 -1
  89. package/dist/vite.js +132 -50
  90. package/dist/vite.js.map +1 -1
  91. package/dist/vite.mjs +226 -143
  92. package/dist/vite.mjs.map +1 -1
  93. package/dist/vue.js +40 -8
  94. package/dist/vue.js.map +1 -1
  95. package/dist/vue.mjs +57 -28
  96. package/dist/vue.mjs.map +1 -1
  97. package/dist/webpackLoader.js +40 -10
  98. package/dist/webpackLoader.js.map +1 -1
  99. package/dist/webpackLoader.mjs +59 -27
  100. package/dist/webpackLoader.mjs.map +1 -1
  101. package/package.json +1 -1
package/dist/scanner.mjs CHANGED
@@ -20,11 +20,25 @@ var __copyProps = (to, from, except, desc) => {
20
20
  };
21
21
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
22
 
23
+ // node_modules/tsup/assets/esm_shims.js
24
+ import path from "path";
25
+ import { fileURLToPath } from "url";
26
+ var getFilename, getDirname, __dirname, __filename;
27
+ var init_esm_shims = __esm({
28
+ "node_modules/tsup/assets/esm_shims.js"() {
29
+ "use strict";
30
+ getFilename = () => fileURLToPath(import.meta.url);
31
+ getDirname = () => path.dirname(getFilename());
32
+ __dirname = /* @__PURE__ */ getDirname();
33
+ __filename = /* @__PURE__ */ getFilename();
34
+ }
35
+ });
36
+
23
37
  // packages/domain/shared/src/index.ts
24
38
  import { createHash } from "crypto";
25
39
  import fs from "fs";
26
- import path from "path";
27
- import { fileURLToPath } from "url";
40
+ import path2 from "path";
41
+ import { fileURLToPath as fileURLToPath2 } from "url";
28
42
  import { createRequire } from "module";
29
43
  function createLogger(namespace) {
30
44
  const prefix = `[${namespace}]`;
@@ -55,9 +69,9 @@ function createDebugLogger(namespace, label) {
55
69
  }
56
70
  };
57
71
  }
58
- function formatIssuePath(path6) {
59
- if (!path6 || path6.length === 0) return "(root)";
60
- return path6.map(
72
+ function formatIssuePath(path7) {
73
+ if (!path7 || path7.length === 0) return "(root)";
74
+ return path7.map(
61
75
  (segment) => typeof segment === "symbol" ? segment.description ?? segment.toString() : String(segment)
62
76
  ).join(".");
63
77
  }
@@ -65,7 +79,7 @@ function loadNativeBinding(options) {
65
79
  const { runtimeDir, candidates, isValid } = options;
66
80
  const loadErrors = [];
67
81
  for (const candidate of candidates) {
68
- const candidatePath = path.resolve(runtimeDir, candidate);
82
+ const candidatePath = path2.resolve(runtimeDir, candidate);
69
83
  try {
70
84
  if (!fs.existsSync(candidatePath) && !fs.existsSync(candidatePath + ".node")) {
71
85
  continue;
@@ -110,15 +124,15 @@ function resolveNativeBindingCandidates(options) {
110
124
  const BINARY_NAMES = ["tailwind-styled-native", "tailwind_styled_parser"];
111
125
  const napiPlatform = process.platform === "linux" && process.arch === "x64" ? "linux-x64-gnu" : process.platform === "linux" && process.arch === "arm64" ? "linux-arm64-gnu" : `${process.platform}-${process.arch}`;
112
126
  for (const bin of BINARY_NAMES) {
113
- candidates.push(path.resolve(runtimeDir, `${bin}.node`));
114
- candidates.push(path.resolve(runtimeDir, `${bin}.${napiPlatform}.node`));
115
- candidates.push(path.resolve(runtimeDir, "..", "native", `${bin}.node`));
116
- candidates.push(path.resolve(runtimeDir, "..", "native", `${bin}.${napiPlatform}.node`));
117
- candidates.push(path.resolve(process.cwd(), "native", `${bin}.node`));
118
- candidates.push(path.resolve(process.cwd(), "native", `${bin}.${napiPlatform}.node`));
119
- candidates.push(path.resolve(runtimeDir, "..", "..", "..", "..", "native", `${bin}.node`));
120
- candidates.push(path.resolve(runtimeDir, "..", "..", "..", "..", "native", `${bin}.${napiPlatform}.node`));
121
- candidates.push(path.resolve(runtimeDir, "..", "..", "..", "native", `${bin}.node`));
127
+ candidates.push(path2.resolve(runtimeDir, `${bin}.node`));
128
+ candidates.push(path2.resolve(runtimeDir, `${bin}.${napiPlatform}.node`));
129
+ candidates.push(path2.resolve(runtimeDir, "..", "native", `${bin}.node`));
130
+ candidates.push(path2.resolve(runtimeDir, "..", "native", `${bin}.${napiPlatform}.node`));
131
+ candidates.push(path2.resolve(process.cwd(), "native", `${bin}.node`));
132
+ candidates.push(path2.resolve(process.cwd(), "native", `${bin}.${napiPlatform}.node`));
133
+ candidates.push(path2.resolve(runtimeDir, "..", "..", "..", "..", "native", `${bin}.node`));
134
+ candidates.push(path2.resolve(runtimeDir, "..", "..", "..", "..", "native", `${bin}.${napiPlatform}.node`));
135
+ candidates.push(path2.resolve(runtimeDir, "..", "..", "..", "native", `${bin}.node`));
122
136
  }
123
137
  return Array.from(new Set(candidates));
124
138
  }
@@ -126,6 +140,7 @@ var TwError, _require;
126
140
  var init_src = __esm({
127
141
  "packages/domain/shared/src/index.ts"() {
128
142
  "use strict";
143
+ init_esm_shims();
129
144
  TwError = class _TwError extends Error {
130
145
  /** @deprecated Gunakan source */
131
146
  domain;
@@ -159,8 +174,8 @@ var init_src = __esm({
159
174
  /** Buat TwError dari ZodError — dukung shape Zod v3 (`errors`) dan v4 (`issues`). */
160
175
  static fromZod(err) {
161
176
  const first = err.issues?.[0] ?? err.errors?.[0];
162
- const path6 = formatIssuePath(first?.path);
163
- const message = first ? `${path6}: ${first.message}` : "Schema validation failed";
177
+ const path7 = formatIssuePath(first?.path);
178
+ const message = first ? `${path7}: ${first.message}` : "Schema validation failed";
164
179
  return new _TwError("validation", "SCHEMA_VALIDATION_FAILED", message, err);
165
180
  }
166
181
  static wrap(source, code, err) {
@@ -213,14 +228,14 @@ __export(native_bridge_exports, {
213
228
  startWatchNative: () => startWatchNative,
214
229
  stopWatchNative: () => stopWatchNative
215
230
  });
216
- import path2 from "path";
217
- import { fileURLToPath as fileURLToPath2 } from "url";
218
- function getDirname() {
231
+ import path3 from "path";
232
+ import { fileURLToPath as fileURLToPath3 } from "url";
233
+ function getDirname2() {
219
234
  if (typeof __dirname !== "undefined") {
220
235
  return __dirname;
221
236
  }
222
237
  if (typeof import.meta !== "undefined" && import.meta.url) {
223
- return path2.dirname(fileURLToPath2(import.meta.url));
238
+ return path3.dirname(fileURLToPath3(import.meta.url));
224
239
  }
225
240
  return process.cwd();
226
241
  }
@@ -429,6 +444,7 @@ var log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader,
429
444
  var init_native_bridge = __esm({
430
445
  "packages/domain/scanner/src/native-bridge.ts"() {
431
446
  "use strict";
447
+ init_esm_shims();
432
448
  init_src();
433
449
  log = createDebugLogger("scanner:native");
434
450
  isValidScannerBinding = (module) => {
@@ -471,7 +487,7 @@ var init_native_bridge = __esm({
471
487
  }
472
488
  return throwNativeBindingError();
473
489
  }
474
- const runtimeDir = getDirname();
490
+ const runtimeDir = getDirname2();
475
491
  const candidates = resolveNativeBindingCandidates({
476
492
  runtimeDir,
477
493
  includeDefaultCandidates: true
@@ -510,26 +526,31 @@ var init_native_bridge = __esm({
510
526
  }
511
527
  });
512
528
 
529
+ // src/umbrella/scanner.ts
530
+ init_esm_shims();
531
+
513
532
  // packages/domain/scanner/src/index.ts
533
+ init_esm_shims();
514
534
  init_src();
515
535
  import fs3 from "fs";
516
536
  import { createRequire as createRequire2 } from "module";
517
- import path5 from "path";
518
- import { fileURLToPath as fileURLToPath4 } from "url";
537
+ import path6 from "path";
538
+ import { fileURLToPath as fileURLToPath5 } from "url";
519
539
  import { Worker as Worker2 } from "worker_threads";
520
540
 
521
541
  // packages/domain/scanner/src/cache-native.ts
542
+ init_esm_shims();
522
543
  init_native_bridge();
523
544
  import fs2 from "fs";
524
- import path3 from "path";
545
+ import path4 from "path";
525
546
  function defaultCachePath(rootDir, cacheDir) {
526
- const dir = cacheDir ? path3.resolve(rootDir, cacheDir) : path3.join(process.cwd(), ".cache", "tailwind-styled");
527
- return path3.join(dir, "scanner-cache.json");
547
+ const dir = cacheDir ? path4.resolve(rootDir, cacheDir) : path4.join(process.cwd(), ".cache", "tailwind-styled");
548
+ return path4.join(dir, "scanner-cache.json");
528
549
  }
529
550
  var STALE_THRESHOLD_MS = 7 * 24 * 60 * 60 * 1e3;
530
551
  function readCache(rootDir, cacheDir) {
531
552
  const cachePath = defaultCachePath(rootDir, cacheDir);
532
- fs2.mkdirSync(path3.dirname(cachePath), { recursive: true });
553
+ fs2.mkdirSync(path4.dirname(cachePath), { recursive: true });
533
554
  const result = cacheReadNative(cachePath);
534
555
  if (!result) return [];
535
556
  return result.entries.map((e) => ({
@@ -544,7 +565,7 @@ function readCache(rootDir, cacheDir) {
544
565
  }
545
566
  function writeCache(rootDir, entries, cacheDir) {
546
567
  const cachePath = defaultCachePath(rootDir, cacheDir);
547
- fs2.mkdirSync(path3.dirname(cachePath), { recursive: true });
568
+ fs2.mkdirSync(path4.dirname(cachePath), { recursive: true });
548
569
  const success = cacheWriteNative(cachePath, entries);
549
570
  if (!success) {
550
571
  throw new Error(
@@ -568,10 +589,11 @@ function filePriority(mtimeMs, size, cached, nowMs = Date.now()) {
568
589
  init_native_bridge();
569
590
 
570
591
  // packages/domain/scanner/src/parallel-scanner.ts
592
+ init_esm_shims();
571
593
  import { Worker, isMainThread, parentPort, workerData } from "worker_threads";
572
- import path4 from "path";
594
+ import path5 from "path";
573
595
  import { availableParallelism } from "os";
574
- import { fileURLToPath as fileURLToPath3 } from "url";
596
+ import { fileURLToPath as fileURLToPath4 } from "url";
575
597
  init_native_bridge();
576
598
  var PARALLEL_THRESHOLD = 50;
577
599
  var DEFAULT_CHUNK_SIZE = 150;
@@ -604,7 +626,7 @@ if (!isMainThread && parentPort) {
604
626
  parentPort.postMessage(msg);
605
627
  }
606
628
  }
607
- var _workerFilename = typeof __filename !== "undefined" ? __filename : fileURLToPath3(import.meta.url);
629
+ var _workerFilename = typeof __filename !== "undefined" ? __filename : fileURLToPath4(import.meta.url);
608
630
  function runChunkInWorker(filePaths) {
609
631
  return new Promise((resolve, reject) => {
610
632
  const worker = new Worker(_workerFilename, {
@@ -630,7 +652,7 @@ async function scanWorkspaceParallel(rootDir, options = {}) {
630
652
  maxWorkers = Math.max(1, availableParallelism() - 1),
631
653
  chunkSize = DEFAULT_CHUNK_SIZE
632
654
  } = options;
633
- const files = collectFiles(path4.resolve(rootDir), extensions, ignoreDirs);
655
+ const files = collectFiles(path5.resolve(rootDir), extensions, ignoreDirs);
634
656
  if (files.length < PARALLEL_THRESHOLD) {
635
657
  return mergeResults(batchExtractClassesNative(files));
636
658
  }
@@ -648,14 +670,15 @@ async function scanWorkspaceParallel(rootDir, options = {}) {
648
670
  }
649
671
 
650
672
  // packages/domain/scanner/src/schemas.ts
673
+ init_esm_shims();
651
674
  init_src();
652
675
  import { z } from "zod";
653
- var formatIssuePath2 = (path6) => path6.length > 0 ? path6.map(
676
+ var formatIssuePath2 = (path7) => path7.length > 0 ? path7.map(
654
677
  (segment) => typeof segment === "symbol" ? segment.description ?? segment.toString() : String(segment)
655
678
  ).join(".") : "<root>";
656
679
  var formatIssues = (error) => error.issues.map((issue) => {
657
- const path6 = formatIssuePath2(issue.path);
658
- return `${path6}: ${issue.message}`;
680
+ const path7 = formatIssuePath2(issue.path);
681
+ return `${path7}: ${issue.message}`;
659
682
  }).join("; ");
660
683
  var parseWithSchema = (schema, data, label) => {
661
684
  const parsed = schema.safeParse(data);
@@ -718,7 +741,7 @@ function getRuntimeDir() {
718
741
  return __dirname;
719
742
  }
720
743
  if (typeof import.meta !== "undefined" && import.meta.url) {
721
- return path5.dirname(fileURLToPath4(import.meta.url));
744
+ return path6.dirname(fileURLToPath5(import.meta.url));
722
745
  }
723
746
  return process.cwd();
724
747
  }
@@ -733,7 +756,7 @@ var createNativeParserLoader = () => {
733
756
  const loadNativeParserBinding = () => {
734
757
  if (_state.binding !== void 0) return _state.binding;
735
758
  const runtimeDir = getRuntimeDir();
736
- const req = createRequire2(path5.join(runtimeDir, "noop.cjs"));
759
+ const req = createRequire2(path6.join(runtimeDir, "noop.cjs"));
737
760
  const _platform = process.platform;
738
761
  const _arch = process.arch;
739
762
  const _platformArch = `${_platform}-${_arch}`;
@@ -741,27 +764,27 @@ var createNativeParserLoader = () => {
741
764
  const candidates = [
742
765
  // ── binaryName baru: tailwind-styled-native (napi-rs naming) ──
743
766
  // cwd = repo root saat run dari root, atau package dir saat workspaces
744
- path5.resolve(process.cwd(), "native", "tailwind-styled-native.node"),
745
- path5.resolve(process.cwd(), "native", `tailwind-styled-native.${_platformArch}.node`),
746
- path5.resolve(process.cwd(), "native", `tailwind-styled-native.${_platformArchGnu}.node`),
767
+ path6.resolve(process.cwd(), "native", "tailwind-styled-native.node"),
768
+ path6.resolve(process.cwd(), "native", `tailwind-styled-native.${_platformArch}.node`),
769
+ path6.resolve(process.cwd(), "native", `tailwind-styled-native.${_platformArchGnu}.node`),
747
770
  // runtimeDir = dist/ → naik 1 level ke package root (npm install case)
748
771
  // e.g. node_modules/tailwind-styled-v4/dist/ → node_modules/tailwind-styled-v4/native/
749
- path5.resolve(runtimeDir, "..", "native", "tailwind-styled-native.node"),
750
- path5.resolve(runtimeDir, "..", "native", `tailwind-styled-native.${_platformArch}.node`),
751
- path5.resolve(runtimeDir, "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
772
+ path6.resolve(runtimeDir, "..", "native", "tailwind-styled-native.node"),
773
+ path6.resolve(runtimeDir, "..", "native", `tailwind-styled-native.${_platformArch}.node`),
774
+ path6.resolve(runtimeDir, "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
752
775
  // runtimeDir = dist/ → naik 4 level ke repo root (monorepo dev case)
753
- path5.resolve(runtimeDir, "..", "..", "..", "..", "native", "tailwind-styled-native.node"),
754
- path5.resolve(runtimeDir, "..", "..", "..", "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
776
+ path6.resolve(runtimeDir, "..", "..", "..", "..", "native", "tailwind-styled-native.node"),
777
+ path6.resolve(runtimeDir, "..", "..", "..", "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
755
778
  // 3 level fallback (jika package di-nest lebih dangkal)
756
- path5.resolve(runtimeDir, "..", "..", "..", "native", "tailwind-styled-native.node"),
757
- path5.resolve(runtimeDir, "..", "..", "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
779
+ path6.resolve(runtimeDir, "..", "..", "..", "native", "tailwind-styled-native.node"),
780
+ path6.resolve(runtimeDir, "..", "..", "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
758
781
  // ── binaryName lama: tailwind_styled_parser (backward compat) ──
759
- path5.resolve(process.cwd(), "native/tailwind_styled_parser.node"),
760
- path5.resolve(process.cwd(), "native/build/Release/tailwind_styled_parser.node"),
761
- path5.resolve(runtimeDir, "..", "native", "tailwind_styled_parser.node"),
762
- path5.resolve(runtimeDir, "..", "..", "..", "..", "native", "tailwind_styled_parser.node"),
763
- path5.resolve(runtimeDir, "..", "..", "..", "native", "tailwind_styled_parser.node"),
764
- path5.resolve(
782
+ path6.resolve(process.cwd(), "native/tailwind_styled_parser.node"),
783
+ path6.resolve(process.cwd(), "native/build/Release/tailwind_styled_parser.node"),
784
+ path6.resolve(runtimeDir, "..", "native", "tailwind_styled_parser.node"),
785
+ path6.resolve(runtimeDir, "..", "..", "..", "..", "native", "tailwind_styled_parser.node"),
786
+ path6.resolve(runtimeDir, "..", "..", "..", "native", "tailwind_styled_parser.node"),
787
+ path6.resolve(
765
788
  runtimeDir,
766
789
  "..",
767
790
  "..",
@@ -809,14 +832,14 @@ function resolveScannerWorkerModulePath() {
809
832
  return __dirname;
810
833
  }
811
834
  if (typeof import.meta !== "undefined" && import.meta.url) {
812
- return path5.dirname(fileURLToPath4(import.meta.url));
835
+ return path6.dirname(fileURLToPath5(import.meta.url));
813
836
  }
814
837
  return process.cwd();
815
838
  })();
816
839
  const candidates = [
817
- path5.resolve(runtimeDir, "worker.cjs"),
818
- path5.resolve(runtimeDir, "worker.js"),
819
- path5.resolve(runtimeDir, "worker.ts")
840
+ path6.resolve(runtimeDir, "worker.cjs"),
841
+ path6.resolve(runtimeDir, "worker.js"),
842
+ path6.resolve(runtimeDir, "worker.ts")
820
843
  ];
821
844
  for (const candidate of candidates) {
822
845
  if (fs3.existsSync(candidate)) return candidate;
@@ -882,13 +905,13 @@ function collectCandidates(rootDir, ignoreDirectories, extensionSet) {
882
905
  }
883
906
  })();
884
907
  for (const entry of entries) {
885
- const fullPath = path5.join(currentDir, entry.name);
908
+ const fullPath = path6.join(currentDir, entry.name);
886
909
  if (entry.isDirectory()) {
887
910
  if (!ignoreDirectories.has(entry.name)) directories.push(fullPath);
888
911
  continue;
889
912
  }
890
913
  if (!entry.isFile()) continue;
891
- if (!extensionSet.has(path5.extname(entry.name))) continue;
914
+ if (!extensionSet.has(path6.extname(entry.name))) continue;
892
915
  candidates.push(fullPath);
893
916
  }
894
917
  }
@@ -915,7 +938,7 @@ function scanSource(source) {
915
938
  );
916
939
  }
917
940
  function isScannableFile2(filePath, includeExtensions = DEFAULT_EXTENSIONS) {
918
- return includeExtensions.includes(path5.extname(filePath));
941
+ return includeExtensions.includes(path6.extname(filePath));
919
942
  }
920
943
  function scanFile(filePath) {
921
944
  const { scanFileNative: scanFileNative2 } = (init_native_bridge(), __toCommonJS(native_bridge_exports));