-<span class=grvsc-line><span class=grvsc-source><span class=mtk1>document.body.appendChild div </span><span class=mtk14>|></span><span class=mtk1> ignore</span></span></span></code></pre><li><p>Run Fable in watch mode and Vite in parallel.<pre class="atom-one-light grvsc-container"data-index=14 data-language=bash><code class=grvsc-code><span class=grvsc-line><span class=grvsc-source><span class=mtk1>dotnet fable watch --verbose --run npx vite</span></span></span></code></pre><article class="is-info message"><div class=message-body><div><p>We need to use <code>--verbose</code> mode when running <code>vite</code> from Fable because of a freezing issue.<p>The issue is tracked [here[(<a href=https://github.com/fable-compiler/Fable/issues/3631>https://github.com/fable-compiler/Fable/issues/3631</a>)</div></div></article><p>If you open the browser, you should see <code>Hello world!</code>.<p>Try changing the content of <code>Program.fs</code> and see the result in the browser.</ul><h3 id=alternative>Alternative<a href=#alternative aria-hidden=true tabindex=-1><span class=anchor>#</span></a></h3><p>When using Vite, you could also consider working with <a href=https://nojaf.com/vite-plugin-fable/>vite-plugin-fable</a> instead.</div></div></section><div class="section bd-docs-pagination bd-pagination-links"><a class="button bd-fat-button is-primary is-light bd-pagination-prev" href="/docs/getting-started/your-first-fable-project.html"><i>←</i><span class="is-hidden-mobile"><em>Getting started</em><strong>Start a new project</strong></span></a><a class="button bd-fat-button is-primary is-light bd-pagination-next" href="/docs/getting-started/typescript.html"><span class="is-hidden-mobile"><em>Getting started</em><strong>TypeScript</strong></span><i>→</i></a></div></div></div></div></div><script async="" src="/resources/nacara-standard-layouts/scripts/menu.js"></script></body></html>
0 commit comments