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

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

devongovett opened this issue Nov 7, 2015 · 2 comments

Comments

@devongovett
Copy link

@devongovett devongovett commented Nov 7, 2015

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 added a commit that referenced this issue Nov 23, 2015
@h13i32maru
Copy link
Member

@h13i32maru h13i32maru commented Nov 23, 2015

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

@h13i32maru
Copy link
Member

@h13i32maru h13i32maru commented Feb 6, 2016

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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.