@absolutejs/absolute 0.19.0-beta.135 → 0.19.0-beta.137
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 +22 -22
- package/dist/build.js.map +4 -4
- package/dist/index.js +22 -22
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -171690,7 +171690,10 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
|
|
|
171690
171690
|
if (hmr) {
|
|
171691
171691
|
for (const srcPath of urlReferencedFiles) {
|
|
171692
171692
|
const rel = relative7(projectRoot, srcPath).replace(/\\/g, "/");
|
|
171693
|
-
|
|
171693
|
+
const name = basename5(srcPath);
|
|
171694
|
+
const url = `/@src/${rel}`;
|
|
171695
|
+
urlFileMap.set(name, url);
|
|
171696
|
+
urlFileMap.set(name.replace(/\.tsx?$/, ".js"), url);
|
|
171694
171697
|
}
|
|
171695
171698
|
} else {
|
|
171696
171699
|
for (const srcPath of urlReferencedFiles) {
|
|
@@ -172265,13 +172268,6 @@ var detectFramework = (filePath, resolved) => {
|
|
|
172265
172268
|
}
|
|
172266
172269
|
return "unknown";
|
|
172267
172270
|
}, getWatchPaths = (config, resolved) => {
|
|
172268
|
-
const paths = [];
|
|
172269
|
-
const push = (base, sub) => {
|
|
172270
|
-
if (!base)
|
|
172271
|
-
return;
|
|
172272
|
-
const normalizedBase = normalizePath(base);
|
|
172273
|
-
paths.push(sub ? `${normalizedBase}/${sub}` : normalizedBase);
|
|
172274
|
-
};
|
|
172275
172271
|
const cfg = resolved ?? {
|
|
172276
172272
|
angularDir: config.angularDirectory,
|
|
172277
172273
|
assetsDir: config.assetsDirectory,
|
|
@@ -172282,18 +172278,20 @@ var detectFramework = (filePath, resolved) => {
|
|
|
172282
172278
|
svelteDir: config.svelteDirectory,
|
|
172283
172279
|
vueDir: config.vueDirectory
|
|
172284
172280
|
};
|
|
172285
|
-
|
|
172286
|
-
|
|
172287
|
-
|
|
172288
|
-
|
|
172289
|
-
|
|
172290
|
-
|
|
172291
|
-
|
|
172292
|
-
|
|
172293
|
-
|
|
172294
|
-
|
|
172295
|
-
|
|
172296
|
-
|
|
172281
|
+
const allDirs = [
|
|
172282
|
+
cfg.reactDir,
|
|
172283
|
+
cfg.svelteDir,
|
|
172284
|
+
cfg.vueDir,
|
|
172285
|
+
cfg.angularDir,
|
|
172286
|
+
cfg.htmlDir,
|
|
172287
|
+
cfg.htmxDir,
|
|
172288
|
+
cfg.assetsDir,
|
|
172289
|
+
cfg.stylesDir
|
|
172290
|
+
].filter((d) => Boolean(d)).map(normalizePath);
|
|
172291
|
+
const root = commonAncestor(allDirs);
|
|
172292
|
+
if (root)
|
|
172293
|
+
return [root];
|
|
172294
|
+
return allDirs;
|
|
172297
172295
|
}, shouldIgnorePath = (path, resolved) => {
|
|
172298
172296
|
const normalizedPath = path.replace(/\\/g, "/");
|
|
172299
172297
|
if (resolved?.stylesDir && normalizedPath.startsWith(resolved.stylesDir)) {
|
|
@@ -172301,7 +172299,9 @@ var detectFramework = (filePath, resolved) => {
|
|
|
172301
172299
|
}
|
|
172302
172300
|
return normalizedPath.includes("/build/") || normalizedPath.includes("/compiled/") || normalizedPath.includes("/indexes/") || normalizedPath.includes("/server/") || normalizedPath.includes("/client/") || normalizedPath.includes("/node_modules/") || normalizedPath.includes("/.git/") || normalizedPath.endsWith(".log") || normalizedPath.endsWith(".tmp") || normalizedPath.startsWith(".") || normalizedPath === "compiled" || normalizedPath.endsWith("/compiled") || normalizedPath.endsWith("/compiled/");
|
|
172303
172301
|
};
|
|
172304
|
-
var init_pathUtils = () => {
|
|
172302
|
+
var init_pathUtils = __esm(() => {
|
|
172303
|
+
init_commonAncestor();
|
|
172304
|
+
});
|
|
172305
172305
|
|
|
172306
172306
|
// src/dev/fileWatcher.ts
|
|
172307
172307
|
import { watch } from "fs";
|
|
@@ -205034,5 +205034,5 @@ export {
|
|
|
205034
205034
|
build
|
|
205035
205035
|
};
|
|
205036
205036
|
|
|
205037
|
-
//# debugId=
|
|
205037
|
+
//# debugId=DF6C903EF35751CA64756E2164756E21
|
|
205038
205038
|
//# sourceMappingURL=build.js.map
|