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

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

Comments

Projects
None yet
2 participants
@devongovett

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

This comment has been minimized.

Show comment
Hide comment
@h13i32maru

h13i32maru Nov 23, 2015

Member

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

Member

h13i32maru commented Nov 23, 2015

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

@h13i32maru

This comment has been minimized.

Show comment
Hide comment
@h13i32maru

h13i32maru Feb 6, 2016

Member

I support this issue at ESDoc v0.4.4

Member

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