eduardolundgren / gulp-umd

Gulp plugin for build JavaScript files as Universal Module Definition, aka UMD
MIT License
126 stars 14 forks source link

export default with another export #28

Open yairEO opened 3 years ago

yairEO commented 3 years ago

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!