-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
global in current amd/umd wrapper undefined in strict mode #2482
Comments
Something like bebraw/libumd@f43a331 is needed. |
More references: |
This is actually UMD definition which should work correct in most of cases where it is used correctly. Can you show me an example of such env where it will throw an error? |
If you mean in something like this:
Then it will throw an error, but i would say it is a wrong usage rather then UMD issue |
You can ask @bebraw of libumd as there is also this fix ;-) |
I can confirm this solved an issue for me where I didn't want to install via node_modules and was just including the downloaded file in my Vue project. Thanks @DanielRuf. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. If this issue is still actual, please, create the new one. |
In specific scenarios the
global
variable in the generated amd/umd wrapper is undefined.Normally it should be
window
and most libraries need aif(global === undefined && window!== undefined) global = window;
to fix this.This is a (multiple allowed):
bug
enhancement
feature-discussion (RFC)
Swiper Version: 4.1.6
Platform/Target and Browser Versions: macOS.
What you did
EXPLAIN WHAT YOU DID, PREFERABLY WITH CODE EXAMPLES, HERE. (todo)
Expected Behavior
EXPLAIN WHAT IS TO BE EXPECTED, HERE. (todo)
Actual Behavior
EXPLAIN WHAT IS ACTUALLY HAPPENING, HERE. (todo)
The text was updated successfully, but these errors were encountered: