@omnia/tooling-vue 8.0.342-dev → 8.0.344-dev

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.
@@ -1332,18 +1332,19 @@ function ensureAddDependencyToCommonChunk(currentServiceId, manifestByTypeCollec
1332
1332
  let bundleOptions = getBuildOption().bundleOptions;
1333
1333
  if (manifestByTypeCollection && bundleOptions && bundleOptions.commonsChunk) {
1334
1334
  var commonChunkManifestId = bundleOptions.commonsChunk.name.toString();
1335
- Object.keys(manifestByTypeCollection).forEach((name) => {
1336
- manifestByTypeCollection[name].forEach(manifest => {
1337
- if (manifest.resourceId
1338
- && manifest.resourceId !== commonChunkManifestId
1339
- && !$.tooling.utils.isNull(manifest.dependingOnManifests)
1340
- && manifest.dependingOnManifests.find(d => d.resourceId === commonChunkManifestId) === undefined) {
1341
- manifest.dependingOnManifests.push({
1342
- resourceId: commonChunkManifestId,
1343
- omniaServiceId: currentServiceId
1344
- });
1345
- }
1346
- });
1335
+ [...(manifestByTypeCollection.resource || [])]
1336
+ .concat(manifestByTypeCollection.webcomponent || [])
1337
+ .concat(manifestByTypeCollection.groupedResouresAndComponents || [])
1338
+ .forEach(manifest => {
1339
+ if (manifest.resourceId
1340
+ && manifest.resourceId !== commonChunkManifestId
1341
+ && !$.tooling.utils.isNull(manifest.dependingOnManifests)
1342
+ && manifest.dependingOnManifests.find(d => d.resourceId === commonChunkManifestId) === undefined) {
1343
+ manifest.dependingOnManifests.push({
1344
+ resourceId: (0, fx_models_1.maybeGuid)(commonChunkManifestId),
1345
+ omniaServiceId: currentServiceId
1346
+ });
1347
+ }
1347
1348
  });
1348
1349
  }
1349
1350
  }
@@ -1351,9 +1352,9 @@ function buildReferenceManifest(currentEntry, entries) {
1351
1352
  var manifests = [];
1352
1353
  var dynamicReferenceManifests = [];
1353
1354
  let buildOptions = getBuildOption();
1354
- var currentEntryName = Object.keys(currentEntry)[0];
1355
1355
  if (buildOptions && buildOptions.bundleOptions && buildOptions.bundleOptions.commonsChunk)
1356
1356
  return dynamicReferenceManifests.concat(buildReferenceManifestFromConfig(currentEntryName));
1357
+ var currentEntryName = Object.keys(currentEntry)[0];
1357
1358
  // exclude pre-built webpack manifest
1358
1359
  if ($.isExtensionEnv
1359
1360
  || (currentEntryName.indexOf(o$.enums.omniaResourceManifests.Vendor.toString()) === -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/tooling-vue",
3
3
  "license": "MIT",
4
- "version": "8.0.342-dev",
4
+ "version": "8.0.344-dev",
5
5
  "description": "Used to bundle and serve manifests web component that build on Vue framework.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -19,8 +19,8 @@
19
19
  ],
20
20
  "author": "Omnia Digital Workplace AB",
21
21
  "dependencies": {
22
- "@omnia/fx-models": "8.0.342-dev",
23
- "@omnia/tooling-composers": "8.0.342-dev",
22
+ "@omnia/fx-models": "8.0.344-dev",
23
+ "@omnia/tooling-composers": "8.0.344-dev",
24
24
  "@types/mousetrap": "1.5.34",
25
25
  "@types/quill": "1.3.6",
26
26
  "@types/zepto": "1.0.29",