@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.cjs CHANGED
@@ -10706,8 +10706,13 @@ function transformForAllClients(html, framework) {
10706
10706
  throw new Error(`HTML input exceeds ${MAX_HTML_SIZE / 1024}KB limit.`);
10707
10707
  }
10708
10708
  const downleveled = downlevelCSS(html);
10709
+ const outlookSource = /<!--\[if/i.test(html) ? downlevelCSS(renderOutlookBranch(html)) : downleveled;
10709
10710
  return Object.keys(CLIENT_CONFIGS).map(
10710
- (clientId) => applyTransform(downleveled, CLIENT_CONFIGS[clientId], framework)
10711
+ (clientId) => applyTransform(
10712
+ clientId === "outlook-windows-legacy" ? outlookSource : downleveled,
10713
+ CLIENT_CONFIGS[clientId],
10714
+ framework
10715
+ )
10711
10716
  );
10712
10717
  }
10713
10718