@lwrjs/view-registry 0.19.6 → 0.19.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.
|
@@ -33,6 +33,7 @@ var import_utils = __toModule(require("../utils.cjs"));
|
|
|
33
33
|
var import_utils2 = __toModule(require("./utils.cjs"));
|
|
34
34
|
var import_preload_utils = __toModule(require("./preload-utils.cjs"));
|
|
35
35
|
var import_lru_cache = __toModule(require("lru-cache"));
|
|
36
|
+
var import_shared_utils2 = __toModule(require("@lwrjs/shared-utils"));
|
|
36
37
|
function includeIdFactory(bundleConfig) {
|
|
37
38
|
return (moduleRef) => {
|
|
38
39
|
if ((0, import_shared_utils.isExternalSpecifier)(moduleRef.specifier, bundleConfig)) {
|
|
@@ -336,7 +337,7 @@ async function getHtmlResources(view, viewParams, resourceContext) {
|
|
|
336
337
|
};
|
|
337
338
|
}
|
|
338
339
|
function addIncludedModulesToImports(bundleDef, imports, uri) {
|
|
339
|
-
if ((0, import_shared_utils.isMrtBundle)()) {
|
|
340
|
+
if (!(0, import_shared_utils2.getFeatureFlags)().DISABLE_INCLUDED_IMPORT_MAP && (0, import_shared_utils.isMrtBundle)()) {
|
|
340
341
|
bundleDef?.bundleRecord?.includedModules?.forEach((module2) => {
|
|
341
342
|
if (!imports[module2]) {
|
|
342
343
|
imports[module2] = uri;
|
|
@@ -5,6 +5,7 @@ import { addExternalScriptNonce, generateHtmlTag, getModuleResource, getModuleRe
|
|
|
5
5
|
import { flattenCustomElements, getBundleDefinition, getBundleIntegrity, getViewBootstrapConfigurationResource, getViewHmrConfigurationResource, } from './utils.js';
|
|
6
6
|
import { setPreloadModulesMeta, getPreloadModulesMeta, getPreloadModuleList, } from './preload-utils.js';
|
|
7
7
|
import { LRUCache } from 'lru-cache';
|
|
8
|
+
import { getFeatureFlags } from '@lwrjs/shared-utils';
|
|
8
9
|
function includeIdFactory(bundleConfig) {
|
|
9
10
|
return (moduleRef) => {
|
|
10
11
|
// Do not bundle externals, including the loader module, which is auto bundled
|
|
@@ -389,7 +390,7 @@ export async function getHtmlResources(view, viewParams, resourceContext) {
|
|
|
389
390
|
}
|
|
390
391
|
// Add included modules to imports if not already present
|
|
391
392
|
function addIncludedModulesToImports(bundleDef, imports, uri) {
|
|
392
|
-
if (isMrtBundle()) {
|
|
393
|
+
if (!getFeatureFlags().DISABLE_INCLUDED_IMPORT_MAP && isMrtBundle()) {
|
|
393
394
|
bundleDef?.bundleRecord?.includedModules?.forEach((module) => {
|
|
394
395
|
if (!imports[module]) {
|
|
395
396
|
imports[module] = uri;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.19.
|
|
7
|
+
"version": "0.19.8",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"build": "tsc -b"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@lwrjs/app-service": "0.19.
|
|
37
|
-
"@lwrjs/config": "0.19.
|
|
38
|
-
"@lwrjs/diagnostics": "0.19.
|
|
39
|
-
"@lwrjs/instrumentation": "0.19.
|
|
40
|
-
"@lwrjs/shared-utils": "0.19.
|
|
36
|
+
"@lwrjs/app-service": "0.19.8",
|
|
37
|
+
"@lwrjs/config": "0.19.8",
|
|
38
|
+
"@lwrjs/diagnostics": "0.19.8",
|
|
39
|
+
"@lwrjs/instrumentation": "0.19.8",
|
|
40
|
+
"@lwrjs/shared-utils": "0.19.8",
|
|
41
41
|
"lru-cache": "^10.4.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@lwrjs/types": "0.19.
|
|
44
|
+
"@lwrjs/types": "0.19.8"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=20.0.0"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"volta": {
|
|
50
50
|
"extends": "../../../package.json"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "318e3e2bde6d04a218cc11849f791b7de85e6f9e"
|
|
53
53
|
}
|