Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/rolldown-plugin-dts. A Rolldown plugin to generate and bundle dts files.
Something went wrong. Try again.
123456789101112131415161718// Note: This file is only used during development and debugging.// It is not included in the production build.
import { Buffer } from 'node:buffer'
export function printCodeWithSourceMap(code: string, result: any): void { const codeWithMap = `\n\n${ result.code }\n//# sourceMappingURL=data:application/json;base64,${Buffer.from( JSON.stringify({ ...result.map, sourcesContent: [code], }), ).toString('base64')}\n`
console.info(codeWithMap)}