Live Demo
Try the esbuild-plugin-replace plugin in your browser!
<div class="editor-grid">
<div class="editor-panel">
<h3>Source Code</h3>
<textarea v-model="sourceCode" rows="8"></textarea>
</div>
<div class="editor-panel">
<h3>Plugin Options</h3>
<textarea v-model="options" rows="8"></textarea>
<div class="delimiters-row">
<label>Delimiters:</label>
<input v-model="delimiters" />
</div>
</div>
<div class="editor-panel output">
<h3>Output</h3>
<pre><code>export const version = __VERSION__;
export const author = __AUTHOR__;
export const env = process.env.NODE_ENV;</code></pre>
<button @click="copyOutput">Copy</button>
</div>
</div>