import * as ReactDOM from "react-dom/server"; const ReturnDescriptionAsString = ({ description }) => description; export function test() { const _bun = ReactDOM.renderToString( , ); // convert HTML entities to unicode const el = document.createElement("textarea"); el.innerHTML = _bun; const bun = el.value; const esbuild = "line1\nline2 trailing space \n\nline4 no trailing space 'single quote' \\t\\f\\v\\uF000 `template string`\n\nline6 no trailing space\nline7 trailing newline that ${terminates} the string literal\n"; const tsc = "line1\nline2 trailing space \n\nline4 no trailing space 'single quote' \\t\\f\\v\\uF000 `template string`\n\nline6 no trailing space\nline7 trailing newline that ${terminates} the string literal\n"; console.assert( bun === esbuild && bun === tsc, `strings did not match: ${JSON.stringify( { received: bun, expected: esbuild, }, null, 2, )}`, ); testDone(import.meta.url); } on> Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/.changeset/calm-peas-doubt.md (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-01-12 Add `.astro/` to `.gitignore` in example projects (#5841)Gravatar Chris Swithinbank 24-98/+46
2023-01-12chore: update changeset for `_astro` directory (#5843)Gravatar Nate Moore 1-2/+2
2023-01-12fix: pass flags to dev (#5840)Gravatar Sam Chen 3-1/+9
2023-01-12chore: update changelogs, add changeset for `_astro` directory (#5842)Gravatar Nate Moore 5-18/+10
2023-01-12[ci] formatGravatar natemoo-re 1-1/+1
2023-01-12fix(core): handle encoded characters when matching routes (#5836)Gravatar Nate Moore 8-2/+85
2023-01-12Handle compiler breaking change (#5803)Gravatar Bjorn Lu 12-328/+109
2023-01-12fix shiki css class replace logic in md and mdx integrations (#5837)Gravatar Giuseppe La Torre 3-3/+9
2023-01-11[ci] formatGravatar matthewp 2-2/+2
2023-01-11Simplify HMR handling (#5811)Gravatar Bjorn Lu 8-108/+46
2023-01-11[Content collections] Remove experimental flag (#5825)Gravatar Ben Holmes 27-103/+58
2023-01-11[Content collections] Improve content config handling (#5824)Gravatar Ben Holmes 5-58/+78
2023-01-11Run sync as part of `astro check` (#5823)Gravatar Chris Swithinbank 3-2/+13
2023-01-11[ci] update lockfile (#5815)Gravatar Fred K. Bot 1-257/+256
2023-01-11Fix order-of-execution bug when generating pages (#5822)Gravatar Nate Moore 2-2/+7
2023-01-11Fix `Code.astro` shiki css class replace logic (#5829)Gravatar Giuseppe La Torre 2-1/+6