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

cjs option prevents modern file #518

Closed
ozum opened this issue Nov 11, 2019 · 2 comments · Fixed by #570
Closed

cjs option prevents modern file #518

ozum opened this issue Nov 11, 2019 · 2 comments · Fixed by #570
Labels
bug 🐛 duplicate has-fix A fix is available, but may not yet be released. help wanted 👋

Comments

@ozum
Copy link

ozum commented Nov 11, 2019

Hi,

Using version 0.12.0-next.6,

src/x.ts file:

export async function x(a:number): Promise<number> {
  return a + 1;
}

microbundle -f modern: x.modern.js file contains async.
microbundle: Creates x.modern.js file among others, but it does not contain async.
microbundle -f modern,es,umd: x.modern.js contains async.
microbundle -f modern,es,cjs,umd: x.modern.js does not contain async.

According to last 2 examples, problem seems to related cjs option.

Thanks,

@ozum ozum changed the title Without -f flag, modern does not contain async cjs option prevents modern file Nov 11, 2019
@ForsakenHarmony
Copy link
Collaborator

interesting issue

@developit
Copy link
Owner

developit commented Apr 10, 2020

Ah I hadn't noticed this issue - it's the same as #582 and #568.

@developit developit linked a pull request Apr 10, 2020 that will close this issue
@developit developit added the has-fix A fix is available, but may not yet be released. label Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 duplicate has-fix A fix is available, but may not yet be released. help wanted 👋
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants