File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -228,15 +228,10 @@ func code(isES6 bool) string {
228228 ), module)
229229 }
230230
231- // Converts the module from ESM to CommonJS
232- export var __toCommonJS = /* @__PURE__ */ (cache => {
233- return (module, temp) => {
234- return (cache && cache.get(module)) || (
235- temp = __reExport(__markAsModule({}), module, /* copyDefault */ 1),
236- cache && cache.set(module, temp),
237- temp)
238- }
239- })(typeof WeakMap !== 'undefined' ? new WeakMap : 0)
231+ // Converts the module from ESM to CommonJS. This clones the input module
232+ // object with the addition of a non-enumerable "__esModule" property set
233+ // to "true", which overwrites any existing export named "__esModule".
234+ export var __toCommonJS = module => __reExport(__markAsModule({}), module, /* copyDefault */ 1)
240235
241236 // For TypeScript decorators
242237 // - kind === undefined: class
You can’t perform that action at this time.
0 commit comments