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