denoland / denoland/deno-rolldown-plugin

plugin prevents useful error prompts or causes rust panic

Open
#14 2 comments 1 reaction 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.