@emailens/engine 0.11.2 → 0.11.3

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/dist/index.js CHANGED
@@ -10587,8 +10587,13 @@ function transformForAllClients(html, framework) {
10587
10587
  throw new Error(`HTML input exceeds ${MAX_HTML_SIZE / 1024}KB limit.`);
10588
10588
  }
10589
10589
  const downleveled = downlevelCSS(html);
10590
+ const outlookSource = /<!--\[if/i.test(html) ? downlevelCSS(renderOutlookBranch(html)) : downleveled;
10590
10591
  return Object.keys(CLIENT_CONFIGS).map(
10591
- (clientId) => applyTransform(downleveled, CLIENT_CONFIGS[clientId], framework)
10592
+ (clientId) => applyTransform(
10593
+ clientId === "outlook-windows-legacy" ? outlookSource : downleveled,
10594
+ CLIENT_CONFIGS[clientId],
10595
+ framework
10596
+ )
10592
10597
  );
10593
10598
  }
10594
10599