diff --git a/packages/mfsu/src/depBuilder/getESBuildEntry.ts b/packages/mfsu/src/depBuilder/getESBuildEntry.ts index be68f3b96ef5..5c1ab1f6ce40 100644 --- a/packages/mfsu/src/depBuilder/getESBuildEntry.ts +++ b/packages/mfsu/src/depBuilder/getESBuildEntry.ts @@ -6,10 +6,10 @@ const ES_INTEROP_FUNC = `__exportStar`; const ES_INTEROP_HELPER = ` var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + if (k !== '__esModule') Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - o[k2] = m[k]; + if (k !== '__esModule') o[k2] = m[k]; })); var ${ES_INTEROP_FUNC} = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);