Skip to content

Commit abadf68

Browse files
author
Kureev Alexey
committed
Explicit require
1 parent 6eb56ee commit abadf68

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/unlink.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ const unregisterDependencyIOS = require('./ios/unregisterNativeModule');
77
const unlinkAssetsAndroid = require('./android/unlinkAssets');
88
const unlinkAssetsIOS = require('./ios/unlinkAssets');
99
const getDependencyConfig = require('./getDependencyConfig');
10-
const _ = require('lodash');
10+
const difference = require('lodash').difference;
11+
const isEmpty = require('lodash').isEmpty;
12+
const flatten = require('lodash').flatten;
1113

1214
log.heading = 'rnpm-link';
1315

@@ -67,12 +69,12 @@ module.exports = function unlink(config, args) {
6769
}
6870
}
6971

70-
const assets = _.difference(
72+
const assets = difference(
7173
dependency.assets,
72-
_.flatten(allDependencies, d => d.assets)
74+
flatten(allDependencies, d => d.assets)
7375
);
7476

75-
if (_.isEmpty(assets)) {
77+
if (isEmpty(assets)) {
7678
return Promise.resolve();
7779
}
7880

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy