@lwrjs/view-registry 0.12.0-alpha.26 → 0.12.0-alpha.28
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.
|
@@ -34,8 +34,7 @@ var import_utils2 = __toModule(require("./utils.cjs"));
|
|
|
34
34
|
var import_preload_utils = __toModule(require("./preload-utils.cjs"));
|
|
35
35
|
function includeIdFactory(bundleConfig) {
|
|
36
36
|
return (moduleRef) => {
|
|
37
|
-
|
|
38
|
-
if (external && external[moduleRef.specifier] !== void 0) {
|
|
37
|
+
if ((0, import_shared_utils.isExternalSpecifier)(moduleRef.specifier, bundleConfig)) {
|
|
39
38
|
return false;
|
|
40
39
|
}
|
|
41
40
|
return true;
|
|
@@ -63,7 +63,7 @@ function getViewBootstrapConfigurationResource(viewInfo, config, runtimeEnvironm
|
|
|
63
63
|
`globalThis.LWR = {...globalThis.LWR, env: ${JSON.stringify(lwrEnv)}};`,
|
|
64
64
|
`globalThis.process={...globalThis.process,env:{...globalThis.process?.env,...${JSON.stringify(nodeEnv)}}};`,
|
|
65
65
|
`globalThis.lwcRuntimeFlags = { ENABLE_MIXED_SHADOW_MODE: ${viewInfo.mixedMode} };`,
|
|
66
|
-
debug && debugMessage && `console.
|
|
66
|
+
debug && debugMessage && `console.error(${JSON.stringify(debugMessage)});`
|
|
67
67
|
].filter(Boolean).join("\n");
|
|
68
68
|
if (viewInfo.configAsSrc) {
|
|
69
69
|
const viewUrl = viewInfo.url || "/";
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { logger } from '@lwrjs/diagnostics';
|
|
2
|
-
import { kebabCaseToModuleSpecifier, getModuleGraphs, GraphDepth, getModuleUriPrefix, explodeSpecifier, isBundler, getHydrateDirective, isGroupie, } from '@lwrjs/shared-utils';
|
|
2
|
+
import { kebabCaseToModuleSpecifier, getModuleGraphs, GraphDepth, getModuleUriPrefix, explodeSpecifier, isBundler, getHydrateDirective, isGroupie, isExternalSpecifier, } from '@lwrjs/shared-utils';
|
|
3
3
|
import { AppResourceEnum, getAppSpecifier } from '@lwrjs/app-service/identity';
|
|
4
4
|
import { generateHtmlTag, getModuleResourceByUri } from '../utils.js';
|
|
5
5
|
import { flattenCustomElements, getViewBootstrapConfigurationResource, getViewHmrConfigurationResource, } from './utils.js';
|
|
6
6
|
import { setPreloadModulesMeta, getPreloadModulesMeta } from './preload-utils.js';
|
|
7
7
|
function includeIdFactory(bundleConfig) {
|
|
8
8
|
return (moduleRef) => {
|
|
9
|
-
const { external } = bundleConfig || {};
|
|
10
9
|
// Do not bundle externals, including the loader module, which is auto bundled
|
|
11
10
|
// with the shim + loader combo
|
|
12
|
-
if (
|
|
11
|
+
if (isExternalSpecifier(moduleRef.specifier, bundleConfig)) {
|
|
13
12
|
// Do not include externals in the required imports but also return false to indicate it should not be in the bundle
|
|
14
13
|
return false;
|
|
15
14
|
}
|
|
@@ -38,7 +38,7 @@ export function getViewBootstrapConfigurationResource(viewInfo, config, runtimeE
|
|
|
38
38
|
`globalThis.LWR = {...globalThis.LWR, env: ${JSON.stringify(lwrEnv)}};`,
|
|
39
39
|
`globalThis.process={...globalThis.process,env:{...globalThis.process?.env,...${JSON.stringify(nodeEnv)}}};`,
|
|
40
40
|
`globalThis.lwcRuntimeFlags = { ENABLE_MIXED_SHADOW_MODE: ${viewInfo.mixedMode} };`,
|
|
41
|
-
debug && debugMessage && `console.
|
|
41
|
+
debug && debugMessage && `console.error(${JSON.stringify(debugMessage)});`,
|
|
42
42
|
]
|
|
43
43
|
.filter(Boolean)
|
|
44
44
|
.join('\n');
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.12.0-alpha.
|
|
7
|
+
"version": "0.12.0-alpha.28",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"build/**/*.d.ts"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@lwrjs/app-service": "0.12.0-alpha.
|
|
34
|
-
"@lwrjs/diagnostics": "0.12.0-alpha.
|
|
35
|
-
"@lwrjs/instrumentation": "0.12.0-alpha.
|
|
36
|
-
"@lwrjs/shared-utils": "0.12.0-alpha.
|
|
33
|
+
"@lwrjs/app-service": "0.12.0-alpha.28",
|
|
34
|
+
"@lwrjs/diagnostics": "0.12.0-alpha.28",
|
|
35
|
+
"@lwrjs/instrumentation": "0.12.0-alpha.28",
|
|
36
|
+
"@lwrjs/shared-utils": "0.12.0-alpha.28",
|
|
37
37
|
"lru-cache": "^10.2.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@lwrjs/types": "0.12.0-alpha.
|
|
40
|
+
"@lwrjs/types": "0.12.0-alpha.28"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=18.0.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "5228219171bb2d28a4c7b32f1f6238e396ac3cbd"
|
|
46
46
|
}
|