Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(nitro): skip non existing externals #1876

Merged
merged 3 commits into from
Nov 15, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(nitro): Properly handle packages with no package.json
  • Loading branch information
tobiasdiez authored Nov 12, 2021
commit d9435ce8d55b69b80a40e4a30c5e17a590df6b7c
2 changes: 1 addition & 1 deletion packages/nitro/src/rollup/plugins/externals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function externals (opts: NodeExternalsOptions): Plugin {

const writeFile = async (file) => {
// Skip symlinks that are included in fileList
if (await fse.stat(file).then(i => i.isDirectory())) {
if (await fse.stat(file).then((i) => i.isDirectory()).catch(() => true)) {
return
}
const src = resolve(opts.traceOptions.base, file)
Expand Down