bun-plugin-stx 0.2.112 → 0.2.113
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/chunk-11kz6apt.js +10129 -0
- package/dist/serve.js +19 -1
- package/package.json +1 -1
- package/dist/chunk-bpa1j7nx.js +0 -9523
package/dist/serve.js
CHANGED
|
@@ -9338,8 +9338,26 @@ After installing: bun add bun-plugin-stx`);
|
|
|
9338
9338
|
if (crosswindLoadAttempted)
|
|
9339
9339
|
return crosswindModule;
|
|
9340
9340
|
crosswindLoadAttempted = true;
|
|
9341
|
+
let dir = process19.cwd();
|
|
9342
|
+
while (dir !== nodePath.dirname(dir)) {
|
|
9343
|
+
for (const store of ["node_modules", "pantry"]) {
|
|
9344
|
+
for (const entry of ["dist/index.js", "src/index.ts"]) {
|
|
9345
|
+
const candidate = nodePath.join(dir, store, "@cwcss", "crosswind", entry);
|
|
9346
|
+
try {
|
|
9347
|
+
if (!await Bun.file(candidate).exists())
|
|
9348
|
+
continue;
|
|
9349
|
+
const mod = await import(candidate);
|
|
9350
|
+
if (mod?.CSSGenerator) {
|
|
9351
|
+
crosswindModule = { CSSGenerator: mod.CSSGenerator, config: mod.config };
|
|
9352
|
+
return crosswindModule;
|
|
9353
|
+
}
|
|
9354
|
+
} catch {}
|
|
9355
|
+
}
|
|
9356
|
+
}
|
|
9357
|
+
dir = nodePath.dirname(dir);
|
|
9358
|
+
}
|
|
9341
9359
|
try {
|
|
9342
|
-
const mod = await import("./chunk-
|
|
9360
|
+
const mod = await import("./chunk-11kz6apt.js");
|
|
9343
9361
|
crosswindModule = { CSSGenerator: mod.CSSGenerator, config: mod.config };
|
|
9344
9362
|
return crosswindModule;
|
|
9345
9363
|
} catch {
|
package/package.json
CHANGED