Ability to override `scriptsTemplate` or auto detect `output.format`
First off, props for putting this together. Really handy
I was trying this plugin with a project where I have output.format
set to esm
in rollup output config.
Is there any way for us to detect that and change the script injection from:
<script defer src="..." type="text/javascript"></script>
to:
<script defer src="..." type="module"></script>
the later one being more suitable for loading es modules in browser.