@lwrjs/module-registry 0.12.0-alpha.25 → 0.12.0-alpha.27
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 +1 -1
- package/build/es/index.js +3 -3
- package/package.json +6 -6
package/build/cjs/index.cjs
CHANGED
|
@@ -157,7 +157,7 @@ var LwrModuleRegistry = class {
|
|
|
157
157
|
}
|
|
158
158
|
const moduleDef = await this.getModule(moduleId, runtimeParams);
|
|
159
159
|
const moduleLinked = await this.createLinkedModuleDefinition(moduleDef, runtimeEnvironment, runtimeParams);
|
|
160
|
-
if (format === "amd" && !bundle && !(0, import_shared_utils.
|
|
160
|
+
if (format === "amd" && !bundle && !(0, import_shared_utils.isExternalFileSpecifier)(moduleLinked.specifier, this.getConfig().bundleConfig)) {
|
|
161
161
|
moduleLinked.linkedSource = (await (0, import_compiler.convertToAmd)(moduleLinked.linkedSource, {
|
|
162
162
|
id: moduleLinked.id
|
|
163
163
|
})).code;
|
package/build/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LwrUnresolvableError, createSingleDiagnosticError, descriptions, logger } from '@lwrjs/diagnostics';
|
|
2
|
-
import { discoverInterchangeableModules, getCacheKeyFromJson, InflightTasks, LATEST_SIGNATURE, ModuleNameType, getGroupName,
|
|
2
|
+
import { discoverInterchangeableModules, getCacheKeyFromJson, InflightTasks, LATEST_SIGNATURE, ModuleNameType, getGroupName, VERSION_NOT_PROVIDED, isExternalFileSpecifier, } from '@lwrjs/shared-utils';
|
|
3
3
|
// dependencies @locker/compiler and rollup are in this package.json is to satisfy the shared-utils/compiler optional dependencies
|
|
4
4
|
import { convertToAmd } from '@lwrjs/shared-utils/compiler';
|
|
5
5
|
import { link } from './linker/linker.js';
|
|
@@ -150,8 +150,8 @@ export class LwrModuleRegistry {
|
|
|
150
150
|
// the bundler will convert the linked source to AMD when bundling is enabled
|
|
151
151
|
if (format === 'amd' &&
|
|
152
152
|
!bundle &&
|
|
153
|
-
// Assume
|
|
154
|
-
!
|
|
153
|
+
// Assume file based externals source are already in AMD
|
|
154
|
+
!isExternalFileSpecifier(moduleLinked.specifier, this.getConfig().bundleConfig)) {
|
|
155
155
|
// convert the linkedSource to the transport AMD format
|
|
156
156
|
moduleLinked.linkedSource = (await convertToAmd(moduleLinked.linkedSource, {
|
|
157
157
|
id: moduleLinked.id,
|
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.27",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"build/**/*.d.ts"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@lwrjs/config": "0.12.0-alpha.
|
|
38
|
-
"@lwrjs/diagnostics": "0.12.0-alpha.
|
|
39
|
-
"@lwrjs/shared-utils": "0.12.0-alpha.
|
|
37
|
+
"@lwrjs/config": "0.12.0-alpha.27",
|
|
38
|
+
"@lwrjs/diagnostics": "0.12.0-alpha.27",
|
|
39
|
+
"@lwrjs/shared-utils": "0.12.0-alpha.27",
|
|
40
40
|
"fs-extra": "^11.1.1",
|
|
41
41
|
"rollup": "^2.78.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@lwrjs/types": "0.12.0-alpha.
|
|
44
|
+
"@lwrjs/types": "0.12.0-alpha.27"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=18.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "84406699a78e2a81882df74a50467e5376a00a90"
|
|
50
50
|
}
|