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 93f10c6 commit c6e0784Copy full SHA for c6e0784
source/index.ts
@@ -179,8 +179,8 @@ async function nodeExternals(options: ExternalsOptions = {}): Promise<Plugin> {
179
for (let current = process.cwd(), previous: string | undefined = undefined; previous !== current; previous = current, current = path.dirname(current)) {
180
181
// Gather package.json files.
182
- let name = path.join(current, 'package.json')
183
- let stat = await fs.stat(name).catch(() => null)
+ const name = path.join(current, 'package.json')
+ const stat = await fs.stat(name).catch(() => null)
184
if (stat?.isFile())
185
packagePaths.push(name)
186
0 commit comments