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:
includes (native replacement available with Node.js 6.4)
Similarly to how
node-sass
works, this changes the way lodash functions are loaded to only require the specific methods that are actually used bysass-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:
includes
(native replacement available with Node.js 6.4)intersection
uniq