@absolutejs/absolute 0.20.0-beta.126 → 0.20.0-beta.128
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/CHANGELOG.md +18 -0
- package/README.md +19 -0
- package/changelog.json +36 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +88 -35
- package/dist/angular/index.js.map +8 -7
- package/dist/angular/server.js +88 -35
- package/dist/angular/server.js.map +8 -7
- package/dist/build/buildWorker.js +9 -3
- package/dist/build.js +342 -263
- package/dist/build.js.map +14 -12
- package/dist/cli/{compile-smcnjyhb.js → compile-0epdbdcx.js} +1 -1
- package/dist/cli/config/server.js +91 -52
- package/dist/cli/{index-9q8yn5ax.js → index-54q7pxcx.js} +1 -0
- package/dist/cli/{index-fx42yxhy.js → index-79ppyst7.js} +1 -1
- package/dist/cli/index.js +4 -4
- package/dist/cli/{mobile-50c5tahh.js → mobile-49hyrgrj.js} +1 -1
- package/dist/cli/{prerender-vvrj9vjg.js → prerender-yex2zwj3.js} +1 -1
- package/dist/cli/{start-pdacfgcc.js → start-m0p0qbep.js} +1 -1
- package/dist/index.js +362 -279
- package/dist/index.js.map +17 -14
- package/dist/islands/index.js +10 -4
- package/dist/islands/index.js.map +5 -4
- package/dist/mobile/remoteMacAgentEntry.js +1 -1
- package/dist/react/index.js +114 -61
- package/dist/react/index.js.map +8 -7
- package/dist/react/server.js +105 -58
- package/dist/react/server.js.map +6 -6
- package/dist/src/core/requestContext.d.ts +5 -10
- package/dist/src/dev/restartScope.d.ts +1 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/isFile.d.ts +4 -0
- package/dist/src/utils/isPrerendering.d.ts +5 -0
- package/dist/src/utils/ssrErrorPage.d.ts +3 -0
- package/dist/svelte/index.js +114 -61
- package/dist/svelte/index.js.map +8 -7
- package/dist/svelte/server.js +105 -58
- package/dist/svelte/server.js.map +6 -6
- package/dist/vue/index.js +114 -61
- package/dist/vue/index.js.map +8 -7
- package/dist/vue/server.js +105 -58
- package/dist/vue/server.js.map +6 -6
- package/package.json +2 -2
|
@@ -949,6 +949,11 @@ var init_sourceMetadata = __esm(() => {
|
|
|
949
949
|
];
|
|
950
950
|
});
|
|
951
951
|
|
|
952
|
+
// src/utils/isFile.ts
|
|
953
|
+
import { statSync } from "fs";
|
|
954
|
+
var isFile = (path) => statSync(path, { throwIfNoEntry: false })?.isFile() ?? false;
|
|
955
|
+
var init_isFile = () => {};
|
|
956
|
+
|
|
952
957
|
// src/utils/vueCompiler.ts
|
|
953
958
|
var exports_vueCompiler = {};
|
|
954
959
|
__export(exports_vueCompiler, {
|
|
@@ -1437,7 +1442,7 @@ var transpiler2, inlineCssImports = (cssContent, cssFilePath, visited = new Set)
|
|
|
1437
1442
|
const importRegex = /@import\s+(?:url\(\s*)?(['"])(\.{1,2}\/[^'"]+)\1\s*\)?\s*;?/g;
|
|
1438
1443
|
return cssContent.replace(importRegex, (match, _quote, relPath) => {
|
|
1439
1444
|
const importedPath = resolve3(dirname4(cssFilePath), relPath);
|
|
1440
|
-
if (!
|
|
1445
|
+
if (!isFile(importedPath))
|
|
1441
1446
|
return match;
|
|
1442
1447
|
const importedContent = readFileSync5(importedPath, "utf-8");
|
|
1443
1448
|
return inlineCssImports(importedContent, importedPath, visited);
|
|
@@ -1524,10 +1529,10 @@ const ${localName} = (source) => ${importedName}(
|
|
|
1524
1529
|
const typeDepHashes = {};
|
|
1525
1530
|
const compiledScript = hasScript ? compiler.compileScript(descriptor, {
|
|
1526
1531
|
fs: {
|
|
1527
|
-
fileExists:
|
|
1532
|
+
fileExists: isFile,
|
|
1528
1533
|
realpath: realpathSync,
|
|
1529
1534
|
readFile: (file2) => {
|
|
1530
|
-
if (!
|
|
1535
|
+
if (!isFile(file2))
|
|
1531
1536
|
return;
|
|
1532
1537
|
const content = readFileSync5(file2, "utf-8");
|
|
1533
1538
|
typeDepHashes[file2] = hashContent(content);
|
|
@@ -1632,6 +1637,7 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
1632
1637
|
};
|
|
1633
1638
|
var init_compileVueSfc = __esm(() => {
|
|
1634
1639
|
init_sourceMetadata();
|
|
1640
|
+
init_isFile();
|
|
1635
1641
|
init_chainInlineSourcemaps();
|
|
1636
1642
|
init_stylePreprocessor();
|
|
1637
1643
|
init_vueCompileCache();
|