-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
IIFE globalName does not support namespacing via '.' #293
Comments
Just did a quick survey of other tools. It looks like Rollup is the only tool that supports this. Parcel exports to Parcel's behavior seems the most correct to me. I also found this issue where someone is having problems with the way Rollup does it: rollup/rollup#1473. I'll have to think about what to do here. |
It would be neat if the ultimate solution continued to have an escape hatch so that this behaviour remains possible. |
Webpack does this with something like this config options:
|
🙇 amazing! |
When using a namespced
globalName
invalid javascript is emitted:Produces the following invalid JavaScript:
The use-case for something like this is supporting suites of related libraries exporting their own exports within a partitioned, common namespace.
I've hacked around this for the time being with:
The text was updated successfully, but these errors were encountered: