@lwrjs/base-view-transformer 0.13.7 → 0.13.9
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/build/cjs/index.cjs +6 -1
- package/build/es/index.js +7 -1
- package/package.json +5 -5
package/build/cjs/index.cjs
CHANGED
|
@@ -50,7 +50,12 @@ function baseViewTransformer(options, lwrGlobalContext) {
|
|
|
50
50
|
let override;
|
|
51
51
|
try {
|
|
52
52
|
if (!(0, import_shared_utils.isModuleOrBundleUrl)(ref.url)) {
|
|
53
|
-
|
|
53
|
+
let updatableSpecifier = specifier;
|
|
54
|
+
const {basePath} = runtimeEnvironment;
|
|
55
|
+
if (basePath && basePath !== "/") {
|
|
56
|
+
updatableSpecifier = specifier.replace(basePath, "");
|
|
57
|
+
}
|
|
58
|
+
override = await assetRegistry.resolveAssetUri({specifier: updatableSpecifier, importer}, runtimeEnvironment);
|
|
54
59
|
}
|
|
55
60
|
} catch (e) {
|
|
56
61
|
if (e instanceof import_diagnostics.LwrUnresolvableError || e.diagnostics) {
|
package/build/es/index.js
CHANGED
|
@@ -20,7 +20,13 @@ export default function baseViewTransformer(options, lwrGlobalContext) {
|
|
|
20
20
|
try {
|
|
21
21
|
// We can ignore preload modules and bundle links. They are not going to be in the asset registry
|
|
22
22
|
if (!isModuleOrBundleUrl(ref.url)) {
|
|
23
|
-
|
|
23
|
+
// Temporary solution for 252 backport. In 254 we expect this will be updated in the associated CLWR template
|
|
24
|
+
let updatableSpecifier = specifier;
|
|
25
|
+
const { basePath } = runtimeEnvironment;
|
|
26
|
+
if (basePath && basePath !== '/') {
|
|
27
|
+
updatableSpecifier = specifier.replace(basePath, '');
|
|
28
|
+
}
|
|
29
|
+
override = await assetRegistry.resolveAssetUri({ specifier: updatableSpecifier, importer }, runtimeEnvironment);
|
|
24
30
|
}
|
|
25
31
|
}
|
|
26
32
|
catch (e) {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.13.
|
|
7
|
+
"version": "0.13.9",
|
|
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": "tsc -b"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@lwrjs/diagnostics": "0.13.
|
|
37
|
-
"@lwrjs/shared-utils": "0.13.
|
|
36
|
+
"@lwrjs/diagnostics": "0.13.9",
|
|
37
|
+
"@lwrjs/shared-utils": "0.13.9"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@lwrjs/types": "0.13.
|
|
40
|
+
"@lwrjs/types": "0.13.9"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=18.0.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "c991b71930739c3ac1f411b361a09ac777f7eeb3"
|
|
46
46
|
}
|