@absolutejs/absolute 0.19.0-beta.133 → 0.19.0-beta.134
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 +12 -2
- package/dist/build.js.map +3 -3
- package/dist/index.js +12 -2
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -171685,12 +171685,22 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
|
|
|
171685
171685
|
...reactClientOutputPaths,
|
|
171686
171686
|
...nonReactClientOutputs.map((a) => a.path)
|
|
171687
171687
|
];
|
|
171688
|
+
const detectFramework = (outputPath) => {
|
|
171689
|
+
const relOut = relative7(buildPath, outputPath).replace(/\\/g, "/");
|
|
171690
|
+
for (const dir of frameworkDirs) {
|
|
171691
|
+
const dirName = basename5(dir);
|
|
171692
|
+
if (relOut.startsWith(dirName + "/"))
|
|
171693
|
+
return dir;
|
|
171694
|
+
}
|
|
171695
|
+
return frameworkDirs[0];
|
|
171696
|
+
};
|
|
171688
171697
|
for (const outputPath of allClientOutputPaths) {
|
|
171689
171698
|
let content = readFileSync5(outputPath, "utf-8");
|
|
171690
171699
|
let changed = false;
|
|
171700
|
+
const frameworkDir = detectFramework(outputPath);
|
|
171691
171701
|
content = content.replace(urlPattern, (_match, relPath) => {
|
|
171692
171702
|
const targetName = basename5(relPath);
|
|
171693
|
-
const workerSrc = workerEntryPoints.find((wp) => basename5(wp) === targetName);
|
|
171703
|
+
const workerSrc = workerEntryPoints.find((wp) => basename5(wp) === targetName && frameworkDir && wp.startsWith(frameworkDir)) ?? workerEntryPoints.find((wp) => basename5(wp) === targetName);
|
|
171694
171704
|
if (workerSrc) {
|
|
171695
171705
|
const rel = relative7(projectRoot, workerSrc);
|
|
171696
171706
|
changed = true;
|
|
@@ -205073,5 +205083,5 @@ export {
|
|
|
205073
205083
|
build
|
|
205074
205084
|
};
|
|
205075
205085
|
|
|
205076
|
-
//# debugId=
|
|
205086
|
+
//# debugId=F563E4A89E8B268864756E2164756E21
|
|
205077
205087
|
//# sourceMappingURL=build.js.map
|