-<span class=grvsc-line><span class=grvsc-source><span class=mtk14>export</span><span class=mtk1> </span><span class=mtk14>const</span><span class=mtk1> </span><span class=mtk6>hello</span><span class=mtk1> </span><span class=mtk8>=</span><span class=mtk1> hello_1;</span></span></span></code></pre><p>Some JavaScript optimizations tools can remove the intermediate variable, but not all of them. So if you want to favor the smallest and cleanest output, using the attribute-based imports is recommanded.<h3 id=attributes>Attributes<a href=#attributes aria-hidden=true tabindex=-1><span class=anchor>#</span></a></h3><h4 id=global><code>[<Global>]</code><a href=#global aria-hidden=true tabindex=-1><span class=anchor>#</span></a></h4><p>When trying to bind a global variable, you can use the <code>[<Global>]</code> attribute.<pre class="atom-one-light grvsc-container"data-index=6 data-language=fs><code class=grvsc-code><span class=grvsc-line><span class=grvsc-source><span class=mtk8>[<Global>]</span></span></span>
0 commit comments