@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/build.js
CHANGED
|
@@ -9865,7 +9865,7 @@ ${lanes.join(`
|
|
|
9865
9865
|
return process.memoryUsage().heapUsed;
|
|
9866
9866
|
},
|
|
9867
9867
|
getFileSize(path) {
|
|
9868
|
-
const stat2 =
|
|
9868
|
+
const stat2 = statSync2(path);
|
|
9869
9869
|
if (stat2 == null ? undefined : stat2.isFile()) {
|
|
9870
9870
|
return stat2.size;
|
|
9871
9871
|
}
|
|
@@ -9908,7 +9908,7 @@ ${lanes.join(`
|
|
|
9908
9908
|
}
|
|
9909
9909
|
};
|
|
9910
9910
|
return nodeSystem;
|
|
9911
|
-
function
|
|
9911
|
+
function statSync2(path) {
|
|
9912
9912
|
try {
|
|
9913
9913
|
return _fs.statSync(path, statSyncOptions);
|
|
9914
9914
|
} catch {
|
|
@@ -9960,7 +9960,7 @@ ${lanes.join(`
|
|
|
9960
9960
|
activeSession.post("Profiler.stop", (err, { profile }) => {
|
|
9961
9961
|
var _a;
|
|
9962
9962
|
if (!err) {
|
|
9963
|
-
if ((_a =
|
|
9963
|
+
if ((_a = statSync2(profilePath)) == null ? undefined : _a.isDirectory()) {
|
|
9964
9964
|
profilePath = _path.join(profilePath, `${(/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-")}+P${process.pid}.cpuprofile`);
|
|
9965
9965
|
}
|
|
9966
9966
|
try {
|
|
@@ -10069,7 +10069,7 @@ ${lanes.join(`
|
|
|
10069
10069
|
let stat2;
|
|
10070
10070
|
if (typeof dirent === "string" || dirent.isSymbolicLink()) {
|
|
10071
10071
|
const name = combinePaths(path, entry);
|
|
10072
|
-
stat2 =
|
|
10072
|
+
stat2 = statSync2(name);
|
|
10073
10073
|
if (!stat2) {
|
|
10074
10074
|
continue;
|
|
10075
10075
|
}
|
|
@@ -10093,7 +10093,7 @@ ${lanes.join(`
|
|
|
10093
10093
|
return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
|
|
10094
10094
|
}
|
|
10095
10095
|
function fileSystemEntryExists(path, entryKind) {
|
|
10096
|
-
const stat2 =
|
|
10096
|
+
const stat2 = statSync2(path);
|
|
10097
10097
|
if (!stat2) {
|
|
10098
10098
|
return false;
|
|
10099
10099
|
}
|
|
@@ -10127,7 +10127,7 @@ ${lanes.join(`
|
|
|
10127
10127
|
}
|
|
10128
10128
|
function getModifiedTime3(path) {
|
|
10129
10129
|
var _a;
|
|
10130
|
-
return (_a =
|
|
10130
|
+
return (_a = statSync2(path)) == null ? undefined : _a.mtime;
|
|
10131
10131
|
}
|
|
10132
10132
|
function setModifiedTime(path, time) {
|
|
10133
10133
|
try {
|
|
@@ -171220,13 +171220,17 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
|
|
|
171220
171220
|
globalThis.__absoluteVersion = pkg.version;
|
|
171221
171221
|
return;
|
|
171222
171222
|
}
|
|
171223
|
-
}, scanWorkerReferences = async (dirs) => {
|
|
171223
|
+
}, SKIP_DIRS, scanWorkerReferences = async (dirs) => {
|
|
171224
171224
|
const urlPattern = /new\s+URL\(\s*["'](\.\.?\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g;
|
|
171225
171225
|
const resolvePattern = /import\.meta\.resolve\(\s*["'](\.\.?\/[^"']+)["']\s*\)/g;
|
|
171226
171226
|
const workerPaths = new Set;
|
|
171227
171227
|
for (const dir of dirs) {
|
|
171228
|
-
const glob = new Glob5("**/*.{ts,tsx,js,jsx}");
|
|
171228
|
+
const glob = new Glob5("**/*.{ts,tsx,js,jsx,svelte,vue}");
|
|
171229
171229
|
for await (const file3 of glob.scan({ absolute: true, cwd: dir })) {
|
|
171230
|
+
const relToDir = file3.slice(dir.length + 1);
|
|
171231
|
+
const firstSegment = relToDir.split("/")[0];
|
|
171232
|
+
if (firstSegment && SKIP_DIRS.has(firstSegment))
|
|
171233
|
+
continue;
|
|
171230
171234
|
const content = readFileSync5(file3, "utf-8");
|
|
171231
171235
|
for (const pattern of [urlPattern, resolvePattern]) {
|
|
171232
171236
|
pattern.lastIndex = 0;
|
|
@@ -171236,7 +171240,10 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
|
|
|
171236
171240
|
if (!relPath)
|
|
171237
171241
|
continue;
|
|
171238
171242
|
const absPath = resolve10(file3, "..", relPath);
|
|
171239
|
-
|
|
171243
|
+
try {
|
|
171244
|
+
statSync(absPath);
|
|
171245
|
+
workerPaths.add(absPath);
|
|
171246
|
+
} catch {}
|
|
171240
171247
|
}
|
|
171241
171248
|
}
|
|
171242
171249
|
}
|
|
@@ -171884,6 +171891,7 @@ var init_build = __esm(() => {
|
|
|
171884
171891
|
init_logger();
|
|
171885
171892
|
init_validateSafePath();
|
|
171886
171893
|
isDev = env2.NODE_ENV === "development";
|
|
171894
|
+
SKIP_DIRS = new Set(["server", "client", "compiled", "indexes", "build", "node_modules"]);
|
|
171887
171895
|
vueFeatureFlags = {
|
|
171888
171896
|
__VUE_OPTIONS_API__: "true",
|
|
171889
171897
|
__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 resolve17, 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(resolve17(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(resolve17(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 resolve21 } 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(resolve21(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(resolve21(Bun.main)).mtimeMs;
|
|
205021
205029
|
return result;
|
|
205022
205030
|
};
|
|
205023
205031
|
var init_devBuild = __esm(() => {
|
|
@@ -205052,5 +205060,5 @@ export {
|
|
|
205052
205060
|
build
|
|
205053
205061
|
};
|
|
205054
205062
|
|
|
205055
|
-
//# debugId=
|
|
205063
|
+
//# debugId=CFC34B6C40EC69F864756E2164756E21
|
|
205056
205064
|
//# sourceMappingURL=build.js.map
|