8000 Default export for non ES6 require? · Issue #2 · scienceai/tsne-js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Default export for non ES6 require? #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vorg opened this issue Feb 22, 2016 · 1 comment
Open

Default export for non ES6 require? #2

vorg opened this issue Feb 22, 2016 · 1 comment

Comments

@vorg
Copy link
vorg commented Feb 22, 2016

The example suggest the ES6 module import

import TSNE from 'tsne-js';

Although if I want to use commonjs require i have to do:

//var TSNE = require('tsne-js'); //dowan't work
var TSNE = require('tsne-js').default; 
@transcranial
Copy link
Contributor

yeah, I agree that's a bit annoying - should be fixed with latest v1.0.3!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0