MCPcopy Create free account
hub / github.com/Swatinem/rollup-plugin-dts / bundleMultipleWithSourcemap

Function bundleMultipleWithSourcemap

tests/sourcemap.ts:25–42  ·  view source on GitHub ↗
(
  inputs: Record<string, string>,
  outputDir: string,
)

Source from the content-addressed store, hash-verified

23}
24
25async function bundleMultipleWithSourcemap(
26 inputs: Record<string, string>,
27 outputDir: string,
28): Promise<OutputChunk[]> {
29 const bundle = await rollup({
30 input: inputs,
31 plugins: [dts({ sourcemap: true })],
32 onwarn() {},
33 });
34
35 const result = await bundle.generate({
36 format: "es",
37 sourcemap: true,
38 dir: outputDir,
39 });
40
41 return result.output.filter((o): o is OutputChunk => o.type === "chunk");
42}
43
44async function bundleWithAssets(
45 inputs: Record<string, string>,

Callers 1

sourcemap.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected