Skip to content

@tsdown/css not working as expected with splitting mode #801

@Mister-Hope

Description

@Mister-Hope

Reproduction link or steps

https://stackblitz.com/edit/github-kt71zyyf?file=src%2Findex.ts,src%2Ftest.scss,tsdown.config.ts,dist%2Ftest-!~{000}~.css,dist%2Findex.mjs

What is expected?

Image

What is actually happening?

The output file is test-!~{000}~.css and it should be index.css I think.

Image Image

Any additional comments?

Also I am looking for something to preserve in place, e.g.:

component1.ts -> import "./component1.scss" inside
component1.scss
component2.ts -> import "./component2.scss" inside
component2.scss

to:

component1.js -> import "./component1.css" inside
component1.css
component2.js -> import "./component2.css" inside
component2.css

Is this possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions