Update src/compile/wrapModule.ts

Co-Authored-By: Rich-Harris <richard.a.harris@gmail.com>
pull/1866/head
Conduitry 7 years ago committed by GitHub
parent 4ff67de87c
commit d8d125b2d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,7 +65,7 @@ function esm(
${code}
export default ${name};
${module_exports.length > 0 && `export { ${module_exports.join(', ')} };`}`;
${module_exports.length > 0 && `export { ${module_exports.map(e => e.name === e.as ? e.name : `${e.name} as ${e.as}`).join(', ')} };`}`;
}
function cjs(

Loading…
Cancel
Save