@absolutejs/absolute 0.19.0-beta.129 → 0.19.0-beta.130
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 +29 -21
- package/dist/build.js.map +3 -3
- package/dist/index.js +29 -21
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
- package/dist/dev/client/constants.ts +0 -25
- package/dist/dev/client/cssUtils.ts +0 -305
- package/dist/dev/client/domDiff.ts +0 -225
- package/dist/dev/client/domState.ts +0 -420
- package/dist/dev/client/domTracker.ts +0 -60
- package/dist/dev/client/errorOverlay.ts +0 -183
- package/dist/dev/client/frameworkDetect.ts +0 -62
- package/dist/dev/client/handlers/angular.ts +0 -551
- package/dist/dev/client/handlers/angularRuntime.ts +0 -205
- package/dist/dev/client/handlers/html.ts +0 -361
- package/dist/dev/client/handlers/htmx.ts +0 -274
- package/dist/dev/client/handlers/react.ts +0 -107
- package/dist/dev/client/handlers/rebuild.ts +0 -152
- package/dist/dev/client/handlers/svelte.ts +0 -328
- package/dist/dev/client/handlers/vue.ts +0 -266
- package/dist/dev/client/headPatch.ts +0 -232
- package/dist/dev/client/hmrClient.ts +0 -250
- package/dist/dev/client/moduleVersions.ts +0 -61
- package/dist/dev/client/reactRefreshSetup.ts +0 -34
package/dist/index.js
CHANGED
|
@@ -9944,7 +9944,7 @@ ${lanes.join(`
|
|
|
9944
9944
|
return process.memoryUsage().heapUsed;
|
|
9945
9945
|
},
|
|
9946
9946
|
getFileSize(path) {
|
|
9947
|
-
const stat2 =
|
|
9947
|
+
const stat2 = statSync2(path);
|
|
9948
9948
|
if (stat2 == null ? undefined : stat2.isFile()) {
|
|
9949
9949
|
return stat2.size;
|
|
9950
9950
|
}
|
|
@@ -9987,7 +9987,7 @@ ${lanes.join(`
|
|
|
9987
9987
|
}
|
|
9988
9988
|
};
|
|
9989
9989
|
return nodeSystem;
|
|
9990
|
-
function
|
|
9990
|
+
function statSync2(path) {
|
|
9991
9991
|
try {
|
|
9992
9992
|
return _fs.statSync(path, statSyncOptions);
|
|
9993
9993
|
} catch {
|
|
@@ -10039,7 +10039,7 @@ ${lanes.join(`
|
|
|
10039
10039
|
activeSession.post("Profiler.stop", (err, { profile }) => {
|
|
10040
10040
|
var _a;
|
|
10041
10041
|
if (!err) {
|
|
10042
|
-
if ((_a =
|
|
10042
|
+
if ((_a = statSync2(profilePath)) == null ? undefined : _a.isDirectory()) {
|
|
10043
10043
|
profilePath = _path.join(profilePath, `${(/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-")}+P${process.pid}.cpuprofile`);
|
|
10044
10044
|
}
|
|
10045
10045
|
try {
|
|
@@ -10148,7 +10148,7 @@ ${lanes.join(`
|
|
|
10148
10148
|
let stat2;
|
|
10149
10149
|
if (typeof dirent === "string" || dirent.isSymbolicLink()) {
|
|
10150
10150
|
const name = combinePaths(path, entry);
|
|
10151
|
-
stat2 =
|
|
10151
|
+
stat2 = statSync2(name);
|
|
10152
10152
|
if (!stat2) {
|
|
10153
10153
|
continue;
|
|
10154
10154
|
}
|
|
@@ -10172,7 +10172,7 @@ ${lanes.join(`
|
|
|
10172
10172
|
return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
|
|
10173
10173
|
}
|
|
10174
10174
|
function fileSystemEntryExists(path, entryKind) {
|
|
10175
|
-
const stat2 =
|
|
10175
|
+
const stat2 = statSync2(path);
|
|
10176
10176
|
if (!stat2) {
|
|
10177
10177
|
return false;
|
|
10178
10178
|
}
|
|
@@ -10206,7 +10206,7 @@ ${lanes.join(`
|
|
|
10206
10206
|
}
|
|
10207
10207
|
function getModifiedTime3(path) {
|
|
10208
10208
|
var _a;
|
|
10209
|
-
return (_a =
|
|
10209
|
+
return (_a = statSync2(path)) == null ? undefined : _a.mtime;
|
|
10210
10210
|
}
|
|
10211
10211
|
function setModifiedTime(path, time) {
|
|
10212
10212
|
try {
|
|
@@ -171299,13 +171299,17 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
|
|
|
171299
171299
|
globalThis.__absoluteVersion = pkg.version;
|
|
171300
171300
|
return;
|
|
171301
171301
|
}
|
|
171302
|
-
}, scanWorkerReferences = async (dirs) => {
|
|
171302
|
+
}, SKIP_DIRS, scanWorkerReferences = async (dirs) => {
|
|
171303
171303
|
const urlPattern = /new\s+URL\(\s*["'](\.\.?\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g;
|
|
171304
171304
|
const resolvePattern = /import\.meta\.resolve\(\s*["'](\.\.?\/[^"']+)["']\s*\)/g;
|
|
171305
171305
|
const workerPaths = new Set;
|
|
171306
171306
|
for (const dir of dirs) {
|
|
171307
|
-
const glob = new Glob5("**/*.{ts,tsx,js,jsx}");
|
|
171307
|
+
const glob = new Glob5("**/*.{ts,tsx,js,jsx,svelte,vue}");
|
|
171308
171308
|
for await (const file4 of glob.scan({ absolute: true, cwd: dir })) {
|
|
171309
|
+
const relToDir = file4.slice(dir.length + 1);
|
|
171310
|
+
const firstSegment = relToDir.split("/")[0];
|
|
171311
|
+
if (firstSegment && SKIP_DIRS.has(firstSegment))
|
|
171312
|
+
continue;
|
|
171309
171313
|
const content = readFileSync5(file4, "utf-8");
|
|
171310
171314
|
for (const pattern of [urlPattern, resolvePattern]) {
|
|
171311
171315
|
pattern.lastIndex = 0;
|
|
@@ -171315,7 +171319,10 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
|
|
|
171315
171319
|
if (!relPath)
|
|
171316
171320
|
continue;
|
|
171317
171321
|
const absPath = resolve11(file4, "..", relPath);
|
|
171318
|
-
|
|
171322
|
+
try {
|
|
171323
|
+
statSync(absPath);
|
|
171324
|
+
workerPaths.add(absPath);
|
|
171325
|
+
} catch {}
|
|
171319
171326
|
}
|
|
171320
171327
|
}
|
|
171321
171328
|
}
|
|
@@ -171963,6 +171970,7 @@ var init_build = __esm(() => {
|
|
|
171963
171970
|
init_logger();
|
|
171964
171971
|
init_validateSafePath();
|
|
171965
171972
|
isDev = env2.NODE_ENV === "development";
|
|
171973
|
+
SKIP_DIRS = new Set(["server", "client", "compiled", "indexes", "build", "node_modules"]);
|
|
171966
171974
|
vueFeatureFlags = {
|
|
171967
171975
|
__VUE_OPTIONS_API__: "true",
|
|
171968
171976
|
__VUE_PROD_DEVTOOLS__: isDev ? "true" : "false",
|
|
@@ -202527,7 +202535,7 @@ __export(exports_moduleServer, {
|
|
|
202527
202535
|
createModuleServer: () => createModuleServer,
|
|
202528
202536
|
SRC_URL_PREFIX: () => SRC_URL_PREFIX
|
|
202529
202537
|
});
|
|
202530
|
-
import { existsSync as existsSync13, readFileSync as readFileSync9, statSync } from "fs";
|
|
202538
|
+
import { existsSync as existsSync13, readFileSync as readFileSync9, statSync as statSync2 } from "fs";
|
|
202531
202539
|
import { basename as basename7, dirname as dirname8, extname as extname3, resolve as resolve18, relative as relative8 } from "path";
|
|
202532
202540
|
var SRC_PREFIX = "/@src/", jsTranspiler2, tsTranspiler2, tsxTranspiler, TRANSPILABLE, ALL_EXPORTS_RE, STRING_CONTENTS_RE, preserveTypeExports = (originalSource, transpiled, valueExports) => {
|
|
202533
202541
|
const codeOnly = originalSource.replace(STRING_CONTENTS_RE, '""');
|
|
@@ -202561,7 +202569,7 @@ ${stubs}
|
|
|
202561
202569
|
let mtime = mtimeCache.get(absPath);
|
|
202562
202570
|
if (mtime === undefined) {
|
|
202563
202571
|
try {
|
|
202564
|
-
mtime = Math.round(
|
|
202572
|
+
mtime = Math.round(statSync2(absPath).mtimeMs);
|
|
202565
202573
|
mtimeCache.set(absPath, mtime);
|
|
202566
202574
|
} catch {
|
|
202567
202575
|
return base;
|
|
@@ -202604,7 +202612,7 @@ ${stubs}
|
|
|
202604
202612
|
];
|
|
202605
202613
|
for (const ext of extensions) {
|
|
202606
202614
|
try {
|
|
202607
|
-
|
|
202615
|
+
statSync2(resolve18(projectRoot, srcPath + ext));
|
|
202608
202616
|
srcPath += ext;
|
|
202609
202617
|
break;
|
|
202610
202618
|
} catch {}
|
|
@@ -202638,7 +202646,7 @@ ${stubs}
|
|
|
202638
202646
|
];
|
|
202639
202647
|
for (const ext of extensions) {
|
|
202640
202648
|
try {
|
|
202641
|
-
|
|
202649
|
+
statSync2(resolve18(projectRoot, srcPath + ext));
|
|
202642
202650
|
srcPath += ext;
|
|
202643
202651
|
break;
|
|
202644
202652
|
} catch {}
|
|
@@ -203006,7 +203014,7 @@ export default {};
|
|
|
203006
203014
|
const tryExts = [".tsx", ".ts", ".jsx", ".js", ".svelte", ".vue"];
|
|
203007
203015
|
for (const tryExt of tryExts) {
|
|
203008
203016
|
try {
|
|
203009
|
-
|
|
203017
|
+
statSync2(filePath + tryExt);
|
|
203010
203018
|
filePath += tryExt;
|
|
203011
203019
|
ext = tryExt;
|
|
203012
203020
|
break;
|
|
@@ -203024,7 +203032,7 @@ export default {};
|
|
|
203024
203032
|
const cached2 = getTransformed(filePath);
|
|
203025
203033
|
if (cached2)
|
|
203026
203034
|
return jsResponse(cached2);
|
|
203027
|
-
const stat3 =
|
|
203035
|
+
const stat3 = statSync2(filePath);
|
|
203028
203036
|
const content2 = await transformSvelteFile(filePath, projectRoot, rewriter);
|
|
203029
203037
|
setTransformed(filePath, content2, stat3.mtimeMs, extractImportedFiles(content2, projectRoot));
|
|
203030
203038
|
return jsResponse(content2);
|
|
@@ -203033,7 +203041,7 @@ export default {};
|
|
|
203033
203041
|
const cached2 = getTransformed(filePath);
|
|
203034
203042
|
if (cached2)
|
|
203035
203043
|
return jsResponse(cached2);
|
|
203036
|
-
const stat3 =
|
|
203044
|
+
const stat3 = statSync2(filePath);
|
|
203037
203045
|
const content2 = await transformVueFile(filePath, projectRoot, rewriter, frameworkDirs?.vue);
|
|
203038
203046
|
setTransformed(filePath, content2, stat3.mtimeMs, extractImportedFiles(content2, projectRoot));
|
|
203039
203047
|
return jsResponse(content2);
|
|
@@ -203043,7 +203051,7 @@ export default {};
|
|
|
203043
203051
|
const cached = getTransformed(filePath);
|
|
203044
203052
|
if (cached)
|
|
203045
203053
|
return jsResponse(cached);
|
|
203046
|
-
const stat2 =
|
|
203054
|
+
const stat2 = statSync2(filePath);
|
|
203047
203055
|
const content = REACT_EXTENSIONS.has(ext) ? transformReactFile(filePath, projectRoot, rewriter) : transformPlainFile(filePath, projectRoot, rewriter);
|
|
203048
203056
|
setTransformed(filePath, content, stat2.mtimeMs, extractImportedFiles(content, projectRoot));
|
|
203049
203057
|
return jsResponse(content);
|
|
@@ -204774,7 +204782,7 @@ __export(exports_devBuild, {
|
|
|
204774
204782
|
devBuild: () => devBuild
|
|
204775
204783
|
});
|
|
204776
204784
|
import { readdir as readdir3 } from "fs/promises";
|
|
204777
|
-
import { statSync as
|
|
204785
|
+
import { statSync as statSync3 } from "fs";
|
|
204778
204786
|
import { resolve as resolve22 } from "path";
|
|
204779
204787
|
var FRAMEWORK_DIR_KEYS, parseDirectoryConfig = (source) => {
|
|
204780
204788
|
const config = {};
|
|
@@ -204867,7 +204875,7 @@ var FRAMEWORK_DIR_KEYS, parseDirectoryConfig = (source) => {
|
|
|
204867
204875
|
state.fileChangeQueue.clear();
|
|
204868
204876
|
}
|
|
204869
204877
|
}, handleCachedReload = async () => {
|
|
204870
|
-
const serverMtime =
|
|
204878
|
+
const serverMtime = statSync3(resolve22(Bun.main)).mtimeMs;
|
|
204871
204879
|
const lastMtime = globalThis.__hmrServerMtime;
|
|
204872
204880
|
globalThis.__hmrServerMtime = serverMtime;
|
|
204873
204881
|
const cached = globalThis.__hmrDevResult;
|
|
@@ -205017,7 +205025,7 @@ var FRAMEWORK_DIR_KEYS, parseDirectoryConfig = (source) => {
|
|
|
205017
205025
|
manifest
|
|
205018
205026
|
};
|
|
205019
205027
|
globalThis.__hmrDevResult = result;
|
|
205020
|
-
globalThis.__hmrServerMtime =
|
|
205028
|
+
globalThis.__hmrServerMtime = statSync3(resolve22(Bun.main)).mtimeMs;
|
|
205021
205029
|
return result;
|
|
205022
205030
|
};
|
|
205023
205031
|
var init_devBuild = __esm(() => {
|
|
@@ -205714,5 +205722,5 @@ export {
|
|
|
205714
205722
|
ANGULAR_INIT_TIMEOUT_MS
|
|
205715
205723
|
};
|
|
205716
205724
|
|
|
205717
|
-
//# debugId=
|
|
205725
|
+
//# debugId=7D007FE1D4D246E364756E2164756E21
|
|
205718
205726
|
//# sourceMappingURL=index.js.map
|