xzyfer / sass-graph

Parses import dependencies from a directory of sass files
MIT License
76 stars 59 forks source link

Use individual lodash methods #113

Open realityking opened 4 years ago

realityking commented 4 years ago

Similarly to how node-sass works, this changes the way lodash functions are loaded to only require the specific methods that are actually used by sass-graph.

I also went through all the used lodash functions and replaced any with native ES5 functionality where that's available. Once sass-graph requires a higher Node.js version more could be eliminated.

With this PR only 3 lodash functions are used: