@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/index.js
CHANGED
|
@@ -171764,12 +171764,22 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
|
|
|
171764
171764
|
...reactClientOutputPaths,
|
|
171765
171765
|
...nonReactClientOutputs.map((a) => a.path)
|
|
171766
171766
|
];
|
|
171767
|
+
const detectFramework = (outputPath) => {
|
|
171768
|
+
const relOut = relative7(buildPath, outputPath).replace(/\\/g, "/");
|
|
171769
|
+
for (const dir of frameworkDirs) {
|
|
171770
|
+
const dirName = basename5(dir);
|
|
171771
|
+
if (relOut.startsWith(dirName + "/"))
|
|
171772
|
+
return dir;
|
|
171773
|
+
}
|
|
171774
|
+
return frameworkDirs[0];
|
|
171775
|
+
};
|
|
171767
171776
|
for (const outputPath of allClientOutputPaths) {
|
|
171768
171777
|
let content = readFileSync5(outputPath, "utf-8");
|
|
171769
171778
|
let changed = false;
|
|
171779
|
+
const frameworkDir = detectFramework(outputPath);
|
|
171770
171780
|
content = content.replace(urlPattern, (_match, relPath) => {
|
|
171771
171781
|
const targetName = basename5(relPath);
|
|
171772
|
-
const workerSrc = workerEntryPoints.find((wp) => basename5(wp) === targetName);
|
|
171782
|
+
const workerSrc = workerEntryPoints.find((wp) => basename5(wp) === targetName && frameworkDir && wp.startsWith(frameworkDir)) ?? workerEntryPoints.find((wp) => basename5(wp) === targetName);
|
|
171773
171783
|
if (workerSrc) {
|
|
171774
171784
|
const rel = relative7(projectRoot, workerSrc);
|
|
171775
171785
|
changed = true;
|
|
@@ -205735,5 +205745,5 @@ export {
|
|
|
205735
205745
|
ANGULAR_INIT_TIMEOUT_MS
|
|
205736
205746
|
};
|
|
205737
205747
|
|
|
205738
|
-
//# debugId=
|
|
205748
|
+
//# debugId=0752DF2B88DFF98D64756E2164756E21
|
|
205739
205749
|
//# sourceMappingURL=index.js.map
|