Skip to content

Commit

Permalink
fix: coffeescript sourcemap (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Sep 30, 2021
1 parent 73f29ef commit 6cc54b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/transformers/coffeescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ const transformer: Transformer<Options.Coffeescript> = ({
} as Omit<Options.Coffeescript, 'bare'>;

if (coffeeOptions.sourceMap) {
const { js: code, sourceMap: map } = coffeescript.compile(
const { js: code, v3SourceMap } = coffeescript.compile(
content,
coffeeOptions,
);

const map = JSON.parse(v3SourceMap);

return { code, map };
}

Expand Down

0 comments on commit 6cc54b6

Please sign in to comment.