Skip to content

[Feature Request]: Provide more friendly diagnostics if could not read path from a resolveId hook #1851

@IWANABETHATGUY

Description

@IWANABETHATGUY

What problem does this feature solve?

// rolldown.config.js
import { defineConfig } from "rolldown";

export default defineConfig({
	input: "./index.js",
	plugins: [
		{
			resolveId(id) {
				if (id === "test.js") {
					return id;
				}
			},
		},
	],
});
// index.js
import test from 'test.js'

output

 ERROR  Rolldown internal error: No such file or directory (os error 2)                                                                                                          

 



 ERROR  Rolldown internal error: No such file or directory (os error 2)                                                                                                          

What does the proposed API look like?

n/a

Metadata

Metadata

Assignees

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions