Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix: plain text transformer error
Browse files Browse the repository at this point in the history
  • Loading branch information
SSen committed Aug 29, 2020
1 parent 76bc843 commit d83e57a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/.packages.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'@ssen/*':
version: 2.2.2
version: 2.2.3
tag: latest
module: commonjs
rocket-punch:
version: 2.2.2
version: 2.2.3
tag: latest
module: commonjs
packageJson:
Expand Down
2 changes: 1 addition & 1 deletion source/src/@ssen/jest-transform/transform/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function getCacheKey(fileData: BinaryLike, filePath: string, configString: strin
}

function process(sourceText: string): string {
return `module.exports = '${sourceText}'`;
return `module.exports = ${JSON.stringify(sourceText)}`;
}

export = {
Expand Down

0 comments on commit d83e57a

Please sign in to comment.