@lwrjs/core 0.9.0-alpha.21 → 0.9.0-alpha.22
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.
|
@@ -86,8 +86,8 @@ var Hmr = class {
|
|
|
86
86
|
version
|
|
87
87
|
};
|
|
88
88
|
const modulesCacheId = (0, import_shared_utils.getCacheKeyFromJson)({format, compat, debug});
|
|
89
|
-
const newUri = moduleRegistry.
|
|
90
|
-
const oldUri = moduleRegistry.
|
|
89
|
+
const newUri = moduleRegistry.resolveModuleUriSync(moduleId, signature, runtimeEnvironment, runtimeParams);
|
|
90
|
+
const oldUri = moduleRegistry.resolveModuleUriSync(moduleId, "latest", runtimeEnvironment, runtimeParams);
|
|
91
91
|
if (this.connectedClients) {
|
|
92
92
|
for (const [ws, cacheId] of this.connectedClients) {
|
|
93
93
|
if (cacheId === modulesCacheId) {
|
|
@@ -178,7 +178,7 @@ var SiteGenerator = class {
|
|
|
178
178
|
addBundleToSiteMetadata(bundleDefinition, url, siteConfig) {
|
|
179
179
|
if (siteConfig.siteMetadata) {
|
|
180
180
|
const specifier = bundleDefinition.specifier;
|
|
181
|
-
const imports = bundleDefinition.bundleRecord.imports?.map((moduleRef) =>
|
|
181
|
+
const imports = bundleDefinition.bundleRecord.imports?.map((moduleRef) => (0, import_shared_utils.getSpecifier)(moduleRef)) || [];
|
|
182
182
|
const bundleMetadata = {
|
|
183
183
|
version: bundleDefinition.version,
|
|
184
184
|
path: decodeURIComponent(url),
|
|
@@ -52,8 +52,8 @@ class Hmr {
|
|
|
52
52
|
version,
|
|
53
53
|
};
|
|
54
54
|
const modulesCacheId = getCacheKeyFromJson({ format, compat, debug });
|
|
55
|
-
const newUri = moduleRegistry.
|
|
56
|
-
const oldUri = moduleRegistry.
|
|
55
|
+
const newUri = moduleRegistry.resolveModuleUriSync(moduleId, signature, runtimeEnvironment, runtimeParams);
|
|
56
|
+
const oldUri = moduleRegistry.resolveModuleUriSync(moduleId, 'latest', runtimeEnvironment, runtimeParams);
|
|
57
57
|
if (this.connectedClients) {
|
|
58
58
|
for (const [ws, cacheId] of this.connectedClients) {
|
|
59
59
|
if (cacheId === modulesCacheId) {
|
|
@@ -231,7 +231,7 @@ export default class SiteGenerator {
|
|
|
231
231
|
addBundleToSiteMetadata(bundleDefinition, url, siteConfig) {
|
|
232
232
|
if (siteConfig.siteMetadata) {
|
|
233
233
|
const specifier = bundleDefinition.specifier;
|
|
234
|
-
const imports = bundleDefinition.bundleRecord.imports?.map((moduleRef) => moduleRef
|
|
234
|
+
const imports = bundleDefinition.bundleRecord.imports?.map((moduleRef) => getSpecifier(moduleRef)) || [];
|
|
235
235
|
const bundleMetadata = {
|
|
236
236
|
version: bundleDefinition.version,
|
|
237
237
|
path: decodeURIComponent(url),
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.9.0-alpha.
|
|
7
|
+
"version": "0.9.0-alpha.22",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -37,29 +37,29 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@locker/compiler": "0.18.9",
|
|
40
|
-
"@lwrjs/app-service": "0.9.0-alpha.
|
|
41
|
-
"@lwrjs/asset-registry": "0.9.0-alpha.
|
|
42
|
-
"@lwrjs/asset-transformer": "0.9.0-alpha.
|
|
43
|
-
"@lwrjs/base-view-provider": "0.9.0-alpha.
|
|
44
|
-
"@lwrjs/base-view-transformer": "0.9.0-alpha.
|
|
45
|
-
"@lwrjs/client-modules": "0.9.0-alpha.
|
|
46
|
-
"@lwrjs/config": "0.9.0-alpha.
|
|
47
|
-
"@lwrjs/diagnostics": "0.9.0-alpha.
|
|
48
|
-
"@lwrjs/fs-asset-provider": "0.9.0-alpha.
|
|
49
|
-
"@lwrjs/html-view-provider": "0.9.0-alpha.
|
|
50
|
-
"@lwrjs/loader": "0.9.0-alpha.
|
|
51
|
-
"@lwrjs/lwc-module-provider": "0.9.0-alpha.
|
|
52
|
-
"@lwrjs/markdown-view-provider": "0.9.0-alpha.
|
|
53
|
-
"@lwrjs/module-bundler": "0.9.0-alpha.
|
|
54
|
-
"@lwrjs/module-registry": "0.9.0-alpha.
|
|
55
|
-
"@lwrjs/npm-module-provider": "0.9.0-alpha.
|
|
56
|
-
"@lwrjs/nunjucks-view-provider": "0.9.0-alpha.
|
|
57
|
-
"@lwrjs/o11y": "0.9.0-alpha.
|
|
58
|
-
"@lwrjs/resource-registry": "0.9.0-alpha.
|
|
59
|
-
"@lwrjs/router": "0.9.0-alpha.
|
|
60
|
-
"@lwrjs/server": "0.9.0-alpha.
|
|
61
|
-
"@lwrjs/shared-utils": "0.9.0-alpha.
|
|
62
|
-
"@lwrjs/view-registry": "0.9.0-alpha.
|
|
40
|
+
"@lwrjs/app-service": "0.9.0-alpha.22",
|
|
41
|
+
"@lwrjs/asset-registry": "0.9.0-alpha.22",
|
|
42
|
+
"@lwrjs/asset-transformer": "0.9.0-alpha.22",
|
|
43
|
+
"@lwrjs/base-view-provider": "0.9.0-alpha.22",
|
|
44
|
+
"@lwrjs/base-view-transformer": "0.9.0-alpha.22",
|
|
45
|
+
"@lwrjs/client-modules": "0.9.0-alpha.22",
|
|
46
|
+
"@lwrjs/config": "0.9.0-alpha.22",
|
|
47
|
+
"@lwrjs/diagnostics": "0.9.0-alpha.22",
|
|
48
|
+
"@lwrjs/fs-asset-provider": "0.9.0-alpha.22",
|
|
49
|
+
"@lwrjs/html-view-provider": "0.9.0-alpha.22",
|
|
50
|
+
"@lwrjs/loader": "0.9.0-alpha.22",
|
|
51
|
+
"@lwrjs/lwc-module-provider": "0.9.0-alpha.22",
|
|
52
|
+
"@lwrjs/markdown-view-provider": "0.9.0-alpha.22",
|
|
53
|
+
"@lwrjs/module-bundler": "0.9.0-alpha.22",
|
|
54
|
+
"@lwrjs/module-registry": "0.9.0-alpha.22",
|
|
55
|
+
"@lwrjs/npm-module-provider": "0.9.0-alpha.22",
|
|
56
|
+
"@lwrjs/nunjucks-view-provider": "0.9.0-alpha.22",
|
|
57
|
+
"@lwrjs/o11y": "0.9.0-alpha.22",
|
|
58
|
+
"@lwrjs/resource-registry": "0.9.0-alpha.22",
|
|
59
|
+
"@lwrjs/router": "0.9.0-alpha.22",
|
|
60
|
+
"@lwrjs/server": "0.9.0-alpha.22",
|
|
61
|
+
"@lwrjs/shared-utils": "0.9.0-alpha.22",
|
|
62
|
+
"@lwrjs/view-registry": "0.9.0-alpha.22",
|
|
63
63
|
"chokidar": "^3.5.3",
|
|
64
64
|
"esbuild": "^0.9.7",
|
|
65
65
|
"fs-extra": "^10.1.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"ws": "^8.8.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@lwrjs/types": "0.9.0-alpha.
|
|
72
|
+
"@lwrjs/types": "0.9.0-alpha.22",
|
|
73
73
|
"@types/ws": "^8.5.3"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"engines": {
|
|
79
79
|
"node": ">=14.15.4 <19"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "d7e7a6e84df652a09d78b9b0fadca271a438a01c"
|
|
82
82
|
}
|