can-import-module
v1.3.2
Published
[![Build Status](https://travis-ci.org/canjs/can-import-module.svg?branch=master)](https://travis-ci.org/canjs/can-import-module) [![Greenkeeper badge](https://badges.greenkeeper.io/canjs/can-import-module.svg)](https://greenkeeper.io/)
Downloads
2,832
Readme
can-import-module
Usage
ES6 use
With StealJS, you can import this module directly in a template that is autorendered:
import plugin from 'can-import-module';
CommonJS use
Use require
to load can-import-module
and everything else
needed to create a template that uses can-import-module
:
var plugin = require("can-import-module");
Standalone use
Load the global
version of the plugin:
<script src='./node_modules/can-import-module/dist/global/can-importer.js'></script>