Why?
What is needed to done?
Replace __VITE__ASSET__ with Rolldown's import.meta.ROLLUP_FILE_URL_referenceId feature. Find out missing feature on the Rolldown side to achieve that. We may need to figure out whether the distinction of this.emitFile({ type: 'asset' }) and this.emitFile({ type: 'chunk' }) in Rolldown makes sense anymore as moduleTypes feature exists.
Why?
__VITE_ASSET__or exposing a function to build asset url. #13459, VITE_ASSET androllup-replaceplugin #17559What is needed to done?
Replace
__VITE__ASSET__with Rolldown'simport.meta.ROLLUP_FILE_URL_referenceIdfeature. Find out missing feature on the Rolldown side to achieve that. We may need to figure out whether the distinction ofthis.emitFile({ type: 'asset' })andthis.emitFile({ type: 'chunk' })in Rolldown makes sense anymore asmoduleTypes feature exists.