@chialab/cjs-to-esm
Advanced tools
Comparing version 0.17.8 to 0.17.9
@@ -273,3 +273,3 @@ import { TokenType, parse, walk, getBlock, getStatement, parseCommonjs, parseEsm, createEmptySourcemapComment } from '@chialab/estransform'; | ||
if (typeof value === 'function') { | ||
return value.bind(__umdGlobal); | ||
return Object.assign(value.bind(__umdGlobal), value); | ||
} | ||
@@ -276,0 +276,0 @@ return value; |
{ | ||
"name": "@chialab/cjs-to-esm", | ||
"type": "module", | ||
"version": "0.17.8", | ||
"version": "0.17.9", | ||
"description": "A commonjs to esm converter.", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
19246