We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I don't use esmify and I write
module.exports = () => { ... }
and I build it like
browserify source.js -o dist.js -s "foo"
I can just write foo() and my function will be executed. However, when I use esmify and I write
foo()
export default () => {}
and build it the same way, foo actually represents an object that contains default property, so if I want to call it, I should write
foo
default
foo.default()
I think that if there is a default export and there are no more exports, that exported value should be set to window.foo instead of an object.
window.foo
The text was updated successfully, but these errors were encountered:
I discovered a Rollup solution that does exactly what Browserify and Esmify can't and it does it much quicker.
Sorry, something went wrong.
No branches or pull requests
When I don't use esmify and I write
and I build it like
I can just write
foo()
and my function will be executed. However, when I use esmify and I writeand build it the same way,
foo
actually represents an object that containsdefault
property, so if I want to call it, I should writeI think that if there is a default export and there are no more exports, that exported value should be set to
window.foo
instead of an object.The text was updated successfully, but these errors were encountered: