diff --git a/lib/index.js b/lib/index.js index 10062803e..01d562779 100644 --- a/lib/index.js +++ b/lib/index.js @@ -3,7 +3,6 @@ */ var path = require('path'), - clonedeep = require('lodash/cloneDeep'), sass = require('./extensions'); /** @@ -189,7 +188,7 @@ function getOptions(opts, cb) { if (typeof opts !== 'object') { throw new Error('Invalid: options is not an object.'); } - var options = clonedeep(opts || {}); + var options = Object.assign({}, opts || {}); options.sourceComments = options.sourceComments || false; if (Object.prototype.hasOwnProperty.call(options, 'file')) { @@ -343,7 +342,7 @@ module.exports.render = function(opts, cb) { } } - var functions = clonedeep(options.functions); + var functions = Object.assign({}, options.functions); if (functions) { options.functions = {}; @@ -407,7 +406,7 @@ module.exports.renderSync = function(opts) { } } - var functions = clonedeep(options.functions); + var functions = Object.assign({}, options.functions); if (options.functions) { options.functions = {}; diff --git a/lib/watcher.js b/lib/watcher.js index 89443b415..6da5adff1 100644 --- a/lib/watcher.js +++ b/lib/watcher.js @@ -1,12 +1,11 @@ var grapher = require('sass-graph'), - clonedeep = require('lodash/cloneDeep'), path = require('path'), config = {}, watcher = {}, graph = null; watcher.reset = function(opts) { - config = clonedeep(opts || config || {}); + config = Object.assign({}, opts || config || {}); var options = { loadPaths: config.includePath, extensions: ['scss', 'sass', 'css'], diff --git a/package.json b/package.json index f6297a1a8..0690a4d20 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,6 @@ "gaze": "^1.0.0", "get-stdin": "^4.0.1", "glob": "^7.0.3", - "lodash": "^4.17.15", "meow": "^9.0.0", "nan": "^2.13.2", "node-gyp": "^7.1.0",