Skip to content

Useless empty JS output when bundling CSS files #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ocavue opened this issue Apr 19, 2025 · 3 comments
Open

Useless empty JS output when bundling CSS files #115

ocavue opened this issue Apr 19, 2025 · 3 comments

Comments

@ocavue
Copy link
Collaborator

ocavue commented Apr 19, 2025

When bundling CSS files, tsdown will emit empty JS files that have the same basename as the output CSS files. It would be good if these useless JS file can be removed.

Minimal reproduction: https://github.com/issueset/test-tsdown-style-output

.
├── dist
│   ├── output_tsdown
│   │   ├── index.js
│   │   ├── style.css
│   │   └── style.js // ⬅️ Here is an empty JS file 
│   └── output_tsup
│       ├── index.js
│       └── style.css
├── package.json
├── src
│   ├── index.ts
│   ├── style-2.css
│   └── style.css
├── tsdown.config.mjs
└── tsup.config.mjs
@sxzz
Copy link
Member

sxzz commented Apr 22, 2025

Related to Rolldown core

@sxzz
Copy link
Member

sxzz commented Apr 27, 2025

Could you please raise an issue on Rolldown side?

@ocavue
Copy link
Collaborator Author

ocavue commented Apr 27, 2025

Sure. Here are upstream issues:

@sxzz sxzz added the upstream label Apr 27, 2025
@sxzz sxzz added the css label May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants