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