With StealJS, you can import this module directly in a template that is autorendered:
import plugin from 'ir-clone';
Use require
to load ir-clone
and everything else
needed to create a template that uses ir-clone
:
var plugin = require("ir-clone");
Load the global
version of the plugin:
<script src='./node_modules/ir-clone/dist/global/ir-clone.js'></script>