@lwrjs/everywhere 0.9.0-alpha.2 → 0.9.0-alpha.21
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/README.md +2 -7
- package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/1b0754f98a1d222fca718deb5838c625/config.js +10 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_21/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js +18 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwc/v/2_33_0/s/90a5f16131da45cef1653112862ca9dc/lwc.js +8969 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/everywhereAmd/v/0_9_0-alpha_21/s/c538071acf5bde58e816967a14c465c3/lwr_everywhereAmd.js +66 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/init/v/0_9_0-alpha_21/s/206e6e0af6f019fdfd86d87d56331bc2/lwr_init.js +97 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/loader/v/{0_9_0-alpha_2/s/a7fb654bda624ba7d02dcd76e8d1217c → 0_9_0-alpha_21/s/64c5a2bb3dcf1759c879fc87bf2fdaf6}/lwr_loader.js +360 -131
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/metrics/v/0_9_0-alpha_21/s/3426e42c3e22ce07ab2adc62c4c523a0/lwr_metrics.js +66 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/profiler/v/0_9_0-alpha_21/s/e25f3b0b8b5c096acebf847d0a83ea62/lwr_profiler.js +68 -0
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/vault/v/0_9_0-alpha_21/s/c92abd8c1fec2d7eff62e4b097abbe14/lwr_vault.js +21 -0
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-error-shim.js/v/{0_9_0-alpha_2 → 0_9_0-alpha_21/lwr-error-shim.js} +1 -1
- package/build/__generated_site_amd_modules__/1/resource/amd/lwr-loader-shim.js/v/{0_9_0-alpha_2 → 0_9_0-alpha_21/lwr-loader-shim.js} +18 -17
- package/build/amd-client.js +1 -2
- package/build/assets/amd/lwr-everywhere-debug.js +36 -23
- package/build/assets/amd/lwr-everywhere-min.js +1 -1
- package/build/assets/amd/lwr-everywhere.js +36 -23
- package/build/assets/core/lwr-everywhere-debug.js +33 -20
- package/build/assets/core/lwr-everywhere-min.js +1 -1
- package/build/assets/core/lwr-everywhere.js +33 -20
- package/build/assets/esm/lwr-everywhere-debug.js +4 -7
- package/build/assets/esm/lwr-everywhere-min.js +1 -1
- package/build/assets/esm/lwr-everywhere.js +4 -7
- package/build/esm-client.js +1 -2
- package/build/generate.js +4 -3
- package/build/index.js +2 -2
- package/build/modules/@salesforce/lds-default-luvio/lds-default-luvio.d.ts +24 -0
- package/build/modules/@salesforce/lds-default-luvio/lds-default-luvio.js +60 -0
- package/build/modules/lwr/everywhere/everywhere.d.ts +1 -1
- package/build/modules/lwr/everywhere/everywhere.js +8 -6
- package/build/modules/lwr/everywhereAmd/everywhereAmd.d.ts +1 -1
- package/build/modules/lwr/everywhereAmd/everywhereAmd.js +9 -11
- package/build/modules/lwr/everywhereEsm/everywhereEsm.js +1 -2
- package/build/modules/lwr/host/host.js +23 -27
- package/build/modules/lwr/setupLDS/network.d.ts +3 -0
- package/build/modules/lwr/setupLDS/network.js +88 -0
- package/build/modules/lwr/setupLDS/setupLDS.d.ts +2 -0
- package/build/modules/lwr/setupLDS/setupLDS.js +12 -0
- package/build/modules/lwr/setupNodeLDS/network.d.ts +3 -0
- package/build/modules/lwr/setupNodeLDS/network.js +88 -0
- package/build/modules/lwr/setupNodeLDS/setupNodeLDS.d.ts +2 -0
- package/build/modules/lwr/setupNodeLDS/setupNodeLDS.js +14 -0
- package/build/modules/lwr/vault/vault.d.ts +1 -1
- package/build/modules/lwr/vault/vault.js +3 -1
- package/build/utils.d.ts +1 -8
- package/build/utils.js +1 -4
- package/package.json +15 -8
- package/src/amd-client.ts +1 -2
- package/src/esm-client.ts +2 -3
- package/src/generate.ts +4 -3
- package/src/index.ts +2 -2
- package/src/utils.ts +2 -13
- package/build/__generated_site_amd_modules__/1/application/amd/l/en-US/ai/amd-bootstrap/configuration/ci/-/-/s/68e51659d71a9691c09702509beecf4f/config.js +0 -10
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_2/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js +0 -14
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwc/v/2_17_0/s/60dae7a83431c35c02c87ca8aaaa6044/lwc.js +0 -6244
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/everywhereAmd/v/0_9_0-alpha_2/s/e66806169480601930ec9cfca972815e/lwr_everywhereAmd.js +0 -48
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/init/v/0_9_0-alpha_2/s/6258bcb20cc2d5d6a9f3c5a6f9d0acaf/lwr_init.js +0 -58
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/metrics/v/0_9_0-alpha_2/s/dfbc827104d50ff7d16b59c9d0e06aca/lwr_metrics.js +0 -56
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/profiler/v/0_9_0-alpha_2/s/5a10236d8c52bc9f6dee22875cd7016d/lwr_profiler.js +0 -51
- package/build/__generated_site_amd_modules__/1/module/amd/1/l/en-US/mi/lwr/vault/v/0_9_0-alpha_2/s/6cbce1f9b7e815ee862b26f37ff4c76e/lwr_vault.js +0 -13
- package/build/__generated_site_amd_modules__/en-US/index.html +0 -26
- package/build/__generated_site_amd_modules__/index.html +0 -26
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Luvio, Store, Environment } from '@luvio/engine';
|
|
2
|
+
import { setDefaultLuvio } from '@salesforce/lds-default-luvio';
|
|
3
|
+
import { networkAdapter } from './network';
|
|
4
|
+
|
|
5
|
+
// This module is used with LWR Node.js apps, it's aliased as "lwr/setupLDS" in package.json
|
|
6
|
+
// Set the default Luvio instance for LWR Everywhere
|
|
7
|
+
// It uses a fetch-based "web" network adapter with OAuth headers
|
|
8
|
+
|
|
9
|
+
export default function () {
|
|
10
|
+
const luvio = new Luvio(new Environment(new Store(), networkAdapter));
|
|
11
|
+
setDefaultLuvio({
|
|
12
|
+
luvio
|
|
13
|
+
});
|
|
14
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// Credential vault for storing setters and subscribers for OAuth info
|
|
2
2
|
// This module is a SINGLETON and must be excluded from ESM bundling
|
|
3
|
-
let authInfo; // Get and set the OAuth info
|
|
4
3
|
|
|
4
|
+
let authInfo;
|
|
5
|
+
|
|
6
|
+
// Get and set the OAuth info
|
|
5
7
|
export function getAuthInfo() {
|
|
6
8
|
return authInfo;
|
|
7
9
|
}
|
package/build/utils.d.ts
CHANGED
|
@@ -11,12 +11,5 @@ export interface EverywhereClientBootstrapOptions {
|
|
|
11
11
|
bundle?: boolean;
|
|
12
12
|
debug?: boolean;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
options: {
|
|
16
|
-
NODE_ENV: 'production' | 'development';
|
|
17
|
-
};
|
|
18
|
-
config: ClientBootstrapConfig;
|
|
19
|
-
}
|
|
20
|
-
export declare function getConfiguration(options: EverywhereClientBootstrapOptions): EverywhereClientBootstrap;
|
|
21
|
-
export {};
|
|
14
|
+
export declare function getConfiguration(options: EverywhereClientBootstrapOptions): ClientBootstrapConfig;
|
|
22
15
|
//# sourceMappingURL=utils.d.ts.map
|
package/build/utils.js
CHANGED
|
@@ -32,9 +32,6 @@ export function getConfiguration(options) {
|
|
|
32
32
|
if (debug && config.endpoints) {
|
|
33
33
|
config.endpoints.modifiers = { debug: 'true' };
|
|
34
34
|
}
|
|
35
|
-
return
|
|
36
|
-
options: { NODE_ENV: debug ? 'development' : 'production' },
|
|
37
|
-
config, // globalThis.LWR
|
|
38
|
-
};
|
|
35
|
+
return config;
|
|
39
36
|
}
|
|
40
37
|
//# sourceMappingURL=utils.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lwrjs/everywhere",
|
|
3
3
|
"description": "LWR Everywhere",
|
|
4
|
-
"version": "0.9.0-alpha.
|
|
4
|
+
"version": "0.9.0-alpha.21",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/salesforce/lwr.git",
|
|
12
|
+
"url": "https://github.com/salesforce-experience-platform-emu/lwr.git",
|
|
13
13
|
"directory": "packages/@lwrjs/everywhere"
|
|
14
14
|
},
|
|
15
15
|
"bugs": {
|
|
16
|
-
"url": "https://github.com/salesforce/lwr/issues"
|
|
16
|
+
"url": "https://github.com/salesforce-experience-platform-emu/lwr/issues"
|
|
17
17
|
},
|
|
18
18
|
"type": "module",
|
|
19
19
|
"types": "build/index.d.ts",
|
|
@@ -48,24 +48,31 @@
|
|
|
48
48
|
"rollup-plugin-typescript": "^1.0.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@lwrjs/
|
|
54
|
-
"@lwrjs/
|
|
51
|
+
"@luvio/engine": "0.47.5",
|
|
52
|
+
"@lwc/module-resolver": "2.33.0",
|
|
53
|
+
"@lwrjs/loader": "0.9.0-alpha.21",
|
|
54
|
+
"@lwrjs/router": "0.9.0-alpha.21",
|
|
55
|
+
"@lwrjs/types": "0.9.0-alpha.21"
|
|
55
56
|
},
|
|
56
57
|
"lwc": {
|
|
57
58
|
"modules": [
|
|
58
59
|
{
|
|
59
60
|
"dir": "build/modules"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "lwr/setupLDS",
|
|
64
|
+
"path": "build/modules/lwr/setupNodeLDS/setupNodeLDS.js"
|
|
60
65
|
}
|
|
61
66
|
],
|
|
62
67
|
"expose": [
|
|
68
|
+
"@salesforce/lds-default-luvio",
|
|
63
69
|
"lwr/everywhere",
|
|
64
70
|
"lwr/everywhereAmd",
|
|
65
71
|
"lwr/everywhereEsm",
|
|
66
72
|
"lwr/host",
|
|
73
|
+
"lwr/setupLDS",
|
|
67
74
|
"lwr/vault"
|
|
68
75
|
]
|
|
69
76
|
},
|
|
70
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "a89adcac80601f657becd6fd734c765e6b2a2745"
|
|
71
78
|
}
|
package/src/amd-client.ts
CHANGED
|
@@ -10,8 +10,7 @@ import { Loader } from 'lwr/loader';
|
|
|
10
10
|
// Process the LWR Client Bootstrap Config
|
|
11
11
|
const configOptions = '$REPLACE_CLIENT_BOOTSTRAP_OPTIONS$' as unknown as EverywhereClientBootstrapOptions;
|
|
12
12
|
const configuration = getConfiguration(configOptions);
|
|
13
|
-
const { bootstrapModule, endpoints, baseUrl, imports, index } = configuration
|
|
14
|
-
(globalThis as GlobalThis).process = { env: { NODE_ENV: configuration.options.NODE_ENV } }; // Required by LWC
|
|
13
|
+
const { bootstrapModule, endpoints, baseUrl, imports, index } = configuration;
|
|
15
14
|
|
|
16
15
|
// Initialize the AMD loader (its code is bundled into the LWR Everywhere module)
|
|
17
16
|
const loader = new Loader({ endpoints, baseUrl });
|
package/src/esm-client.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EverywhereClientBootstrapOptions
|
|
1
|
+
import type { EverywhereClientBootstrapOptions } from './utils';
|
|
2
2
|
import { getConfiguration } from './utils';
|
|
3
3
|
|
|
4
4
|
/** LWR Everywhere module for ESM **/
|
|
@@ -6,8 +6,7 @@ import { getConfiguration } from './utils';
|
|
|
6
6
|
// Process the LWR Client Bootstrap Config
|
|
7
7
|
const configOptions = '$REPLACE_CLIENT_BOOTSTRAP_OPTIONS$' as unknown as EverywhereClientBootstrapOptions;
|
|
8
8
|
const configuration = getConfiguration(configOptions);
|
|
9
|
-
const { bootstrapModule, imports, index = {}, importMappings, endpoints } = configuration
|
|
10
|
-
(globalThis as GlobalThis).process = { env: { NODE_ENV: configuration.options.NODE_ENV } }; // Required by LWC
|
|
9
|
+
const { bootstrapModule, imports, index = {}, importMappings, endpoints } = configuration;
|
|
11
10
|
|
|
12
11
|
// Set up the ESM loader; Export the LWRE APIs
|
|
13
12
|
const { initEsm, authenticate, createComponent } = await import(
|
package/src/generate.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { rootPath, version } from '@lwrjs/everywhere/package';
|
|
|
13
13
|
|
|
14
14
|
const CORE_VERSION = '0_0_1';
|
|
15
15
|
const NPM_VERSION = version.replace(/\./g, '_');
|
|
16
|
-
const NPM2CORE_REGEX = new RegExp(
|
|
16
|
+
const NPM2CORE_REGEX = new RegExp(`/v/${NPM_VERSION}`, 'g');
|
|
17
17
|
|
|
18
18
|
/* istanbul ignore next */
|
|
19
19
|
const lwcResolver = {
|
|
@@ -64,7 +64,7 @@ export async function generate(options: GenerationOptions): Promise<void> {
|
|
|
64
64
|
amdModules = getAmdModule('everywhereAmd') + getAmdModule('vault');
|
|
65
65
|
if (isCore) {
|
|
66
66
|
// Workaround: core does not have proper versioning; replace all versions with 0.0.1
|
|
67
|
-
amdModules = amdModules.replace(NPM2CORE_REGEX,
|
|
67
|
+
amdModules = amdModules.replace(NPM2CORE_REGEX, `/v/${CORE_VERSION}`);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -118,7 +118,8 @@ export async function generate(options: GenerationOptions): Promise<void> {
|
|
|
118
118
|
* All rights reserved.
|
|
119
119
|
* SPDX-License-Identifier: MIT
|
|
120
120
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
121
|
-
|
|
121
|
+
*/
|
|
122
|
+
globalThis.process = { env: { NODE_ENV: '${debug ? 'development' : 'production'}' } };`,
|
|
122
123
|
});
|
|
123
124
|
|
|
124
125
|
// Write the rollup output to the file system
|
package/src/index.ts
CHANGED
|
@@ -16,7 +16,7 @@ export default class LwrEverywhereClientProvider implements ResourceProvider {
|
|
|
16
16
|
directory: string;
|
|
17
17
|
context: ProviderContext;
|
|
18
18
|
|
|
19
|
-
constructor({ dir = 'assets' }: { dir: string }, context: ProviderContext) {
|
|
19
|
+
constructor({ dir = 'build/assets' }: { dir: string }, context: ProviderContext) {
|
|
20
20
|
this.directory = dir;
|
|
21
21
|
this.context = context;
|
|
22
22
|
}
|
|
@@ -33,7 +33,7 @@ export default class LwrEverywhereClientProvider implements ResourceProvider {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
// Retrieve the filepath from the build directory
|
|
36
|
-
const absFilepath = path.join(rootPath,
|
|
36
|
+
const absFilepath = path.join(rootPath, this.directory, format, specifier);
|
|
37
37
|
if (fs.existsSync(absFilepath)) {
|
|
38
38
|
return {
|
|
39
39
|
specifier,
|
package/src/utils.ts
CHANGED
|
@@ -13,16 +13,8 @@ export interface EverywhereClientBootstrapOptions {
|
|
|
13
13
|
debug?: boolean;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
// Output: Normalized options and Client Bootstrap Config object
|
|
17
|
-
interface EverywhereClientBootstrap {
|
|
18
|
-
options: {
|
|
19
|
-
NODE_ENV: 'production' | 'development';
|
|
20
|
-
};
|
|
21
|
-
config: ClientBootstrapConfig;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
16
|
// Construct the Client Bootstrap Config object
|
|
25
|
-
export function getConfiguration(options: EverywhereClientBootstrapOptions):
|
|
17
|
+
export function getConfiguration(options: EverywhereClientBootstrapOptions): ClientBootstrapConfig {
|
|
26
18
|
const { format, server, apiVersion, apiPrefix, locale, bundle, debug } = options;
|
|
27
19
|
const thisUrl = new URL(import.meta.url);
|
|
28
20
|
|
|
@@ -59,8 +51,5 @@ export function getConfiguration(options: EverywhereClientBootstrapOptions): Eve
|
|
|
59
51
|
config.endpoints.modifiers = { debug: 'true' };
|
|
60
52
|
}
|
|
61
53
|
|
|
62
|
-
return
|
|
63
|
-
options: { NODE_ENV: debug ? 'development' : 'production' },
|
|
64
|
-
config, // globalThis.LWR
|
|
65
|
-
};
|
|
54
|
+
return config;
|
|
66
55
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* This script is generated */
|
|
2
|
-
/* Client Bootstrap configuration */
|
|
3
|
-
globalThis.LWR = globalThis.LWR || {};
|
|
4
|
-
Object.assign(globalThis.LWR, {"appId":"amd-bootstrap","bootstrapModule":"@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_2","autoBoot":true,"imports":{"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_9_0-alpha_2/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_2"],"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_9_0-alpha_2/s/6258bcb20cc2d5d6a9f3c5a6f9d0acaf/lwr_init.js":["lwr/init/v/0_9_0-alpha_2"],"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_9_0-alpha_2/s/dfbc827104d50ff7d16b59c9d0e06aca/lwr_metrics.js":["lwr/metrics/v/0_9_0-alpha_2"],"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_9_0-alpha_2/s/5a10236d8c52bc9f6dee22875cd7016d/lwr_profiler.js":["lwr/profiler/v/0_9_0-alpha_2"],"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F2_17_0/s/60dae7a83431c35c02c87ca8aaaa6044/lwc.js":["lwc/v/2_17_0"],"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_9_0-alpha_2/s/e66806169480601930ec9cfca972815e/lwr_everywhereAmd.js":["lwr/everywhereAmd/v/0_9_0-alpha_2"],"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_9_0-alpha_2/s/6cbce1f9b7e815ee862b26f37ff4c76e/lwr_vault.js":["lwr/vault/v/0_9_0-alpha_2"]},"index":{"@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_2":"/1/module/amd/1/l/en-US/mi/%40lwrjs%2Fapp-service%2Famd-bootstrap%2Fmodule%2Famd%2Fv%2F0_9_0-alpha_2/s/c40e6caf07454ce13961de8ca76ab7f0/@lwrjs_app-service_amd-bootstrap_module_amd.js","lwr/init/v/0_9_0-alpha_2":"/1/module/amd/1/l/en-US/mi/lwr%2Finit%2Fv%2F0_9_0-alpha_2/s/6258bcb20cc2d5d6a9f3c5a6f9d0acaf/lwr_init.js","lwr/metrics/v/0_9_0-alpha_2":"/1/module/amd/1/l/en-US/mi/lwr%2Fmetrics%2Fv%2F0_9_0-alpha_2/s/dfbc827104d50ff7d16b59c9d0e06aca/lwr_metrics.js","lwr/profiler/v/0_9_0-alpha_2":"/1/module/amd/1/l/en-US/mi/lwr%2Fprofiler%2Fv%2F0_9_0-alpha_2/s/5a10236d8c52bc9f6dee22875cd7016d/lwr_profiler.js","lwc/v/2_17_0":"/1/module/amd/1/l/en-US/mi/lwc%2Fv%2F2_17_0/s/60dae7a83431c35c02c87ca8aaaa6044/lwc.js","lwr/everywhereAmd/v/0_9_0-alpha_2":"/1/module/amd/1/l/en-US/mi/lwr%2FeverywhereAmd%2Fv%2F0_9_0-alpha_2/s/e66806169480601930ec9cfca972815e/lwr_everywhereAmd.js","lwr/vault/v/0_9_0-alpha_2":"/1/module/amd/1/l/en-US/mi/lwr%2Fvault%2Fv%2F0_9_0-alpha_2/s/6cbce1f9b7e815ee862b26f37ff4c76e/lwr_vault.js"},"rootComponents":["lwr/everywhereAmd/v/0_9_0-alpha_2"],"requiredModules":["@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_2"],"preloadModules":["lwr/everywhereAmd/v/0_9_0-alpha_2"],"endpoints":{"uris":{"mapping":"/1/mapping/amd/1/l/en-US/mp/"}}});
|
|
5
|
-
globalThis.process = { env: { NODE_ENV: "compat" } };
|
|
6
|
-
// Appended by Static Site Generator
|
|
7
|
-
if (!globalThis.LWR.imports) { globalThis.LWR.imports = {}; }
|
|
8
|
-
Object.assign(globalThis.LWR.imports, {"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_9_0-alpha_2/s/a7fb654bda624ba7d02dcd76e8d1217c/lwr_loader.js":["lwr/loader/v/0_9_0-alpha_2"]})
|
|
9
|
-
if (!globalThis.LWR.index) { globalThis.LWR.index = {}; }
|
|
10
|
-
Object.assign(globalThis.LWR.index, {"lwr/loader/v/0_9_0-alpha_2":"/1/module/amd/1/l/en-US/mi/lwr%2Floader%2Fv%2F0_9_0-alpha_2/s/a7fb654bda624ba7d02dcd76e8d1217c/lwr_loader.js"})
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
LWR.define("@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_2", ["lwr/loader/v/0_9_0-alpha_2", "lwr/init/v/0_9_0-alpha_2"], function(_0_9_0Alpha_2$1, _0_9_0Alpha_2) {
|
|
2
|
-
"use strict";
|
|
3
|
-
const clientBootstrapConfig = globalThis.LWR;
|
|
4
|
-
const {rootComponents, ssrProps} = clientBootstrapConfig;
|
|
5
|
-
Promise.all(rootComponents.map(async (rootSpecifier) => {
|
|
6
|
-
const element = _0_9_0Alpha_2.toKebabCase(rootSpecifier);
|
|
7
|
-
return _0_9_0Alpha_2$1.load(rootSpecifier, "@lwrjs/app-service/amd-bootstrap/module/amd/v/0_9_0-alpha_2").then(({default: Ctor}) => {
|
|
8
|
-
_0_9_0Alpha_2.init([[element, Ctor]], ssrProps);
|
|
9
|
-
});
|
|
10
|
-
}));
|
|
11
|
-
globalThis.LWR = Object.freeze({
|
|
12
|
-
define: globalThis.LWR.define
|
|
13
|
-
});
|
|
14
|
-
});
|