Skip to content

Commit

Permalink
Release @sucrase/jest-plugin 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alangpierce committed Apr 28, 2022
1 parent af720a5 commit 2658878
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions integrations/jest-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.2.1 (2022-04-28)

* Add support for Jest 28. ([#695]) (Viktor Luft)

# 2.2.0 (2021-10-24)

* Include inline source maps when transforming code. This fixes debugging in
Expand All @@ -17,3 +21,4 @@

[#640]: https://github.com/alangpierce/sucrase/pull/640
[#661]: https://github.com/alangpierce/sucrase/pull/661
[#695]: https://github.com/alangpierce/sucrase/pull/695
2 changes: 1 addition & 1 deletion integrations/jest-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sucrase/jest-plugin",
"version": "2.2.0",
"version": "2.2.1",
"description": "Jest plugin for Sucrase",
"main": "dist/index.js",
"repository": "https://github.com/alangpierce/sucrase/tree/main/integrations/jest-plugin",
Expand Down
2 changes: 2 additions & 0 deletions integrations/jest-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export function process(
});
const mapBase64 = Buffer.from(JSON.stringify(sourceMap)).toString("base64");
const suffix = `//# sourceMappingURL=data:application/json;charset=utf-8;base64,${mapBase64}`;
// sourceMappingURL is necessary for breakpoints to work in WebStorm, so
// include it in addition to specifying the source map normally.
return {code: `${code}\n${suffix}`, map: sourceMap};
} else {
return {code: src};
Expand Down

0 comments on commit 2658878

Please sign in to comment.