Skip to content

Feature: Better support for relative import paths in nested directory code base #138

@lll000111

Description

@lll000111

Relates to #135

Low priority, it's probably not a blocker for anyone since workarounds are possible.

First, for using tools like Flow the import paths in the source code need to correspond to actual paths pointing to the correct files. The mapping in manifest.json and the (in the examples heavy) use of "plain imports" of the style import ... from "Module", where the location of "Module" is described in the manifest file, does not work with other source code level tools.

Second, when I have a nested directory structure with relative path imports down the hierarchy, and other imports (possibly to the same files!) within a lower level directory, then I cannot easily tell manifest.json what ./ means since it is different on every level.

Q: Is this even feasible given your implementation choices?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions