Search code examples
javascriptecmascript-6babeljssystemjsjsnlog

What is the correct syntax for importing JSNLog using ES6?


I can't seem to figure out how to import JSNLog into my ES6 (babel) based Aurelia project. I've tried:

import 'jsnlog';            // JL is undefined
import JL from 'jsnlog';    // JL is {}
import {JL} from 'jsnlog';  // JL is undefined

If it matters I've learned that the jsnlog.js file is generated from typescript source.


Solution

  • The author has fixed this issue with the v2.17.1 release.