@lwrjs/module-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.
@@ -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.isExternalSpecifier)(moduleLinked.specifier, this.getConfig().bundleConfig)) {
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, isExternalSpecifier, VERSION_NOT_PROVIDED, } from '@lwrjs/shared-utils';
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 external source are already in AMD
154
- !isExternalSpecifier(moduleLinked.specifier, this.getConfig().bundleConfig)) {
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.26",
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",
@@ -34,17 +34,17 @@
34
34
  "build/**/*.d.ts"
35
35
  ],
36
36
  "dependencies": {
37
- "@lwrjs/config": "0.12.0-alpha.26",
38
- "@lwrjs/diagnostics": "0.12.0-alpha.26",
39
- "@lwrjs/shared-utils": "0.12.0-alpha.26",
37
+ "@lwrjs/config": "0.12.0-alpha.28",
38
+ "@lwrjs/diagnostics": "0.12.0-alpha.28",
39
+ "@lwrjs/shared-utils": "0.12.0-alpha.28",
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.26"
44
+ "@lwrjs/types": "0.12.0-alpha.28"
45
45
  },
46
46
  "engines": {
47
47
  "node": ">=18.0.0"
48
48
  },
49
- "gitHead": "56d2243c9149f1b70f106c43de0c574dcf02734c"
49
+ "gitHead": "5228219171bb2d28a4c7b32f1f6238e396ac3cbd"
50
50
  }