@lwrjs/module-registry 0.12.0-alpha.23 → 0.12.0-alpha.24

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.
@@ -74,8 +74,6 @@ async function getModuleRecord(compiledModule, registry, runtimeParams) {
74
74
  const dynamicImports = [];
75
75
  const {compiledMetadata: defaultCompilerMetadata, moduleEntry, version} = compiledModule;
76
76
  const compiledMetadata = defaultCompilerMetadata || {};
77
- const {bundleConfig} = registry.getConfig();
78
- const {external: externalsConfig} = bundleConfig || {};
79
77
  const {
80
78
  imports: compiledModuleImports,
81
79
  dynamicImports: compiledModuleDynamicImports,
@@ -129,20 +127,6 @@ async function getModuleRecord(compiledModule, registry, runtimeParams) {
129
127
  }
130
128
  ]
131
129
  });
132
- } else if (externalsConfig && externalsConfig[moduleSpecifier] !== void 0) {
133
- dynamicImports.push({
134
- specifier: moduleSpecifier,
135
- sourceSpecifier: moduleSpecifier,
136
- version: import_shared_utils.VERSION_NOT_PROVIDED,
137
- name: moduleNameType,
138
- moduleNameType,
139
- locations: [
140
- {
141
- location,
142
- importLocation
143
- }
144
- ]
145
- });
146
130
  } else if (moduleSpecifier.startsWith(".")) {
147
131
  const {locations, ...resolvedImport} = await resolveRelativeImport(registry, moduleSpecifier, moduleEntry, version, location, runtimeParams);
148
132
  dynamicImports.push({
@@ -1,5 +1,5 @@
1
1
  import path from 'path';
2
- import { explodeSpecifier, getImportMetadata, ModuleNameType, VERSION_NOT_PROVIDED, } from '@lwrjs/shared-utils';
2
+ import { explodeSpecifier, getImportMetadata, ModuleNameType } from '@lwrjs/shared-utils';
3
3
  async function resolveRelativeImport(registry, moduleSpecifier, importeeEntry, version, location, runtimeParams) {
4
4
  // Resolve any relative parts in the import specifier
5
5
  // eg: "c/app#app.html" => "c/app"
@@ -56,8 +56,6 @@ export async function getModuleRecord(compiledModule, registry, runtimeParams) {
56
56
  const dynamicImports = [];
57
57
  const { compiledMetadata: defaultCompilerMetadata, moduleEntry, version } = compiledModule;
58
58
  const compiledMetadata = defaultCompilerMetadata || {};
59
- const { bundleConfig } = registry.getConfig();
60
- const { external: externalsConfig } = bundleConfig || {};
61
59
  // Get imports metadata and merge with rest of compiledModule metadata
62
60
  const { imports: compiledModuleImports, dynamicImports: compiledModuleDynamicImports, importMeta, } = await getImportMetadata(compiledModule.compiledSource);
63
61
  Object.assign(compiledMetadata, {
@@ -114,21 +112,6 @@ export async function getModuleRecord(compiledModule, registry, runtimeParams) {
114
112
  ],
115
113
  });
116
114
  }
117
- else if (externalsConfig && externalsConfig[moduleSpecifier] !== undefined) {
118
- dynamicImports.push({
119
- specifier: moduleSpecifier,
120
- sourceSpecifier: moduleSpecifier,
121
- version: VERSION_NOT_PROVIDED,
122
- name: moduleNameType,
123
- moduleNameType,
124
- locations: [
125
- {
126
- location,
127
- importLocation,
128
- },
129
- ],
130
- });
131
- }
132
115
  else if (moduleSpecifier.startsWith('.')) {
133
116
  // eslint-disable-next-line no-await-in-loop
134
117
  const { locations, ...resolvedImport } = await resolveRelativeImport(registry, moduleSpecifier, moduleEntry, version, location, runtimeParams);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.12.0-alpha.23",
7
+ "version": "0.12.0-alpha.24",
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.23",
38
- "@lwrjs/diagnostics": "0.12.0-alpha.23",
39
- "@lwrjs/shared-utils": "0.12.0-alpha.23",
37
+ "@lwrjs/config": "0.12.0-alpha.24",
38
+ "@lwrjs/diagnostics": "0.12.0-alpha.24",
39
+ "@lwrjs/shared-utils": "0.12.0-alpha.24",
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.23"
44
+ "@lwrjs/types": "0.12.0-alpha.24"
45
45
  },
46
46
  "engines": {
47
47
  "node": ">=18.0.0"
48
48
  },
49
- "gitHead": "4e300b1ead129a143fd817a7e7a57f14be447754"
49
+ "gitHead": "3f78e567d4d64485d57e0b4bfa174175be3ca031"
50
50
  }