TNP
Just testing how using rollup
to build a library exposed through npm & a CDN (jsdelivr) as an iife.
Loading using an iife directly from CDN
The iife expose a tnp
variable.
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@rukien/tests-npm-packages@1.0.3/dist/tnp.min.js"></script>
<script type="text/javascript">
tnp.foo()
</script>