mirror of
https://github.com/egoist/tsup.git
synced 2025-12-08 20:35:58 +00:00
17 lines
324 B
TypeScript
17 lines
324 B
TypeScript
import MagicString from 'magic-string'
|
|
import { Plugin } from '../plugin'
|
|
|
|
export const embed = (): Plugin => {
|
|
return {
|
|
name: 'embed',
|
|
|
|
renderChunk(code, info) {
|
|
if (info.type !== 'chunk' || !/\.(js|cjs|mjs)$/.test(info.path)) return
|
|
|
|
if (!this.options.sourcemap) {
|
|
const
|
|
}
|
|
},
|
|
}
|
|
}
|