Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Oct 16, 2024
1 parent d6530b9 commit 100af13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/node-resolve/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,15 +292,15 @@ export function nodeResolve(opts = {}) {
return importee;
}
// ignore IDs with null character, these belong to other plugins
if (importee.includes('\0')) return null;
if (importee && importee.includes('\0')) return null;

const { custom = {} } = resolveOptions;
const { 'node-resolve': { resolved: alreadyResolved } = {} } = custom;
if (alreadyResolved) {
return alreadyResolved;
}

if (importer.includes('\0')) {
if (importer && importer.includes('\0')) {
importer = undefined;
}

Expand Down

0 comments on commit 100af13

Please sign in to comment.