Skip to content

Commit

Permalink
call toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Jul 12, 2024
1 parent 239ce53 commit a5c2cf1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/lib/csf-plugin/src/rollup-based-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ export function rollupBasedPlugin(options: EnrichCsfOptions): Partial<RollupPlug
}).parse();
enrichCsf(csf, csfSource, options);
const inputSourceMap = this.getCombinedSourcemap();
return formatCsf(csf, { sourceMaps: true, inputSourceMap }, code);
return formatCsf(
csf,
{ sourceMaps: true, inputSourceMap: inputSourceMap.toString() },
code
);
} catch (err: any) {
// This can be called on legacy storiesOf files, so just ignore
// those errors. But warn about other errors.
Expand Down

0 comments on commit a5c2cf1

Please sign in to comment.