Skip to content

Cannot use tsdown with Deno #707

@liuhq

Description

@liuhq

Reproduction link or steps

deno add -D npm:tsdown

deno run -A tsdown

What is expected?

tsdown works normally under Deno.

What is actually happening?

When using tsdown with Deno, I encounter the following error:

SyntaxError: The requested module 'node:util' does not provide an export named 'parseEnv' at file://.../options-CkeyyBq1.mjs:8:10

Any additional comments?

I found that this might have been introduced by #664 and the file:

import { parseEnv } from 'node:util'

I'm not sure whether this should be fixed on the tsdown side, since there is already a related issue denoland/deno#30952 on the Deno side, but that is still WIP.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions