Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

Try to avoid ../../../Foo/Bar import mess #104

Open
2 tasks
dsebastien opened this issue Apr 20, 2016 · 2 comments
Open
2 tasks

Try to avoid ../../../Foo/Bar import mess #104

dsebastien opened this issue Apr 20, 2016 · 2 comments
Milestone

Comments

@dsebastien
Copy link
Owner

dsebastien commented Apr 20, 2016

As an alternative to #76, we could leverage the following:

With those two, both TS & Webpack should be happy and let us write import statements relatively from src

@dsebastien dsebastien added this to the 0.1.3 milestone Apr 20, 2016
@dsebastien
Copy link
Owner Author

I tested the above successfully, so that's a viable alternative and does not require an additional dependency as #76 requires and no specific syntax.

@dsebastien
Copy link
Owner Author

Cleanest alternative: barrels
index.ts files in each folder re-exporting classes, constants, etc
up to the root level where the whole app's API gets re-exported

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

No branches or pull requests

1 participant