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 default with another export #28

Open
yairEO opened this issue Oct 5, 2020 · 0 comments
Open

export default with another export #28

yairEO opened this issue Oct 5, 2020 · 0 comments

Comments

@yairEO
Copy link

yairEO commented Oct 5, 2020

this scenario doesn't work.. I have a file which exports one function as default and one without, example:

//...some code..
export default foo
export bar

and I want to consume both at the same time, naturally, like so:

import foo, {bar} from "file.js"

Problem is, the README doesn't address this and I couldn't find any example of how the exports setting should be written. currently it's:

exports: function(file) {
 return 'foo';
}

Thanks!

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

1 participant