Comparing version 1.1.0 to 1.2.0
@@ -213,5 +213,9 @@ module.exports.runTransform = runTransform; | ||
if (str.indexWithin("async ", skipStart, DISTANCE, false) !== -1) { | ||
skipStart += 6; // 6 === "async ".length; | ||
} | ||
let isDefaultExport = false; | ||
if (str.indexWithin("default ", skipStart, DISTANCE, false) !== -1) { | ||
skipStart += 9; // 8 === "default ".length; | ||
skipStart += 8; // 8 === "default ".length; | ||
isDefaultExport = true; | ||
@@ -218,0 +222,0 @@ } |
{ | ||
"name": "esm-to-cjs", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Transform ESM to Common JS for present NodeJS, without any junk wrappers or useless renaming", | ||
"keywords": [ | ||
"commonjs", | ||
"cjs", | ||
"es-module", | ||
"transpile", | ||
"compile", | ||
@@ -8,0 +11,0 @@ "esm", |
17959
344