<p dir="auto">In Node we have <a href="https://nodejs.org/api/os.html#os_os_eol" rel="nofollow">os.EOL</a> which abstracts the OS.</p>
<p dir="auto">In Deno we have <a href="https://deno.land/std/fs/eol.ts" rel="nofollow">std/fs/eol</a> which is an os-invariant enumeration. The <a href="https://deno.land/typedoc/index.html#writefile" rel="nofollow">docs for writeFile</a> and similar just use denormalized <code class="notranslate">\n</code>.</p>
<p dir="auto">Is this a case where we can prefer the Node pattern over the Go pattern, or is there some other recommended way to do this sort of thing? I'm simply trying to write a file with line breaks.</p>
<p dir="auto">I get this error; in the Deno 1.23.2.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Unable to output during bundling.

Caused by:
    0: load_transformed failed
    1: failed to analyze module
    2: failed to resolve https://esm.sh/react@^18.2.0?pin=v86?bundle/jsx-runtime from file:///C:/Users/ayovr/Documents/dev/deno-bundle-automatic-jsx-runtime-error-reproduction/mod.tsx
    3: Cannot resolve &quot;https://esm.sh/react@^18.2.0?pin=v86?bundle/jsx-runtime&quot; from &quot;file:///C:/Users/ayovr/Documents/dev/deno-bundle-automatic-jsx-runtime-error-reproduction/mod.tsx&quot;."><pre class="notranslate"><code class="notranslate">error: Unable to output during bundling.

Caused by:
    0: load_transformed failed
    1: failed to analyze module
    2: failed to resolve https://esm.sh/react@^18.2.0?pin=v86?bundle/jsx-runtime from file:///C:/Users/ayovr/Documents/dev/deno-bundle-automatic-jsx-runtime-error-reproduction/mod.tsx
    3: Cannot resolve "https://esm.sh/react@^18.2.0?pin=v86?bundle/jsx-runtime" from "file:///C:/Users/ayovr/Documents/dev/deno-bundle-automatic-jsx-runtime-error-reproduction/mod.tsx".
</code></pre></div>
<p dir="auto">I made this repository with a simple reproduction: <a href="https://github.com/ayoreis/deno-bundle-automatic-jsx-runtime-error-reproduction">https://github.com/ayoreis/deno-bundle-automatic-jsx-runtime-error-reproduction</a></p>