denoland / denoland/deno-rolldown-plugin
plugin prevents useful error prompts or causes rust panic
- Dominant language
- TypeScript
- Stars
- 31
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
```js
import denoPlugin from "@deno/rolldown-plugin";
import { build } from "rolldown";
build({
input: "./not-exist-file.ts",
plugins: denoPlugin(),
});
```
```console
error: Uncaught (in promise) TypeError: Cannot convert undefined or null to object
```
If I comment out `denoPlugin`, an error is reported:
```console
error: Uncaught (in promise) Error: Build failed with 1 error:
[UNRESOLVED_ENTRY] Error: Cannot resolve entry module ./not-exist-file.ts.
const wrapper = new Error(summary);
...
```
In other words, `denoPlugin` prevents valid error messages from being thrown, making the problem more difficult to troubleshoot.
In addition to the useless error message mentioned above, it sometimes causes a Rust panic of `rolldown` or `deno`.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.