@lwrjs/app-service 0.8.0-alpha.5 → 0.8.0-alpha.8
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.
|
@@ -73,12 +73,12 @@ function normalizeBootstrap(bootstrap) {
|
|
|
73
73
|
}
|
|
74
74
|
function createAppRouteViewBootstrapModule(route, options, lockerConfig) {
|
|
75
75
|
const {bootstrap} = route;
|
|
76
|
-
const {services, syntheticShadow,
|
|
76
|
+
const {services, syntheticShadow, ssr} = bootstrap;
|
|
77
77
|
const isAMD = options.format === "amd";
|
|
78
78
|
const isESM = options.format === "esm";
|
|
79
79
|
const servicesSource = bootstrap.services && createServicesSource(bootstrap.services);
|
|
80
80
|
const serviceApiModule = getServiceApiModule(options.format, options.moduleLoader);
|
|
81
|
-
const bootstrapModule =
|
|
81
|
+
const bootstrapModule = ssr && !lockerConfig.enabled ? "lwr/initSsr" : "lwr/init";
|
|
82
82
|
return [
|
|
83
83
|
"/* This module is generated */",
|
|
84
84
|
isESM && `import { getClientBootstrapConfig } from 'lwr/preInit';`,
|
|
@@ -60,12 +60,12 @@ export function normalizeBootstrap(bootstrap) {
|
|
|
60
60
|
*/
|
|
61
61
|
export function createAppRouteViewBootstrapModule(route, options, lockerConfig) {
|
|
62
62
|
const { bootstrap } = route;
|
|
63
|
-
const { services, syntheticShadow,
|
|
63
|
+
const { services, syntheticShadow, ssr } = bootstrap;
|
|
64
64
|
const isAMD = options.format === 'amd';
|
|
65
65
|
const isESM = options.format === 'esm';
|
|
66
66
|
const servicesSource = bootstrap.services && createServicesSource(bootstrap.services);
|
|
67
67
|
const serviceApiModule = getServiceApiModule(options.format, options.moduleLoader);
|
|
68
|
-
const bootstrapModule =
|
|
68
|
+
const bootstrapModule = ssr && !lockerConfig.enabled ? 'lwr/initSsr' : 'lwr/init';
|
|
69
69
|
return [
|
|
70
70
|
'/* This module is generated */',
|
|
71
71
|
// pre app initialization step
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.8.0-alpha.
|
|
7
|
+
"version": "0.8.0-alpha.8",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"build/**/*.d.ts"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@lwrjs/diagnostics": "0.8.0-alpha.
|
|
37
|
-
"@lwrjs/shared-utils": "0.8.0-alpha.
|
|
36
|
+
"@lwrjs/diagnostics": "0.8.0-alpha.8",
|
|
37
|
+
"@lwrjs/shared-utils": "0.8.0-alpha.8"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@lwrjs/types": "0.8.0-alpha.
|
|
40
|
+
"@lwrjs/types": "0.8.0-alpha.8"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=14.15.4 <19"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "345e7545d2d1d1f587567aacf0a072473c746d9e"
|
|
46
46
|
}
|