Skip to content
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

Does not detect class extend from module without file extension #160

Closed
devongovett opened this issue Nov 7, 2015 · 2 comments
Closed

Comments

@devongovett
Copy link

This does not work:

import DataSource from './DataSource';

class ArrayDataSource extends DataSource {}

It does not detect that ArrayDataSource extends from DataSource. The documentation lists it as "src/ArrayDataSource.js~DataSource".

If I include the file extension of DataSource.js it works.

import DataSource from './DataSource.js';

class ArrayDataSource extends DataSource {}

I think both imports should work the same way, as they do in Node, Browserify, etc. Perhaps use require.resolve internally to resolve the filename of imports?

@h13i32maru
Copy link
Member

@devongovett Hi! Thanks for this issue.
I will support non-extension file at next version.

@h13i32maru
Copy link
Member

I support this issue at ESDoc v0.4.4

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

No branches or pull requests

2 participants