@lwrjs/static 0.17.2-alpha.22 → 0.17.2-alpha.24
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.
|
@@ -69,6 +69,25 @@ var StaticBundleProvider = class {
|
|
|
69
69
|
const ssr = runtimeParams?.ssr;
|
|
70
70
|
const metadata = this.getBundleMetadata({moduleId, localeId, debug, ssr});
|
|
71
71
|
if (!metadata) {
|
|
72
|
+
if (moduleId?.namespace === "@lwc" && moduleId?.name === "ssr-runtime") {
|
|
73
|
+
import_diagnostics.logger.error(new Error("@lwc/ssr-runtime at..."));
|
|
74
|
+
import_diagnostics.logger.error({msg: "@lwc/ssr-runtime input", moduleId, localeId, debug, ssr});
|
|
75
|
+
try {
|
|
76
|
+
const siteBundleId = (0, import_site_metadata.getSiteBundleId)(moduleId, localeId, ssr, this.i18n);
|
|
77
|
+
const siteBundles = this.siteMetadata.getSiteBundles()?.bundles || {};
|
|
78
|
+
const keys = Object.keys(siteBundles);
|
|
79
|
+
const totalBundlesCount = keys?.length;
|
|
80
|
+
const runtimeBundles = keys.filter((key) => key.startsWith("@lwc/ssr-runtime"));
|
|
81
|
+
import_diagnostics.logger.error({
|
|
82
|
+
msg: "@lwc/ssr-runtime metadata",
|
|
83
|
+
siteBundleId,
|
|
84
|
+
runtimeBundles,
|
|
85
|
+
totalBundlesCount
|
|
86
|
+
});
|
|
87
|
+
} catch (error) {
|
|
88
|
+
import_diagnostics.logger.error("Error retrieving siteBundles", {error});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
72
91
|
return void 0;
|
|
73
92
|
}
|
|
74
93
|
const bundlePath = import_path.default.join(this.siteRootDir, metadata.path);
|
|
@@ -40,6 +40,27 @@ export default class StaticBundleProvider {
|
|
|
40
40
|
const ssr = runtimeParams?.ssr;
|
|
41
41
|
const metadata = this.getBundleMetadata({ moduleId, localeId, debug, ssr });
|
|
42
42
|
if (!metadata) {
|
|
43
|
+
// Adding temporary logging to debug issue where @lwc/ssr-runtime is not found
|
|
44
|
+
if (moduleId?.namespace === '@lwc' && moduleId?.name === 'ssr-runtime') {
|
|
45
|
+
logger.error(new Error('@lwc/ssr-runtime at...'));
|
|
46
|
+
logger.error({ msg: '@lwc/ssr-runtime input', moduleId, localeId, debug, ssr });
|
|
47
|
+
try {
|
|
48
|
+
const siteBundleId = getSiteBundleId(moduleId, localeId, ssr, this.i18n);
|
|
49
|
+
const siteBundles = this.siteMetadata.getSiteBundles()?.bundles || {};
|
|
50
|
+
const keys = Object.keys(siteBundles);
|
|
51
|
+
const totalBundlesCount = keys?.length;
|
|
52
|
+
const runtimeBundles = keys.filter((key) => key.startsWith('@lwc/ssr-runtime'));
|
|
53
|
+
logger.error({
|
|
54
|
+
msg: '@lwc/ssr-runtime metadata',
|
|
55
|
+
siteBundleId,
|
|
56
|
+
runtimeBundles,
|
|
57
|
+
totalBundlesCount,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
logger.error('Error retrieving siteBundles', { error });
|
|
62
|
+
}
|
|
63
|
+
}
|
|
43
64
|
return undefined;
|
|
44
65
|
}
|
|
45
66
|
// Default bundle source path
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.17.2-alpha.
|
|
7
|
+
"version": "0.17.2-alpha.24",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
"build/**/*.d.ts"
|
|
57
57
|
],
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@lwrjs/diagnostics": "0.17.2-alpha.
|
|
60
|
-
"@lwrjs/instrumentation": "0.17.2-alpha.
|
|
61
|
-
"@lwrjs/shared-utils": "0.17.2-alpha.
|
|
59
|
+
"@lwrjs/diagnostics": "0.17.2-alpha.24",
|
|
60
|
+
"@lwrjs/instrumentation": "0.17.2-alpha.24",
|
|
61
|
+
"@lwrjs/shared-utils": "0.17.2-alpha.24",
|
|
62
62
|
"lru-cache": "^10.4.3"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@lwrjs/types": "0.17.2-alpha.
|
|
65
|
+
"@lwrjs/types": "0.17.2-alpha.24",
|
|
66
66
|
"@types/express": "^4.17.21",
|
|
67
67
|
"jest": "29.7.0",
|
|
68
68
|
"jest-express": "^1.12.0",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"volta": {
|
|
77
77
|
"extends": "../../../package.json"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "2ce2679faaeb7493891a8e1b7af2d42eb9042998"
|
|
80
80
|
}
|