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

Check if isCommonJsEnv is true instead of truthy #6

Merged
merged 1 commit into from
Feb 2, 2020
Merged

Check if isCommonJsEnv is true instead of truthy #6

merged 1 commit into from
Feb 2, 2020

Conversation

MakullaMa
Copy link
Contributor

Use strict true check for isCommonJsEnv variable.

This is necessary because in an amd / requirejs context the isCommonJsEnv will be set to the"require" function by the define call. The check will pass which leads to a synchronous module load error in a requirejs context.

Use strict true check for isCommonJsEnv variable.

This is necessary because in an amd / requirejs context the isCommonJsEnv will be set to the"require" function by the define call. The  check will pass which leads to a synchronous module load error in a requirejs context.
@thorn0 thorn0 merged commit 038fb81 into thorn0:master Feb 2, 2020
@MakullaMa MakullaMa deleted the patch-1 branch February 3, 2020 08:22
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

Successfully merging this pull request may close these issues.

2 participants