File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
packages/vite/src/node/plugins Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -711,8 +711,7 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): [Plugin] {
711711 nextMap as RawSourceMap ,
712712 chunk . map as RawSourceMap ,
713713 ] ) as SourceMap
714- // TODO: rolldown's sourcemap type does not have toUrl function
715- // map.toUrl = () => genSourceMapUrl(map)
714+ map . toUrl = ( ) => genSourceMapUrl ( map )
716715 chunk . map = map
717716
718717 if ( buildSourcemap === 'inline' ) {
Original file line number Diff line number Diff line change @@ -166,8 +166,7 @@ function emitSourcemapForWorkerEntry(
166166 config . build . sourcemap === 'hidden' ||
167167 config . build . sourcemap === true
168168 ) {
169- // TODO: rolldown does not support sourcemap.toString()
170- const data = JSON . stringify ( sourcemap )
169+ const data = sourcemap . toString ( )
171170 const mapFileName = chunk . fileName + '.map'
172171 saveEmitWorkerAsset ( config , {
173172 fileName : mapFileName ,
You can’t perform that action at this time.
0 commit comments