Documentation Menu

SystemJS

Here is an example of configuring SystemJS to load jsnlog.js:

System.config({
    map: {
        "jsnlog": "node_modules/jsnlog/jsnlog.js",
    },
    meta: {
        "node_modules/jsnlog/jsnlog.js": {
            "format": "cjs"
        },
    }
});

This would allow you to load the JL object into your application:

/// <reference path="../node_modules/jsnlog/Definitions/jl.d.ts" />

import { JL } from "jsnlog";