File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ const config: Config = {
8
8
} ,
9
9
bundleNodeModules : true ,
10
10
externals : [
11
- ...Object . keys ( require ( './package' ) . dependencies ) ,
12
11
'spawn-sync' // from cross-spawn which is from execa which is from term-size which is from boxen
13
12
] ,
14
13
babel : {
Original file line number Diff line number Diff line change @@ -51,13 +51,13 @@ export default (options: Options) => {
51
51
if ( ! options . bundleNodeModules ) {
52
52
return false
53
53
}
54
- const bundleNodeModules =
55
- Array . isArray ( options . bundleNodeModules ) &&
56
- options . bundleNodeModules . some ( name =>
54
+ if ( Array . isArray ( options . bundleNodeModules ) ) {
55
+ const shouldBundle = options . bundleNodeModules . some ( name =>
57
56
id . includes ( `/node_modules/${ name } /` )
58
57
)
59
- if ( ! bundleNodeModules ) {
60
- return false
58
+ if ( ! shouldBundle ) {
59
+ return false
60
+ }
61
61
}
62
62
}
63
63
You can’t perform that action at this time.
0 commit comments