What problem does this feature solve?
resolve.alias only uses the builtin resolver and does not call resolveId hooks. This behavior is different from @rollup/plugin-alias which is commonly used for this purpose and is a bit confusing for users migrating from rollup.
reproduction
npm run build errors, but npm run build:up runs successfully.
What does the proposed API look like?
Either
- Align
resolve.alias behavior with @rollup/plugin-alias
- If it failed to resolve, show a message that
resolve.alias does not call resolveId hooks so that users can know that they have to use a different thing