@mapbox/mapbox-gl-style-spec 14.12.0 → 14.13.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.
package/diff.ts CHANGED
@@ -444,7 +444,9 @@ export function diffImports(before: Array<ImportSpecification> | null | undefine
444
444
  // update imports
445
445
  for (const afterImport of after) {
446
446
  const beforeImport = beforeIndex[afterImport.id];
447
- if (!beforeImport || isEqual(beforeImport, afterImport)) continue;
447
+ if (!beforeImport) continue;
448
+ delete beforeImport.data;
449
+ if (isEqual(beforeImport, afterImport)) continue;
448
450
 
449
451
  commands.push({command: operations.updateImport, args: [afterImport.id, afterImport]});
450
452
  }