Skip to content

Cannot @import css files under node_modules #794

@ocavue

Description

@ocavue

Reproduction link or steps

https://github.com/issueset/tsdown-issue-css-import-node.git

What is expected?

Check dist/esbuild/style.css for expected output

What is actually happening?

Error:

[plugin @tsdown/css]
Error: ENOENT: no such file or directory, open '/private/tmp/2026-03-04_22-47-42/tsdown-issue-css-import-node/src/prosemirror-view/style/prosemirror.css'
    at async open (node:internal/fs/promises:642:25)

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions