@absolutejs/absolute 0.19.0-beta.20 → 0.19.0-beta.21
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/.absolutejs/tsconfig.tsbuildinfo +1 -1
- package/dist/build.js +13 -2
- package/dist/build.js.map +4 -4
- package/dist/index.js +27 -2
- package/dist/index.js.map +5 -5
- package/native/packages/darwin-arm64/fast_ops.dylib +0 -0
- package/native/packages/darwin-arm64/package.json +1 -1
- package/native/packages/darwin-x64/fast_ops.dylib +0 -0
- package/native/packages/darwin-x64/package.json +1 -1
- package/native/packages/linux-arm64/package.json +1 -1
- package/native/packages/linux-x64/fast_ops.so +0 -0
- package/native/packages/linux-x64/package.json +1 -1
- package/package.json +5 -5
- package/run-patched.sh +0 -5
package/dist/index.js
CHANGED
|
@@ -171546,7 +171546,7 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
|
|
|
171546
171546
|
if (!options?.preserveIntermediateFiles)
|
|
171547
171547
|
await cleanup({
|
|
171548
171548
|
angularDir,
|
|
171549
|
-
reactIndexesPath,
|
|
171549
|
+
reactIndexesPath: hmr ? undefined : reactIndexesPath,
|
|
171550
171550
|
svelteDir,
|
|
171551
171551
|
vueDir
|
|
171552
171552
|
});
|
|
@@ -202213,6 +202213,17 @@ var SRC_PREFIX = "/@src/", jsTranspiler2, TRANSPILABLE, REACT_EXTENSIONS, escape
|
|
|
202213
202213
|
}
|
|
202214
202214
|
return `${prefix}${SRC_PREFIX}${srcPath.replace(/\\/g, "/")}${suffix}`;
|
|
202215
202215
|
});
|
|
202216
|
+
result = result.replace(/((?:from|import)\s*["'])(\/[^"']+\.(tsx?|jsx?|ts))(["'])/g, (_match, prefix, absPath, _ext, suffix) => {
|
|
202217
|
+
if (absPath.startsWith(projectRoot)) {
|
|
202218
|
+
const rel2 = relative6(projectRoot, absPath).replace(/\\/g, "/");
|
|
202219
|
+
return `${prefix}${SRC_PREFIX}${rel2}${suffix}`;
|
|
202220
|
+
}
|
|
202221
|
+
const rel = relative6(projectRoot, absPath).replace(/\\/g, "/");
|
|
202222
|
+
if (!rel.startsWith("..")) {
|
|
202223
|
+
return `${prefix}${SRC_PREFIX}${rel}${suffix}`;
|
|
202224
|
+
}
|
|
202225
|
+
return _match;
|
|
202226
|
+
});
|
|
202216
202227
|
return result;
|
|
202217
202228
|
}, HOOK_NAMES, REFRESH_PREAMBLE, JSX_AUTO_RE, JSXS_AUTO_RE, JSX_PROD_RE, FRAGMENT_RE, addJsxImport = (code) => {
|
|
202218
202229
|
const imports = [];
|
|
@@ -204130,6 +204141,20 @@ var prepare = async (configOrPath) => {
|
|
|
204130
204141
|
vendorPaths: allVendorPaths
|
|
204131
204142
|
});
|
|
204132
204143
|
const hmrPlugin = hmr2(result.hmrState, result.manifest, moduleHandler);
|
|
204144
|
+
const { SRC_URL_PREFIX: SRC_URL_PREFIX2 } = await Promise.resolve().then(() => (init_moduleServer(), exports_moduleServer));
|
|
204145
|
+
const reactDir = config.reactDirectory;
|
|
204146
|
+
if (reactDir) {
|
|
204147
|
+
const { relative: relPath } = await import("path");
|
|
204148
|
+
const indexesDir = resolve22(reactDir, "indexes");
|
|
204149
|
+
for (const [key, value] of Object.entries(result.manifest)) {
|
|
204150
|
+
if (key.endsWith("Index") && typeof value === "string" && value.includes("/indexes/")) {
|
|
204151
|
+
const fileName = key.replace(/Index$/, "") + ".tsx";
|
|
204152
|
+
const srcPath = resolve22(indexesDir, fileName);
|
|
204153
|
+
const rel = relPath(process.cwd(), srcPath).replace(/\\/g, "/");
|
|
204154
|
+
result.manifest[key] = `${SRC_URL_PREFIX2}${rel}`;
|
|
204155
|
+
}
|
|
204156
|
+
}
|
|
204157
|
+
}
|
|
204133
204158
|
return {
|
|
204134
204159
|
manifest: result.manifest,
|
|
204135
204160
|
absolutejs: (app) => hmrPlugin(app.use(staticPlugin2({ assets: buildDir, prefix: "" })))
|
|
@@ -204296,5 +204321,5 @@ export {
|
|
|
204296
204321
|
ANGULAR_INIT_TIMEOUT_MS
|
|
204297
204322
|
};
|
|
204298
204323
|
|
|
204299
|
-
//# debugId=
|
|
204324
|
+
//# debugId=95A71A3BF45766F864756E2164756E21
|
|
204300
204325
|
//# sourceMappingURL=index.js.map
|