🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

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

Closed

Description

@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?

Activity

  1. h13i32maru commented on Nov 23, 2015

    @h13i32maru
    Member

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

  2. h13i32maru commented on Feb 6, 2016

    @h13i32maru
    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions