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

Run lodash in context to avoid polluting other lodash. #23

Merged
merged 1 commit into from
May 21, 2018

Conversation

shama
Copy link
Member

@shama shama commented May 21, 2018

Fixes GH-17

The Object.create solution I implemented #18 wasn't a good one. As it breaks calling the lodash function directly: grunt.util._()

Lodash has a function to create our own instance though: runInContext which is a better solution and still fixes the original issue so we dont pollute other lodash instances.

lodash

@shama shama requested a review from vladikoff May 21, 2018 18:39
@shama shama mentioned this pull request May 21, 2018
@vladikoff vladikoff merged commit 3cd5337 into master May 21, 2018
@vladikoff vladikoff deleted the lodashInContext branch May 21, 2018 20:30
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.

lodash is modified for all npm packages using the same lodash version
2 participants