Skip to content

Commit 6cc54b6

Browse files
authored
fix: coffeescript sourcemap (#416)
1 parent 73f29ef commit 6cc54b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/transformers/coffeescript.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ const transformer: Transformer<Options.Coffeescript> = ({
1717
} as Omit<Options.Coffeescript, 'bare'>;
1818

1919
if (coffeeOptions.sourceMap) {
20-
const { js: code, sourceMap: map } = coffeescript.compile(
20+
const { js: code, v3SourceMap } = coffeescript.compile(
2121
content,
2222
coffeeOptions,
2323
);
2424

25+
const map = JSON.parse(v3SourceMap);
26+
2527
return { code, map };
2628
}
2729

0 commit comments

Comments
 (0)