@absolutejs/absolute 0.19.0-beta.28 → 0.19.0-beta.29

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/index.js CHANGED
@@ -203852,6 +203852,7 @@ var toSafeFileName3 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
203852
203852
  }));
203853
203853
  const result = await bunBuild5({
203854
203854
  entrypoints,
203855
+ external: [...FRAMEWORK_SPECIFIERS],
203855
203856
  format: "esm",
203856
203857
  minify: false,
203857
203858
  naming: "[name].[ext]",
@@ -203861,6 +203862,29 @@ var toSafeFileName3 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
203861
203862
  throw: false
203862
203863
  });
203863
203864
  await rm7(tmpDir, { force: true, recursive: true });
203865
+ if (result.success) {
203866
+ const { readdirSync: readdirSync2, readFileSync: readFileSync10, writeFileSync: writeFileSync5 } = await import("fs");
203867
+ const { computeVendorPaths: computeVendorPaths2 } = await Promise.resolve().then(() => (init_buildReactVendor(), exports_buildReactVendor));
203868
+ const reactPaths = computeVendorPaths2();
203869
+ const files = readdirSync2(vendorDir).filter((f) => f.endsWith(".js"));
203870
+ for (const file4 of files) {
203871
+ const filePath = join14(vendorDir, file4);
203872
+ let content = readFileSync10(filePath, "utf-8");
203873
+ let changed = false;
203874
+ for (const [specifier, webPath] of Object.entries(reactPaths)) {
203875
+ const escaped = specifier.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
203876
+ const re = new RegExp(`(from\\s*["'])${escaped}(["'])`, "g");
203877
+ const newContent = content.replace(re, `$1${webPath}$2`);
203878
+ if (newContent !== content) {
203879
+ content = newContent;
203880
+ changed = true;
203881
+ }
203882
+ }
203883
+ if (changed) {
203884
+ writeFileSync5(filePath, content);
203885
+ }
203886
+ }
203887
+ }
203864
203888
  if (!result.success) {
203865
203889
  console.warn("\u26A0\uFE0F Dependency vendor build had errors:", result.logs);
203866
203890
  }
@@ -204507,5 +204531,5 @@ export {
204507
204531
  ANGULAR_INIT_TIMEOUT_MS
204508
204532
  };
204509
204533
 
204510
- //# debugId=F9A829191621141064756E2164756E21
204534
+ //# debugId=841379061E51245664756E2164756E21
204511
204535
  //# sourceMappingURL=index.js.map