[node-resolve]: the external module render path is not expected
@CharlieHelps is already working on this.
Since Oct 20, 2025.
Assessment
This issue has not been assessed yet.
Description
- Rollup Plugin Name:
- Rollup Plugin Version:
- Rollup Version:
- Operating System (or Browser):
- Node Version:
- Link to reproduction (⚠️ read below):
Expected Behavior
Expected render external module path with absolute path.
Actual Behavior
Get render external module path with original module request path.
Additional Information
Run npm run rollup::build:without-node-resolve, it using node js resolve instead of node-resolve plugin, here output
import { rollup } from 'file:///home/projects/vbwimvyraa.github/node_modules/.pnpm/rollup@4.41.1/node_modules/rollup/dist/es/rollup.js';
Run npm run build:rollup, it using node resolver plugin, here output
import { rollup } from 'rollup';
It caused by https://github.com/rollup/plugins/blob/master/packages/node-resolve/src/index.js#L329-L331. The rollup core is using 'file:///home/projects/vbwimvyraa.github/node_modules/.pnpm/rollup@4.41.1/node_modules/rollup/dist/es/rollup.js' to check external and find it is a external absolute module. But the node-resolve plugin overwrite it.
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 635
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rollup/plugins
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Support js-yaml v5 Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Similar issues
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
DavidAnson/markdownlint-cli2#940 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
githubnext/gh-aw-workshop#3692 ·
-
agent/guide documentation hive/hosted-available-lke648397-260827-5n31
Difficulty 2/5 1-3 hours Newbie friendliness 90/100