@parathantl/react-email-editor 0.1.4 → 0.1.5

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
@@ -2151,7 +2151,13 @@ var mjmlBrowser = null;
2151
2151
  async function loadMjmlBrowser() {
2152
2152
  if (mjmlBrowser) return mjmlBrowser;
2153
2153
  try {
2154
- mjmlBrowser = (await import("mjml-browser")).default;
2154
+ const mod = await import("mjml-browser");
2155
+ const fn = mod.default ?? mod;
2156
+ if (typeof fn === "function") {
2157
+ mjmlBrowser = fn;
2158
+ } else if (fn && typeof fn.default === "function") {
2159
+ mjmlBrowser = fn.default;
2160
+ }
2155
2161
  return mjmlBrowser;
2156
2162
  } catch {
2157
2163
  return null;