Skip to content

Commit

Permalink
Revert "call toString()"
Browse files Browse the repository at this point in the history
This reverts commit a5c2cf1.
  • Loading branch information
valentinpalkovic committed Jul 13, 2024
1 parent a5c2cf1 commit 0a670ef
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions code/lib/csf-plugin/src/rollup-based-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ export function rollupBasedPlugin(options: EnrichCsfOptions): Partial<RollupPlug
}).parse();
enrichCsf(csf, csfSource, options);
const inputSourceMap = this.getCombinedSourcemap();
return formatCsf(
csf,
{ sourceMaps: true, inputSourceMap: inputSourceMap.toString() },
code
);
return formatCsf(csf, { sourceMaps: true, inputSourceMap }, 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 0a670ef

Please sign in to comment.