@absolutejs/absolute 0.19.0-beta.208 → 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/build.js +10 -1
- package/dist/build.js.map +3 -3
- package/dist/index.js +10 -1
- package/dist/index.js.map +3 -3
- package/dist/react/components/browser/index.js +737 -0
- package/package.json +2 -1
- package/scripts/build.ts +15 -0
package/dist/build.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);
|
|
@@ -176707,5 +176716,5 @@ export {
|
|
|
176707
176716
|
build
|
|
176708
176717
|
};
|
|
176709
176718
|
|
|
176710
|
-
//# debugId=
|
|
176719
|
+
//# debugId=7487F7C5A029983564756E2164756E21
|
|
176711
176720
|
//# sourceMappingURL=build.js.map
|