core
core copied to clipboard
feat(bundler-vite): improve chunk name
This ensure a chunk is not started by _, solution comming from vitepress, the idea is editing the original sanitizeFileName and remove the trailling underscore.
Done
Edge case: people are using markdown starting with _, I will fix this and then mark this ready.
Any update on reviewing this?
Emm that function is redirectly copied from rollup, and was used exactly on the same option.
I though we can trust rollup code as we are using rollup ourselves. however if you do insist a unit test is still needed, I can add some. (I already add a reference link to the original function in rollup repo)
OK, I forgot that is was forked from rollup. Ignore that.