Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.9.1 "export name annotations" generates js output with syntax error #960

Comments

@shigma
Copy link

shigma commented Mar 12, 2021

Input

export default xxx
export const name = xxx
export function apply() {}

Output

// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  apply,
  default, // syntax error here
  name
});
@vladmandic
Copy link

even simpler here, generates syntax error:

// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  default
});

@evanw
Copy link
Owner

evanw commented Mar 12, 2021

Crap, sorry about that. I will fix this very soon.

@evanw
Copy link
Owner

evanw commented Mar 12, 2021

This has been fixed in version 0.9.2.

This was referenced Mar 13, 2021
This was referenced Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment