feat(lib)!: use package name for css output file name#18488
Conversation
|
Thanks 💚 |
Co-authored-by: 翠 / green <green@sapphi.red>
|
Thinking on the breaking changes, maybe we could try to avoid them? Maybe we'd want to move |
|
I'm not sure if we should abstract I assume we still want to break the default naming of |
|
Agreed on not trying to move from
I was thinking on that. If we keep it as |
|
I think
Isn't it the same with |
|
With |
|
I thought that you think |
What I meant was that the breaking change from swapping the default from |
I think so. If we bring an option into Vite, I think it should also apply elsewhere outside of a rollup/rolldown bundle for it to be worth the maintenance. Otherwise we're guaranteeing it to work if we switch bundlers. Vite's structure had also been about relaying tooling responsibilities especially for advanced configurations 🤔 Personally I think it's better to break the name now that we have the chance. We want users to move to Vite 6 but not extra needed for lib mode users I think. Between re-using |
Ah, I see. I also think it's a good chance. I quite like Blu's idea of telling users to add |
Upgrade was performed in 05a934f but it led to a regression due to vitejs/vite#18488 breaking change. So we need to ensure to use proper name for loading the css file.
Upgrade was performed in 05a934f but it led to a regression due to vitejs/vite#18488 breaking change. So we need to ensure to use proper name for loading the css file.
Co-authored-by: 翠 / green <green@sapphi.red>
Upgrade was performed in 05a934f but it led to a regression due to vitejs/vite#18488 breaking change. So we need to ensure to use proper name for loading the css file.
Description
fix #4863
build.lib.fileNameis changed to a string or functionformatargument can now be"css"