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

Export from Does not have expected behaviour #403

Closed
WenheLI opened this issue Sep 21, 2020 · 2 comments
Closed

Export from Does not have expected behaviour #403

WenheLI opened this issue Sep 21, 2020 · 2 comments

Comments

@WenheLI
Copy link

WenheLI commented Sep 21, 2020

While trying to export the following ts code to cjs:

export { compile, PipelineGenContext, PipelineNode } from './compiler';

I got the following output:

__export(exports, {
  PipelineGenContext: () => PipelineGenContext,
  PipelineNode: () => PipelineNode,
  compile: () => compile
});
const compiler = __toModule(require("./compiler"));

It seems that esBuild does not respect export ... from '';.
Any idea on how to add this support?

@evanw
Copy link
Owner

evanw commented Sep 21, 2020

This looks like a duplicate of #393, which has already been fixed. What version of esbuild are you using? You can use esbuild --version to check. The latest version is 0.7.2.

@WenheLI
Copy link
Author

WenheLI commented Sep 21, 2020

This looks like a duplicate of #393, which has already been fixed. What version of esbuild are you using? You can use esbuild --version to check. The latest version is 0.7.2.

Yep, this gets fixed in the latest version. Thanks!

@WenheLI WenheLI closed this as completed Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants