Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

perf:getName is Promise & moduleName as prop#80

Open
swainet wants to merge 1 commit into
facebookarchive:masterfrom
swainet:master
Open

perf:getName is Promise & moduleName as prop#80
swainet wants to merge 1 commit into
facebookarchive:masterfrom
swainet:master

Conversation

@swainet
Copy link
Copy Markdown

@swainet swainet commented Jul 6, 2016

#79

@ghost
Copy link
Copy Markdown

ghost commented Jul 6, 2016

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@ghost
Copy link
Copy Markdown

ghost commented Jul 12, 2016

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Comment thread src/Module.js

if (!this.moduleName && !this.isPolyfill() && !this.isAsset_DEPRECATED()) {
this.getName().then(name => {
this.moduleName = name;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In other words, the moduleName property might or might not exists. I’m not really happy with this solution

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants