You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stringify unexpectedly remove spaces and new lines from template literal
Steps to reproduce the behavior
stringify({f: ()=>` 1 2 3 `,})
result :
{"f":"_function_f|() => `123`"}
Expected result
{"f":"_function_f|() => `\n 1\n 2\n 3\n `"}
Environment
OS: macOS
Node.js version: v14.16.1
NPM version: v7.24.2
Browser (if applicable): chrome, firefox…
Browser version (if applicable): firefox 101.0, chrome 102.0.5005.61
Additional context
Telejson is used under the hood of storybook and fail to "teleport" function containing template literal without loosing spaces and new line in webpack devServer environement.
The text was updated successfully, but these errors were encountered:
Describe the bug
Stringify unexpectedly remove spaces and new lines from template literal
Steps to reproduce the behavior
result :
Expected result
Environment
Additional context
Telejson is used under the hood of storybook and fail to "teleport" function containing template literal without loosing spaces and new line in webpack devServer environement.
The text was updated successfully, but these errors were encountered: