File tree 1 file changed +3
-1
lines changed 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,14 @@ function getEntry() {
19
19
fs . copySync ( p , 'out/node_modules/' + mod ) ;
20
20
}
21
21
22
+ // The nan module is nested inside usb-detection, so it was already copied.
23
+ const noEntryModules = unbundledModule . concat ( [ 'nan' ] ) ;
22
24
const list = getDependenciesFromNpm ( mod ) ;
23
25
const moduleList = list . filter ( ( value , index , self ) => {
24
26
// Some entries in the list of unbundled modules are really namespaces, so
25
27
// we do a prefix match to see if the module should be excluded. This isn't
26
28
// perfect, but works for the set of modules we care about.
27
- return self . indexOf ( value ) === index && unbundledModule . filter ( m => value . startsWith ( m ) ) . length === 0 && ! / ^ @ t y p e s \/ / . test ( value ) ;
29
+ return self . indexOf ( value ) === index && noEntryModules . filter ( m => value . startsWith ( m ) ) . length === 0 && ! / ^ @ t y p e s \/ / . test ( value ) ;
28
30
} ) ;
29
31
30
32
for ( const mod of moduleList ) {
You can’t perform that action at this time.
0 commit comments