Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

exportName option for global sfx output #591

Closed
edoardocavazza opened this issue May 14, 2016 · 4 comments
Closed

exportName option for global sfx output #591

edoardocavazza opened this issue May 14, 2016 · 4 comments

Comments

@edoardocavazza
Copy link

Hi,

I'd like to distribute my ES6 class (with its dependencies) as SFX bundle, but it seems that I can define a globalName only for modules.

How can I export the class in order to instantiate it directly instead of calling MyModule.MyClass?

Thank you very much!

@guybedford guybedford changed the title How to export Function instead of module exportName option for global sfx output May 15, 2016
@guybedford
Copy link
Member

We don't currently support this but we can certainly add an exportName option here.

@guybedford
Copy link
Member

Exporting the top-level default export has been implemented in 550e22c.

@edoardocavazza
Copy link
Author

Thank you very much, it really works like a charm.

@guybedford
Copy link
Member

Released in 0.15.17.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants