@lwrjs/module-bundler 0.8.0-alpha.1 → 0.8.0-alpha.2
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 +3 -4
- package/build/es/index.js +3 -5
- package/package.json +4 -4
package/build/cjs/index.cjs
CHANGED
|
@@ -58,8 +58,8 @@ var LwrModuleBundler = class {
|
|
|
58
58
|
return bundleDef;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
return TASK_POOL.execute(
|
|
61
|
+
return this.inflightBundleDefinitions.execute(cacheKey, () => {
|
|
62
|
+
return TASK_POOL.execute(() => {
|
|
63
63
|
return format === "amd" ? (0, import_amd_bundler.amdBundler)(moduleId, moduleRegistry, runtimeEnvironment, runtimeParams, this.config, bundleConfigOverrides) : (0, import_esm_bundler.esmBundler)(moduleId, moduleRegistry, runtimeEnvironment, runtimeParams, this.config, bundleConfigOverrides).then((bundleDef) => {
|
|
64
64
|
if (!cacheDisabled) {
|
|
65
65
|
this.cache.set(cacheKey, bundleDef);
|
|
@@ -67,7 +67,6 @@ var LwrModuleBundler = class {
|
|
|
67
67
|
return bundleDef;
|
|
68
68
|
});
|
|
69
69
|
}, this);
|
|
70
|
-
};
|
|
71
|
-
return this.inflightBundleDefinitions.execute(cacheKey, createBundlePromiseCtor, this);
|
|
70
|
+
});
|
|
72
71
|
}
|
|
73
72
|
};
|
package/build/es/index.js
CHANGED
|
@@ -38,12 +38,11 @@ export class LwrModuleBundler {
|
|
|
38
38
|
return bundleDef;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
const createBundlePromiseCtor = async () => {
|
|
41
|
+
return this.inflightBundleDefinitions.execute(cacheKey, () => {
|
|
43
42
|
// TODO add to profiling
|
|
44
43
|
// console.log('[INFO] Create Bundle: ', cacheKey);
|
|
45
44
|
// Run theses tasks in a task pool to throttle parallel requests.
|
|
46
|
-
return TASK_POOL.execute(
|
|
45
|
+
return TASK_POOL.execute(() => {
|
|
47
46
|
return format === 'amd'
|
|
48
47
|
? amdBundler(moduleId, moduleRegistry, runtimeEnvironment, runtimeParams, this.config, bundleConfigOverrides)
|
|
49
48
|
: esmBundler(moduleId, moduleRegistry, runtimeEnvironment, runtimeParams, this.config, bundleConfigOverrides).then((bundleDef) => {
|
|
@@ -53,8 +52,7 @@ export class LwrModuleBundler {
|
|
|
53
52
|
return bundleDef;
|
|
54
53
|
});
|
|
55
54
|
}, this);
|
|
56
|
-
};
|
|
57
|
-
return this.inflightBundleDefinitions.execute(cacheKey, createBundlePromiseCtor, this);
|
|
55
|
+
});
|
|
58
56
|
}
|
|
59
57
|
}
|
|
60
58
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.8.0-alpha.
|
|
7
|
+
"version": "0.8.0-alpha.2",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
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.8.0-alpha.
|
|
33
|
+
"@lwrjs/shared-utils": "0.8.0-alpha.2",
|
|
34
34
|
"rollup": "~2.45.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@lwrjs/types": "0.8.0-alpha.
|
|
37
|
+
"@lwrjs/types": "0.8.0-alpha.2"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=14.15.4 <19"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "44bee038acb30418870678d886e3ded4a6afecf0"
|
|
43
43
|
}
|