@absolutejs/absolute 0.19.0-beta.1002 → 0.19.0-beta.1004
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/dist/index.js
CHANGED
|
@@ -20974,21 +20974,30 @@ ${content.slice(firstUseIdx)}`;
|
|
|
20974
20974
|
continue;
|
|
20975
20975
|
manifest[toPascal(baseName)] = artifact.path;
|
|
20976
20976
|
}
|
|
20977
|
+
const stripHash = (fileBase, hash) => {
|
|
20978
|
+
if (hash) {
|
|
20979
|
+
const tag = `.${hash}.`;
|
|
20980
|
+
const idx = fileBase.indexOf(tag);
|
|
20981
|
+
if (idx > 0)
|
|
20982
|
+
return fileBase.slice(0, idx);
|
|
20983
|
+
}
|
|
20984
|
+
const m = fileBase.match(/^(.+)\.[a-z0-9]{8,}\.[^.]+$/i);
|
|
20985
|
+
return m ? m[1] : null;
|
|
20986
|
+
};
|
|
20977
20987
|
const cssByName = new Map;
|
|
20978
20988
|
for (const artifact of cssOutputs) {
|
|
20979
20989
|
if (extname8(artifact.path) !== ".css")
|
|
20980
20990
|
continue;
|
|
20981
|
-
const
|
|
20982
|
-
const [cssName] = fileBase.split(`.${artifact.hash}.`);
|
|
20991
|
+
const cssName = stripHash(basename11(artifact.path), artifact.hash);
|
|
20983
20992
|
if (cssName)
|
|
20984
20993
|
cssByName.set(cssName, artifact);
|
|
20985
20994
|
}
|
|
20986
20995
|
const fsPromises = await import("fs/promises");
|
|
20996
|
+
const siblingCssPaths = [];
|
|
20987
20997
|
await Promise.all(serverOutputs.map(async (artifact) => {
|
|
20988
20998
|
if (extname8(artifact.path) !== ".js")
|
|
20989
20999
|
return;
|
|
20990
|
-
const
|
|
20991
|
-
const [pascalName] = fileWithHash.split(`.${artifact.hash}.`);
|
|
21000
|
+
const pascalName = stripHash(basename11(artifact.path), artifact.hash);
|
|
20992
21001
|
if (!pascalName)
|
|
20993
21002
|
return;
|
|
20994
21003
|
const cssArtifact = cssByName.get(`${toKebab(pascalName)}-compiled`);
|
|
@@ -20996,6 +21005,8 @@ ${content.slice(firstUseIdx)}`;
|
|
|
20996
21005
|
return;
|
|
20997
21006
|
const siblingCssPath = artifact.path.replace(/\.js$/, ".css");
|
|
20998
21007
|
await fsPromises.copyFile(cssArtifact.path, siblingCssPath);
|
|
21008
|
+
siblingCssPaths.push(siblingCssPath);
|
|
21009
|
+
manifest[`${pascalName}Css`] = siblingCssPath;
|
|
20999
21010
|
}));
|
|
21000
21011
|
for (const serverPath of emberServerPaths) {
|
|
21001
21012
|
const fileBase = basename11(serverPath, ".js");
|
|
@@ -21091,6 +21102,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
21091
21102
|
...nonReactClientOutputs.map((a) => a.path),
|
|
21092
21103
|
...islandClientOutputs.map((a) => a.path),
|
|
21093
21104
|
...cssOutputs.map((a) => a.path),
|
|
21105
|
+
...siblingCssPaths,
|
|
21094
21106
|
...conventionOutputPaths
|
|
21095
21107
|
]));
|
|
21096
21108
|
}
|
|
@@ -35737,5 +35749,5 @@ export {
|
|
|
35737
35749
|
ANGULAR_INIT_TIMEOUT_MS
|
|
35738
35750
|
};
|
|
35739
35751
|
|
|
35740
|
-
//# debugId=
|
|
35752
|
+
//# debugId=CA144ECF7D56382464756E2164756E21
|
|
35741
35753
|
//# sourceMappingURL=index.js.map
|