Skip to content

Commit

Permalink
refactor: replace clone-deep with smaller klona (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound authored Jul 3, 2020
1 parent 45bd865 commit 9a16432
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
30 changes: 10 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
}
},
"dependencies": {
"clone-deep": "^4.0.1",
"klona": "^1.1.1",
"loader-utils": "^2.0.0",
"neo-async": "^2.6.1",
"schema-utils": "^2.7.0",
Expand Down
4 changes: 2 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import url from 'url';
import path from 'path';

import semver from 'semver';
import cloneDeep from 'clone-deep';
import klona from 'klona';
import { urlToRequest } from 'loader-utils';
import async from 'neo-async';

Expand Down Expand Up @@ -91,7 +91,7 @@ function proxyCustomImporters(importers, loaderContext) {
* @returns {Object}
*/
function getSassOptions(loaderContext, loaderOptions, content, implementation) {
const options = cloneDeep(
const options = klona(
loaderOptions.sassOptions
? typeof loaderOptions.sassOptions === 'function'
? loaderOptions.sassOptions(loaderContext) || {}
Expand Down

0 comments on commit 9a16432

Please sign in to comment.