@absolutejs/absolute 0.19.0-beta.207 → 0.19.0-beta.209

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
@@ -174172,6 +174172,15 @@ ${stubs}
174172
174172
  const stubReplace = (_match, prefix, specifier, suffix) => {
174173
174173
  if (specifier.startsWith("/") || specifier.startsWith("."))
174174
174174
  return _match;
174175
+ if (specifier.startsWith("@absolutejs/absolute/")) {
174176
+ try {
174177
+ const resolved = __require.resolve(specifier, { paths: [projectRoot] });
174178
+ const browserPath = resolved.replace(/\/index\.js$/, "/browser/index.js");
174179
+ const target = existsSync18(browserPath) ? browserPath : resolved;
174180
+ const rel = relative8(projectRoot, target);
174181
+ return `${prefix}/@src/${rel}${suffix}`;
174182
+ } catch {}
174183
+ }
174175
174184
  return `${prefix}/@stub/${encodeURIComponent(specifier)}${suffix}`;
174176
174185
  };
174177
174186
  result = result.replace(/^((?:import\s+.+?\s+from|export\s+.+?\s+from|import)\s*["'])([^"'./][^"']*)(["'])/gm, stubReplace);
@@ -177977,5 +177986,5 @@ export {
177977
177986
  ANGULAR_INIT_TIMEOUT_MS
177978
177987
  };
177979
177988
 
177980
- //# debugId=53451457F7BE04B564756E2164756E21
177989
+ //# debugId=DDF85FFD8302F95364756E2164756E21
177981
177990
  //# sourceMappingURL=index.js.map