Skip to content

Commit 9a16432

Browse files
authored
refactor: replace clone-deep with smaller klona (#857)
1 parent 45bd865 commit 9a16432

File tree

3 files changed

+13
-23
lines changed

3 files changed

+13
-23
lines changed

package-lock.json

Lines changed: 10 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
}
5757
},
5858
"dependencies": {
59-
"clone-deep": "^4.0.1",
59+
"klona": "^1.1.1",
6060
"loader-utils": "^2.0.0",
6161
"neo-async": "^2.6.1",
6262
"schema-utils": "^2.7.0",

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import url from 'url';
22
import path from 'path';
33

44
import semver from 'semver';
5-
import cloneDeep from 'clone-deep';
5+
import klona from 'klona';
66
import { urlToRequest } from 'loader-utils';
77
import async from 'neo-async';
88

@@ -91,7 +91,7 @@ function proxyCustomImporters(importers, loaderContext) {
9191
* @returns {Object}
9292
*/
9393
function getSassOptions(loaderContext, loaderOptions, content, implementation) {
94-
const options = cloneDeep(
94+
const options = klona(
9595
loaderOptions.sassOptions
9696
? typeof loaderOptions.sassOptions === 'function'
9797
? loaderOptions.sassOptions(loaderContext) || {}

0 commit comments

Comments
 (0)