Skip to content

Commit 8768142

Browse files
committed
fix: updated to handle single quotes within large json files
1 parent 50f3270 commit 8768142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = function (source) {
3333
return `module.exports = ${value}`
3434
}
3535

36-
return `module.exports = JSON.parse('${JSON.stringify(value)}')`
36+
return `module.exports = JSON.parse(\`${JSON.stringify(value)}\`)`
3737
}
3838

3939
exports.raw = true

0 commit comments

Comments
 (0)