@lwrjs/module-bundler 0.4.7 → 0.5.0
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.
|
@@ -21,7 +21,7 @@ export async function amdBundler(moduleId, moduleRegistry, runtimeEnvironment, r
|
|
|
21
21
|
},
|
|
22
22
|
}, moduleRegistry, moduleRegistry, runtimeEnvironment, runtimeParams, visited);
|
|
23
23
|
const rootModule = moduleGraphs.graphs[0];
|
|
24
|
-
// type cast to LinkedModuleDefinition
|
|
24
|
+
// type cast to LinkedModuleDefinition because only the moduleRegistry is used
|
|
25
25
|
const rootModuleDef = moduleGraphs.linkedDefinitions[rootModule.specifier];
|
|
26
26
|
const { id, name, namespace, version, specifier } = rootModuleDef;
|
|
27
27
|
// Collect dynamic imports
|
|
@@ -33,7 +33,7 @@ export async function amdBundler(moduleId, moduleRegistry, runtimeEnvironment, r
|
|
|
33
33
|
});
|
|
34
34
|
// Add any dynamic imports from each of the linked static imports in the moduleGraph
|
|
35
35
|
moduleGraphs.graphs[0].static.forEach((m) => {
|
|
36
|
-
// type cast to LinkedModuleDefinition
|
|
36
|
+
// type cast to LinkedModuleDefinition because only the moduleRegistry is used
|
|
37
37
|
const d = moduleGraphs.linkedDefinitions[m];
|
|
38
38
|
// D would be null if excluded from the bundle
|
|
39
39
|
d?.linkedModuleRecord.dynamicImports?.forEach((e) => {
|
|
@@ -63,6 +63,7 @@ export function bundleDefinitions(options) {
|
|
|
63
63
|
// so we take the original instead
|
|
64
64
|
const { namespace, name, version, scope } = refImport;
|
|
65
65
|
const specifier = getSpecifier({ namespace, name });
|
|
66
|
+
// eslint-disable-next-line no-await-in-loop
|
|
66
67
|
refModuleDef = await moduleRegistry.getLinkedModule({
|
|
67
68
|
specifier,
|
|
68
69
|
namespace,
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.5.0",
|
|
8
8
|
"homepage": "https://lwr.dev/",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"build/**/*.d.ts"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@lwrjs/shared-utils": "0.
|
|
33
|
+
"@lwrjs/shared-utils": "0.5.0",
|
|
34
34
|
"rollup": "~2.45.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@lwrjs/types": "0.
|
|
37
|
+
"@lwrjs/types": "0.5.0"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=14.15.4 <15"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "8b46ed1d391c744926ad65b442e5a9f9969d832e"
|
|
43
43
|
}
|