You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(node-resolve): do not ignore exceptions (#564)
* do not ignore errors
* do not error when import specifier does not map to file
* always swallow MODULE_NOT_FOUND errors
as not being able to resolve the id is a valid output
* return null from resolveId early if can't resolve
* strip null byte from importer if there is one
* fix root-dir test
this was passing before because the real error was being ignored
* remove try/catch
* use async exists() and realpath()
like we do in index.js
* pretend importer is `undefined` if it starts will \0
* return null if file not found with modulesOnly option
`preferring built-in module '${importee}' over local alternative at '${resolved}', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning`
`preferring built-in module '${importee}' over local alternative at '${resolved}', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning`
0 commit comments