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

[Feature] Add export information in the metafile #487

Closed
remorses opened this issue Oct 27, 2020 · 2 comments
Closed

[Feature] Add export information in the metafile #487

remorses opened this issue Oct 27, 2020 · 2 comments

Comments

@remorses
Copy link
Contributor

remorses commented Oct 27, 2020

I need to have access to export information, this could be done in the metafile output, something like this

{
  "outputs": {
    "react/index.js": {
      "exports": ["default", "namedExport", "anotherNamedExport"],
      "imports": [
        ...
      ],
      "inputs": {
        ...
      },
      "bytes": 119
    }
}

My use case is detecting if a bundle is a commonjs module, i can know this checking if a module has only a default export

@evanw
Copy link
Owner

evanw commented Oct 28, 2020

This sounds good. I will get this in sometime.

@evanw evanw closed this as completed in 61cfef8 Nov 13, 2020
@remorses
Copy link
Contributor Author

Thank you for your amazing work ❤️

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