We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 910f3b3 commit 6423e23Copy full SHA for 6423e23
source/index.ts
@@ -176,7 +176,7 @@ async function nodeExternals(options: ExternalsOptions = {}): Promise<Plugin> {
176
177
if (packagePaths.length === 0) {
178
search:
179
- for (let current = process.cwd(), previous: string | undefined = undefined; previous !== current; previous = current, current = path.dirname(current)) {
+ for (let current = process.cwd(), previous = ''; previous !== current; previous = current, current = path.dirname(current)) {
180
181
// Gather package.json files.
182
let name = path.join(current, 'package.json')
0 commit comments