使用ES6导入JSNLog的正确语法是什么? [英] What is the correct syntax for importing JSNLog using ES6?

查看:163
本文介绍了使用ES6导入JSNLog的正确语法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法弄清楚如何将JSNLog导入到我的基于ES6(babel)的Aurelia项目中。我试过:

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

如果重要,我了解到jsnlog.js文件是从

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

推荐答案

作者已经修复了这个问题 v2.17.1 发布。

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

这篇关于使用ES6导入JSNLog的正确语法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆