Related:
Rollup use '\0' as the virtual module convention, which some modules might have names like "\0some-virtual-modules". Rolldown follows the behavior, but there's a error occrured in such code: https://github.com/rolldown/rolldown/blob/49d4b5c03ab699d71125782c746d15b9b276821c/crates/rolldown/src/utils/chunk/render_chunk.rs#L76-L78
I guess this is due to NAPI-RS use CString on places doesn't require to be valid CString.
Related:
NulError while dealing with virtual modules rolldown/rolldown#1115Rollup use '\0' as the virtual module convention, which some modules might have names like "\0some-virtual-modules". Rolldown follows the behavior, but there's a error occrured in such code: https://github.com/rolldown/rolldown/blob/49d4b5c03ab699d71125782c746d15b9b276821c/crates/rolldown/src/utils/chunk/render_chunk.rs#L76-L78
I guess this is due to NAPI-RS use
CStringon places doesn't require to be validCString.